Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe

Hi,

I just noticed this exception error:

A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe

but do not know what it means.

Any ideas?

thaks,
newbieweb
Avatar of curiouswebster
curiouswebster
Flag of United States of America image

ASKER

also...

here is the rest of what I saw in the Debug window.



'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'K:\DMS\bin\Debug\DMS.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x121c has exited with code 0 (0x0).
The thread 0x1510 has exited with code 0 (0x0).
The thread 0x1424 has exited with code 0 (0x0).
'DMS.vshost.exe' (Managed): Loaded 'K:\DMS\bin\Debug\DMS.exe', Symbols loaded.
'DMS.vshost.exe' (Managed): Loaded 'K:\DMS\bin\Debug\AxInterop.MapPoint.dll', No symbols loaded.
The thread 0x1208 has exited with code 0 (0x0).
'DMS.vshost.exe' (Managed): Loaded 'K:\DMS\bin\Debug\Interop.MapPoint.dll', No symbols loaded.
'DMS.vshost.exe' (Managed): Loaded 'K:\DMS\bin\Debug\PizzaPilotRuntime.dll', Symbols loaded.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe
A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe
A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe
A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe
A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe
A first chance exception of type 'System.NullReferenceException' occurred in DMS.exe
The thread 0x220 has exited with code 0 (0x0).
'DMS.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\CustomMarshalers\2.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
It means something tried to work with an object that had not been created. Is that your program?

Jim
DMS.exe is my program.  What object are you talking about?
ASKER CERTIFIED SOLUTION
Avatar of JimBrandley
JimBrandley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wow!  I never knew I could break on all exceptions!  That alone will save me.

Thanks,
newbieweb
That's a great feature. I turn it on for every project and never turn it off.

Jim
Did you find the problem?
I won't be compiling to the AM.  I'm running a process now through the night.

I'll let you know...

newbieweb
I'm trying this but can't find the feature.

I see two checkboxes:
Thrown, User-Handles

for each of C++ Exceptions
CLR Exceptions
Managed Debugging Assistants
Native Run-Time Checks
Win32 Exceptions

and inside of each there are many items, a few of which have "Thrown" checked

Should I go ahead and check everything as Thrown?
Correct.