Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

A strange hang

I am using Visual C++ .NET 2003. The code takes up approximately 600K
of disk space (so you have any idea of the size). First, I compiled,
builded, and executed this program using exclusively floats for all
precision computing. However, I realized for my application that more
precision was necessary; therefore, all the float instances were changed
to double. The program has no trouble compiling and linking, however
when executing it hangs with the error: System.NullReferenceException
(debug mode).

It ran perfectly before changing from float to double. This was the only
change made; the only other changes were casts from double to float
used when absolutely necessary. Also, there is something strange: When
adding and removing more global identifiers (which do absolutely
nothing), the program seems to freeze at different execution points, so
it seems unlikely that there is a failed reference; but I could be wrong.


Does anyone see what the problem is right away? Sounds like some sort of
memory corruption, perhaps? A loading problem? The heap?

Does anyone have any idea what this could be? I'll try anything at this
point!

Thanks in advance!!
0 Kudos
Message 1 of 2
(6,087 Views)
Hi Terrence,
 
Are you using any components of Measurement Studio?  Can you isolate this error to a particular line of code?  This is on the development computer, right?
 
If you are not using any Measurement Studio components, you may want to also post on a .NET forum.  Here is some additional information about this error:
 
 
 
Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 2
(6,076 Views)