473,549 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to debug this?

For some reason when I step into the code below, it jumps out on the second
iteration at the line I have marked below. Nothing else happens - no
errors.

Dim tcpClient As New System.Net.Sock ets.TcpClient
tcpClient.Conne ct("127.0.0.1" , 9005)

While True
Dim networkStream As NetworkStream = tcpClient.GetSt ream()

'If networkStream.C anWrite And networkStream.C anRead Then

' Do a simple write.
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is anybody
there")
networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
' Read the NetworkStream into a byte buffer.
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
networkStream.R ead(bytes, 0, CInt(tcpClient. ReceiveBufferSi ze))
' Output the data received from the host to the console.
Dim returndata As String = Encoding.ASCII. GetString(bytes )

Step into jumps out at above line. The rest of the code follows:

Console.WriteLi ne(("Host returned: " + returndata))

' pause so user can view the console output
Console.ReadLin e()
End While

tcpClient.Close ()

There is a server version of the app that is sending data. Any suggestions
on how I can trace this down?

Thanks,
Brett
Nov 21 '05 #1
10 1891
"Brett" <no@spam.net> wrote in
news:eW******** ******@tk2msftn gp13.phx.gbl:
For some reason when I step into the code below, it jumps out on the
second iteration at the line I have marked below. Nothing else
happens - no errors.

Dim tcpClient As New System.Net.Sock ets.TcpClient
tcpClient.Conne ct("127.0.0.1" , 9005)

While True
Dim networkStream As NetworkStream = tcpClient.GetSt ream()

'If networkStream.C anWrite And networkStream.C anRead Then

' Do a simple write.
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is
anybody
there")
networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
' Read the NetworkStream into a byte buffer.
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
networkStream.R ead(bytes, 0,
CInt(tcpClient. ReceiveBufferSi ze)) ' Output the data
received from the host to the console. Dim returndata As
String = Encoding.ASCII. GetString(bytes )

Step into jumps out at above line. The rest of the code follows:

Console.WriteLi ne(("Host returned: " + returndata))

' pause so user can view the console output
Console.ReadLin e()
End While

tcpClient.Close ()

There is a server version of the app that is sending data. Any
suggestions on how I can trace this down?

Thanks,
Brett


Not sure what you mean, 'jumps out'. Does that mean it throws an
exception? You can't 'step into' GetString() but I don't think thats
what you mean.

A quick solution would be to use DataAvailable:

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

OR the dangerous way...

Do
Loop Until networkStream.D ataAvailable()

too see if anything ever comes. (maybe put a counter in there and exit
after a couple hundred loops :)

but i think your trying to read to soon, if you wait on DataAvailable,
all should work code wise.

MP
Nov 21 '05 #2

"MeltingPoi nt" <no**@all.com > wrote in message
news:_s******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:eW******** ******@tk2msftn gp13.phx.gbl:
For some reason when I step into the code below, it jumps out on the
second iteration at the line I have marked below. Nothing else
happens - no errors.

Dim tcpClient As New System.Net.Sock ets.TcpClient
tcpClient.Conne ct("127.0.0.1" , 9005)

While True
Dim networkStream As NetworkStream = tcpClient.GetSt ream()

'If networkStream.C anWrite And networkStream.C anRead Then

' Do a simple write.
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is
anybody
there")
networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
' Read the NetworkStream into a byte buffer.
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
networkStream.R ead(bytes, 0,
CInt(tcpClient. ReceiveBufferSi ze)) ' Output the data
received from the host to the console. Dim returndata As
String = Encoding.ASCII. GetString(bytes )

Step into jumps out at above line. The rest of the code follows:

Console.WriteLi ne(("Host returned: " + returndata))

' pause so user can view the console output
Console.ReadLin e()
End While

tcpClient.Close ()

There is a server version of the app that is sending data. Any
suggestions on how I can trace this down?

Thanks,
Brett


Not sure what you mean, 'jumps out'. Does that mean it throws an
exception? You can't 'step into' GetString() but I don't think thats
what you mean.

A quick solution would be to use DataAvailable:

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

OR the dangerous way...

Do
Loop Until networkStream.D ataAvailable()

too see if anything ever comes. (maybe put a counter in there and exit
after a couple hundred loops :)

but i think your trying to read to soon, if you wait on DataAvailable,
all should work code wise.

MP


Very nice. The

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

code is working fine. I have a general question about the byte array.
Sending/receiving data via the tcp/ip streams or file streams always uses
the byte array. Why can't a regular string be used? What is so special
about the byte array?

Thanks,
Brett
Nov 21 '05 #3
"Brett" <no@spam.net> wrote in
news:ub******** ******@TK2MSFTN GP14.phx.gbl:

"MeltingPoi nt" <no**@all.com > wrote in message
news:_s******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:eW******** ******@tk2msftn gp13.phx.gbl:
For some reason when I step into the code below, it jumps out on the
second iteration at the line I have marked below. Nothing else
happens - no errors.

Dim tcpClient As New System.Net.Sock ets.TcpClient
tcpClient.Conne ct("127.0.0.1" , 9005)

While True
Dim networkStream As NetworkStream =
tcpClient.GetSt ream()

'If networkStream.C anWrite And networkStream.C anRead
Then

' Do a simple write.
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is
anybody
there")
networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
' Read the NetworkStream into a byte buffer.
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
networkStream.R ead(bytes, 0,
CInt(tcpClient. ReceiveBufferSi ze)) ' Output the data
received from the host to the console. Dim returndata As
String = Encoding.ASCII. GetString(bytes )

Step into jumps out at above line. The rest of the code follows:

Console.WriteLi ne(("Host returned: " + returndata))

' pause so user can view the console output
Console.ReadLin e()
End While

tcpClient.Close ()

There is a server version of the app that is sending data. Any
suggestions on how I can trace this down?

Thanks,
Brett


Not sure what you mean, 'jumps out'. Does that mean it throws an
exception? You can't 'step into' GetString() but I don't think thats
what you mean.

A quick solution would be to use DataAvailable:

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

OR the dangerous way...

Do
Loop Until networkStream.D ataAvailable()

too see if anything ever comes. (maybe put a counter in there and
exit after a couple hundred loops :)

but i think your trying to read to soon, if you wait on
DataAvailable, all should work code wise.

MP


Very nice. The

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

code is working fine. I have a general question about the byte
array. Sending/receiving data via the tcp/ip streams or file streams
always uses the byte array. Why can't a regular string be used? What
is so special about the byte array?

Thanks,
Brett


I would say it mostly has to do with unicode. One byte characters
just don't do it on the global scale. By making you use
Encoding.ASCII/UTF8/UTF7/Unicode.GetStri ng/GetBytes Microsoft is reminding
you of which market your targeting/omitting.

A little blurp:
http://msdn.microsoft.com/library/de...classtopic.asp

MP
Nov 21 '05 #4

"MeltingPoi nt" <no**@all.com > wrote in message
news:rd******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:ub******** ******@TK2MSFTN GP14.phx.gbl:

"MeltingPoi nt" <no**@all.com > wrote in message
news:_s******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:eW******** ******@tk2msftn gp13.phx.gbl:

For some reason when I step into the code below, it jumps out on the
second iteration at the line I have marked below. Nothing else
happens - no errors.

Dim tcpClient As New System.Net.Sock ets.TcpClient
tcpClient.Conne ct("127.0.0.1" , 9005)

While True
Dim networkStream As NetworkStream =
tcpClient.GetSt ream()

'If networkStream.C anWrite And networkStream.C anRead
Then

' Do a simple write.
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is
anybody
there")
networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
' Read the NetworkStream into a byte buffer.
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
networkStream.R ead(bytes, 0,
CInt(tcpClient. ReceiveBufferSi ze)) ' Output the data
received from the host to the console. Dim returndata As
String = Encoding.ASCII. GetString(bytes )

Step into jumps out at above line. The rest of the code follows:

Console.WriteLi ne(("Host returned: " + returndata))

' pause so user can view the console output
Console.ReadLin e()
End While

tcpClient.Close ()

There is a server version of the app that is sending data. Any
suggestions on how I can trace this down?

Thanks,
Brett


Not sure what you mean, 'jumps out'. Does that mean it throws an
exception? You can't 'step into' GetString() but I don't think thats
what you mean.

A quick solution would be to use DataAvailable:

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

OR the dangerous way...

Do
Loop Until networkStream.D ataAvailable()

too see if anything ever comes. (maybe put a counter in there and
exit after a couple hundred loops :)

but i think your trying to read to soon, if you wait on
DataAvailable, all should work code wise.

MP


Very nice. The

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

code is working fine. I have a general question about the byte
array. Sending/receiving data via the tcp/ip streams or file streams
always uses the byte array. Why can't a regular string be used? What
is so special about the byte array?

Thanks,
Brett


I would say it mostly has to do with unicode. One byte characters
just don't do it on the global scale. By making you use
Encoding.ASCII/UTF8/UTF7/Unicode.GetStri ng/GetBytes Microsoft is reminding
you of which market your targeting/omitting.


You're saying for global compatibility. Why would that have anything to do
with MS? Because they are the ones using 7 bit characters that are stored
in the byte array and used mainly on Windows platforms?
Nov 21 '05 #5

"MeltingPoi nt" <no**@all.com > wrote in message
news:rd******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:ub******** ******@TK2MSFTN GP14.phx.gbl:

"MeltingPoi nt" <no**@all.com > wrote in message
news:_s******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:eW******** ******@tk2msftn gp13.phx.gbl:

For some reason when I step into the code below, it jumps out on the
second iteration at the line I have marked below. Nothing else
happens - no errors.

Dim tcpClient As New System.Net.Sock ets.TcpClient
tcpClient.Conne ct("127.0.0.1" , 9005)

While True
Dim networkStream As NetworkStream =
tcpClient.GetSt ream()

'If networkStream.C anWrite And networkStream.C anRead
Then

' Do a simple write.
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is
anybody
there")
networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
' Read the NetworkStream into a byte buffer.
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
networkStream.R ead(bytes, 0,
CInt(tcpClient. ReceiveBufferSi ze)) ' Output the data
received from the host to the console. Dim returndata As
String = Encoding.ASCII. GetString(bytes )

Step into jumps out at above line. The rest of the code follows:

Console.WriteLi ne(("Host returned: " + returndata))

' pause so user can view the console output
Console.ReadLin e()
End While

tcpClient.Close ()

There is a server version of the app that is sending data. Any
suggestions on how I can trace this down?

Thanks,
Brett


Not sure what you mean, 'jumps out'. Does that mean it throws an
exception? You can't 'step into' GetString() but I don't think thats
what you mean.

A quick solution would be to use DataAvailable:

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

OR the dangerous way...

Do
Loop Until networkStream.D ataAvailable()

too see if anything ever comes. (maybe put a counter in there and
exit after a couple hundred loops :)

but i think your trying to read to soon, if you wait on
DataAvailable, all should work code wise.

MP


Very nice. The

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

code is working fine. I have a general question about the byte
array. Sending/receiving data via the tcp/ip streams or file streams
always uses the byte array. Why can't a regular string be used? What
is so special about the byte array?

Thanks,
Brett


I would say it mostly has to do with unicode. One byte characters
just don't do it on the global scale. By making you use
Encoding.ASCII/UTF8/UTF7/Unicode.GetStri ng/GetBytes Microsoft is reminding
you of which market your targeting/omitting.

A little blurp:
http://msdn.microsoft.com/library/de...classtopic.asp

MP


Back to the application, what does it mean if I get this in my output window
everytime the app loads:

'DefaultDomain' : Loaded
'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded.
'client': Loaded 'C:\Inetpub\VB. NET\client\bin\ client.exe', Symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll', No
symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\micro soft.visualbasi c\7.0.5000.0__b 03f5f7f11d50a3a \microsoft.visu albasic.dll',
No symbols loaded.

The app seems to run fine despite the "No symbols loaded" lines.

Thanks,
Brett
Nov 21 '05 #6
Yes - global compatibility.

ASCII - American Standard Code for Information Interchange - is a globally
recognised for exchanging data where you don't need any more than 7 bits per
character. It has origins dating back to the first teleprinters.

At some point in time a 8 bit standard was introduced which extendend the
number of characters from 128 to 256. This is known as ANSI because it was
codified by the American National Satandards institute..

As the need for even more characters became apparent, various schemes were
introduced but the one that won the battle was UCS (Universal Character Set)
which is now codified by ISO as one of it's numbered standards (I don't know
which one off the top of my head.)

One thing that should be noted is that each standard is a superset of it's
predecessor. For example, the 128 characters of ASCII are the the first 128
characters of ANSI and the 256 characters of ANSI are the first 256
characters of UCS. This is one of the reasons that some people think that
ASCII and ANSI are the same thing, but the distinction is very important.

Although MS probably had some input into the UCS standard, they are not
responsible for any of them. All they do is provide access to anumber of
different methodologies for dealing with them (Encoding.ASCII ,
Encoding.ANSI, Encoding.UTF7, etc.).

You're saying for global compatibility. Why would that have anything to
do with MS? Because they are the ones using 7 bit characters that are
stored in the byte array and used mainly on Windows platforms?
"Brett" <no@spam.net> wrote in message
news:Ou******** ******@TK2MSFTN GP14.phx.gbl...
"MeltingPoi nt" <no**@all.com > wrote in message
news:rd******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:ub******** ******@TK2MSFTN GP14.phx.gbl:

"MeltingPoi nt" <no**@all.com > wrote in message
news:_s******** ************@ro gers.com...
"Brett" <no@spam.net> wrote in
news:eW******** ******@tk2msftn gp13.phx.gbl:

> For some reason when I step into the code below, it jumps out on the
> second iteration at the line I have marked below. Nothing else
> happens - no errors.
>
> Dim tcpClient As New System.Net.Sock ets.TcpClient
> tcpClient.Conne ct("127.0.0.1" , 9005)
>
> While True
> Dim networkStream As NetworkStream =
> tcpClient.GetSt ream()
>
> 'If networkStream.C anWrite And networkStream.C anRead
> Then
>
> ' Do a simple write.
> Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes("Is
> anybody
> there")
> networkStream.W rite(sendBytes, 0, sendBytes.Lengt h)
> ' Read the NetworkStream into a byte buffer.
> Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
> networkStream.R ead(bytes, 0,
> CInt(tcpClient. ReceiveBufferSi ze)) ' Output the data
> received from the host to the console. Dim returndata As
> String = Encoding.ASCII. GetString(bytes )
>
>
>
> Step into jumps out at above line. The rest of the code follows:
>
> Console.WriteLi ne(("Host returned: " + returndata))
>
> ' pause so user can view the console output
> Console.ReadLin e()
> End While
>
> tcpClient.Close ()
>
> There is a server version of the app that is sending data. Any
> suggestions on how I can trace this down?
>
> Thanks,
> Brett
>
>
>

Not sure what you mean, 'jumps out'. Does that mean it throws an
exception? You can't 'step into' GetString() but I don't think thats
what you mean.

A quick solution would be to use DataAvailable:

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

OR the dangerous way...

Do
Loop Until networkStream.D ataAvailable()

too see if anything ever comes. (maybe put a counter in there and
exit after a couple hundred loops :)

but i think your trying to read to soon, if you wait on
DataAvailable, all should work code wise.

MP

Very nice. The

If networkStream.D ataAvailable() Then
networkStream.R ead(...)
End If

code is working fine. I have a general question about the byte
array. Sending/receiving data via the tcp/ip streams or file streams
always uses the byte array. Why can't a regular string be used? What
is so special about the byte array?

Thanks,
Brett


I would say it mostly has to do with unicode. One byte characters
just don't do it on the global scale. By making you use
Encoding.ASCII/UTF8/UTF7/Unicode.GetStri ng/GetBytes Microsoft is
reminding
you of which market your targeting/omitting.


You're saying for global compatibility. Why would that have anything to
do with MS? Because they are the ones using 7 bit characters that are
stored in the byte array and used mainly on Windows platforms?

Nov 21 '05 #7
The 'symbols' referred to here are modules with symbolic debbugging
information in them. They are the 'things' that allow you to single step
code and set breakpoints in the IDE.

When you compile a program in 'debug' configuration these 'symbols' are
placed in the <yourapp>.pdb file.

In certain 'debug' versions of VS.NET which are not made available to 'joe
blow' the 'debug' versions of Framework DLL's are included which allow for
richer information to be displayed when an exception occurs.

Note that 'No Symbols loaded' is displayed appears when mscorlib.dll is
loaded but 'Symbols loaded' is displayed when your own client.exe is loaded.

These 'symbols' are not related in any way shape or form to unicode or any
other character set.

If you were of a mind to you could:

write a program that throws an exception

compile it for debug

run the program and note the information displayed when the exception is
thrown

compile it for release

run the program and note the information displayed when the exception is
thrown

You will see that the information displayed in 'debug' is much richer thatn
that displayed in 'release'.

The additional information is derived from the .pdb file which is known as
the 'symbols'.
<snip>

Back to the application, what does it mean if I get this in my output
window everytime the app loads:

'DefaultDomain' : Loaded
'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded.
'client': Loaded 'C:\Inetpub\VB. NET\client\bin\ client.exe', Symbols
loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\micro soft.visualbasi c\7.0.5000.0__b 03f5f7f11d50a3a \microsoft.visu albasic.dll',
No symbols loaded.

The app seems to run fine despite the "No symbols loaded" lines.

Thanks,
Brett

Nov 21 '05 #8
Does that basically mean everything is ok?

Thanks,
Brett
"Stephany Young" <noone@localhos t> wrote in message
news:eB******** ******@TK2MSFTN GP10.phx.gbl...
The 'symbols' referred to here are modules with symbolic debbugging
information in them. They are the 'things' that allow you to single step
code and set breakpoints in the IDE.

When you compile a program in 'debug' configuration these 'symbols' are
placed in the <yourapp>.pdb file.

In certain 'debug' versions of VS.NET which are not made available to 'joe
blow' the 'debug' versions of Framework DLL's are included which allow for
richer information to be displayed when an exception occurs.

Note that 'No Symbols loaded' is displayed appears when mscorlib.dll is
loaded but 'Symbols loaded' is displayed when your own client.exe is
loaded.

These 'symbols' are not related in any way shape or form to unicode or any
other character set.

If you were of a mind to you could:

write a program that throws an exception

compile it for debug

run the program and note the information displayed when the exception
is thrown

compile it for release

run the program and note the information displayed when the exception
is thrown

You will see that the information displayed in 'debug' is much richer
thatn that displayed in 'release'.

The additional information is derived from the .pdb file which is known as
the 'symbols'.
<snip>

Back to the application, what does it mean if I get this in my output
window everytime the app loads:

'DefaultDomain' : Loaded
'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded.
'client': Loaded 'C:\Inetpub\VB. NET\client\bin\ client.exe', Symbols
loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\micro soft.visualbasi c\7.0.5000.0__b 03f5f7f11d50a3a \microsoft.visu albasic.dll',
No symbols loaded.

The app seems to run fine despite the "No symbols loaded" lines.

Thanks,
Brett


Nov 21 '05 #9
As you said, the app runs fine.

In short, yes - you can quite confidently ignore the messages about
'symbols' in this context.
"Brett" <no@spam.net> wrote in message
news:OA******** ******@TK2MSFTN GP15.phx.gbl...
Does that basically mean everything is ok?

Thanks,
Brett
"Stephany Young" <noone@localhos t> wrote in message
news:eB******** ******@TK2MSFTN GP10.phx.gbl...
The 'symbols' referred to here are modules with symbolic debbugging
information in them. They are the 'things' that allow you to single step
code and set breakpoints in the IDE.

When you compile a program in 'debug' configuration these 'symbols' are
placed in the <yourapp>.pdb file.

In certain 'debug' versions of VS.NET which are not made available to
'joe blow' the 'debug' versions of Framework DLL's are included which
allow for richer information to be displayed when an exception occurs.

Note that 'No Symbols loaded' is displayed appears when mscorlib.dll is
loaded but 'Symbols loaded' is displayed when your own client.exe is
loaded.

These 'symbols' are not related in any way shape or form to unicode or
any other character set.

If you were of a mind to you could:

write a program that throws an exception

compile it for debug

run the program and note the information displayed when the exception
is thrown

compile it for release

run the program and note the information displayed when the exception
is thrown

You will see that the information displayed in 'debug' is much richer
thatn that displayed in 'release'.

The additional information is derived from the .pdb file which is known
as the 'symbols'.
<snip>

Back to the application, what does it mean if I get this in my output
window everytime the app loads:

'DefaultDomain' : Loaded
'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded.
'client': Loaded 'C:\Inetpub\VB. NET\client\bin\ client.exe', Symbols
loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll',
No symbols loaded.
'client.exe': Loaded
'c:\windows\ass embly\gac\micro soft.visualbasi c\7.0.5000.0__b 03f5f7f11d50a3a \microsoft.visu albasic.dll',
No symbols loaded.

The app seems to run fine despite the "No symbols loaded" lines.

Thanks,
Brett



Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2677
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug partially? Something like: fileA.c fileB.c And I can compile fileA.c with debug info and compile fileB.c without debug info?
4
4510
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
10
28609
by: John Smith | last post by:
After reading C# documentation the Conditional attribute seemed the way to go, but after inspecting the IL it seems those methods are still there and I imagine the CLR removes them. Using #if DEBUG means the code does not even reach the IL when compiling in release mode. Is there any benefit to using the Conditional Attribute? Am I right in...
7
21338
by: Wysiwyg | last post by:
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill
12
3399
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is the documentation wrong? I've been load testing an ASP.NET website (built in VS.NET 2003 in C#). I've used the ACT to generate heavy loads...
9
1986
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb file? Is the .pdb necessary for the release version? Thanks a bunch. Dara
3
3095
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
6
9126
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the...
3
3253
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of other system include files. The one I am including is <map> . The errors I am getting are:...
1
2557
by: Alexander Vasilevsky | last post by:
Hi! How to debug Powershell commandlets? -- http://www.alvas.net - Audio tools for C# and VB.Net developers
0
7527
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7726
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7967
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7485
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5377
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.