LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with CDB updating in debuggable DLL

I am attempting to run a debuggable DLL in an executable that I am debugging. However, whenever I step into the DLL, it enters a random place and jumps around. It looks like DLLs do when the CDB is not a current compile. However, this CDB is quite current and it should work fine. Is there some bug with the CDB update--do I need to manually reset something? Thanks
0 Kudos
Message 1 of 2
(2,950 Views)
Hello JakeBlues2,
I would first recommend verifying that CVI is working properly. Lets start by building the sample DLL from the project located at \samples\dll\basic\cvidll.prj, and then test it using the usecvidll.prj project that can be found in the same directory. If CVI debugs this DLL fine, then we can likely assume it is working properly. Next, I would rebuild your DLL and make sure the target settings specify Debuggable Dynamic Link Library (this is to make sure that the CDB file is up to date, especially if you've moved your DLL project around, maybe CVI is finding an old CDB file). Now retest your project. If the issue continues, I would recommend testing on another machine to determine if the issue is machine specific or project/DLL specific
. If the problem persists, please feel free to contact us directly at http://www.ni.com/ask.

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,950 Views)