We help IT Professionals succeed at work.

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

curiouswebster
on
8,637 Views
Last Modified: 2013-12-17
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
Comment
Watch Question

curiouswebsterSoftware Engineer

Author

Commented:
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.
Top Expert 2007

Commented:
It means something tried to work with an object that had not been created. Is that your program?

Jim
curiouswebsterSoftware Engineer

Author

Commented:
DMS.exe is my program.  What object are you talking about?
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
curiouswebsterSoftware Engineer

Author

Commented:
Wow!  I never knew I could break on all exceptions!  That alone will save me.

Thanks,
newbieweb
Top Expert 2007

Commented:
That's a great feature. I turn it on for every project and never turn it off.

Jim
Top Expert 2007

Commented:
Did you find the problem?
curiouswebsterSoftware Engineer

Author

Commented:
I won't be compiling to the AM.  I'm running a process now through the night.

I'll let you know...

newbieweb
curiouswebsterSoftware Engineer

Author

Commented:
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?
Top Expert 2007

Commented:
Correct.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.