LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal internal error MemoryManager.cpp, line 406

I have a CVI program that calls into a dll created from a VI.

When the VI is compiled with debugging off, the program runs, but doesn't return the reults I expect. So I turned on debugging and tried to step into the dll.

That results in the line 406 error.

I've searched my drive for MemoryManager.cpp, but I guess it isn't provided (or I didn't install it)

What should be my next step in tracking this down?
0 Kudos
Message 1 of 3
(3,909 Views)
Found it!

I was assuming (wrongly) that the error out structure would be allocated in the dll. No, it has to be created before passing it into the dll.
Message 2 of 3
(3,906 Views)
More info on how I found the problem.

My dll had lots of parameters passed in - gains, errors in, errors out, etc. To debug, I tried to pass in NULL for most of the parameters and the function ran without an error (good NULL checking on NI's part). So I just replaced with real parameters one at a time until I found the problem.
0 Kudos
Message 3 of 3
(3,879 Views)