Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - NetNamedPipeBinding Construction Causing Program Termination

 
 
Old 10-16-2007   #1 (permalink)
Swoozie Pellegrino


 
 

NetNamedPipeBinding Construction Causing Program Termination

Hi, all.

I'm getting some weird behavior when newing a NetNamedPipeBinding
object. In one version of my program, everything works fine. In
another, where execution takes a different path (static methods and
instances involved), the program just stops. I'm debugging in VS.NET
2005, and when I single-step past

NetNamedPipeBinding binding = new NetNamedPipeBinding(); ,

the IDE just stops debugging, no complaining involved. I've tried
having the statement in a try block and without, but I get the same
results: program termination.

Any ideas what might cause the IDE to do that? FWIW, the program is a
console app and the terminating statement is in a referenced assembly.

Thanks!
~swooz


My System SpecsSystem Spec
Old 10-16-2007   #2 (permalink)
sloan


 
 

Re: NetNamedPipeBinding Construction Causing Program Termination



The best thing I've ever figured out is something like this:

<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
Quote:

>
<listeners>
<add name="sdt"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "c:\wutemp\Client1.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>



and

SvcTraceViewer.exe - Learn It, Know it, Love It

http://wcf.netfx3.com/blogs/wcf_comm...t-love-it.aspx

I debugged a NamedPipe issue this way as well.

the above will at least give you the stuff to google and figure out.

you see the exact exceptions on the service side with these things.

You can also do this:



<system.diagnostics configSource="SystemDiagnostics.config">
</system.diagnostics>

so you have have different deploy strategies ... as in.. you don't want this
stuff on in production (as the normal behavior), but you can easily turn it
on in production if you need to.




"Swoozie Pellegrino" <swooziep@xxxxxx> wrote in message
news:1192570369.006119.42270@xxxxxx
Quote:

> Hi, all.
>
> I'm getting some weird behavior when newing a NetNamedPipeBinding
> object. In one version of my program, everything works fine. In
> another, where execution takes a different path (static methods and
> instances involved), the program just stops. I'm debugging in VS.NET
> 2005, and when I single-step past
>
> NetNamedPipeBinding binding = new NetNamedPipeBinding(); ,
>
> the IDE just stops debugging, no complaining involved. I've tried
> having the statement in a try block and without, but I get the same
> results: program termination.
>
> Any ideas what might cause the IDE to do that? FWIW, the program is a
> console app and the terminating statement is in a referenced assembly.
>
> Thanks!
> ~swooz
>

My System SpecsSystem Spec
Old 10-18-2007   #3 (permalink)
Joe-P


 
 

RE: NetNamedPipeBinding Construction Causing Program Termination


Have you tried chnaging the bindings ? My gut feeling is with TCP or HTTP
binding you may not have this issue. This could be an internal thread issue
when using pipes.

"Swoozie Pellegrino" wrote:
Quote:

> Hi, all.
>
> I'm getting some weird behavior when newing a NetNamedPipeBinding
> object. In one version of my program, everything works fine. In
> another, where execution takes a different path (static methods and
> instances involved), the program just stops. I'm debugging in VS.NET
> 2005, and when I single-step past
>
> NetNamedPipeBinding binding = new NetNamedPipeBinding(); ,
>
> the IDE just stops debugging, no complaining involved. I've tried
> having the statement in a try block and without, but I get the same
> results: program termination.
>
> Any ideas what might cause the IDE to do that? FWIW, the program is a
> console app and the terminating statement is in a referenced assembly.
>
> Thanks!
> ~swooz
>
>
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Runtime Error (abnormal program termination) General Discussion
Abnormal Program Termination Vista hardware & devices
Abnormal Program Termination Vista General
Abnormal program termination Vista General
Abnormal Program Termination Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46