Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Debug a LabWindows/CVI DLL from Visual Studio?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package

Problem:
I have built an executable in Visual Studio (C#, VB .NET or C++) that is calling a LabWindows/CVI DLL.  How can I debug the DLL by stepping into it?

Solution:
Here are the steps for debugging a CVI  DLL that is being used by a Visual Studio application:
  1. Build the .NET or C++ executable.  For example, "TestDll.exe".
  2. Go back to CVI and load the DLL project.
  3. From the Run menu, go to Specify External Process and browse to the "TestDll.exe" executable that was built in step 1. 
  4. Set breakpoints in your DLL source code.
  5. Now click the Run button in CVI to debug the project.  It will run the "TestDll.exe" and will stop on the breakpoints in the DLL source code when it reaches those points within the application. You can now perform the regular debugging procedures within CVI.


Related Links:

Attachments:





Report Date: 08/30/2007
Last Updated: 08/30/2007
Document ID: 4CT7GA9A

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit