Debugging a dll c++ in visual studio 2010

Hello world

I expand and optimize a c++ dll that is called in a labview file. I managed to put up-to-date and running, but it is not what is supposed to .

I need to debug it by setting the breakpoint in the code c ++ because the labview is just memory and display. How can I do? Any help will be really appreciated

I use labview 2012 and express VS210.

Tanks a lot

Amos

I have attached the main file of the dll and labview interface.

Thus,.

LabView is off,

You press F5 in your visual studio, this is starting to LabView, he said you LabView was not built with debug, you click Yes. LabView begins.

Now, you select your VI, open the call library function node and make sure you have selected the appropriate DLL.

You start your VI, it is running and jumping in the call library function node. If you don't get triggered breakpoint now, you with that either did not build the dll debug info or wrong dll.

No more possible to deliver aid.

And OMG get rid of this main feature, even if it is empty!

Tags: NI Software

Similar Questions

  • Debug button is missing (and can't debug the application by shortcuts) + other errors in Microsoft Visual Studio 2010

    For some reason, the Debug button is missing in Microsoft Visual Studio 2010. The other buttons that are supposed to run your program are missing as well and pressing on F5 does nothing, so I can't debug my application. The other stuff are still there, it's just that the buttons that the Debug program are missing (other ways do not work as well).

    You can get a faster response or better if you like in one of the dedicated Microsoft forums Visual Studio here:

    http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio .

    Thank you.   :)

    (I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)

  • Simple API call test in Visual Studio 2010 C++ can not find jvm.dll

    Hello!

    I started experimenting with the start-up of a Java program in C++ of the Interior program, wrote my code in Visual Studio 2010.

    I use the latest code, that I could find:

    < code >
    #include < jni.h >

    (...)

    / * indicates a virtual Java machine * /.
    Machine Java virtual * jvm;

    / * pointer to the method native interface * /.
    JNIEnv * env;

    / * Initialization JDK/JRE 6 VM arguments * /.
    JavaVMInitArgs vm_args;

    JavaVMOption options = new JavaVMOption [1];

    ".optionString options [0] = «-Djava.class.path=/usr/lib/java;

    vm_args.version = JNI_VERSION_1_6;
    vm_args.nOptions = 1;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = false;

    / * load and initialize a virtual Java machine, return a JNI interface pointer in env * /.
    JNI_CreateJavaVM (& jvm, (void *) & env, & vm_args);

    remove options;

    / * call the method Main.test using the JNI * /.
    JClass cls = env-> FindClass ("Main");
    jmethodID mid = env-> GetStaticMethodID (cls, 'test', '(I) V');
    env-> CallStaticVoidMethod (cls, mid, 100);

    / * We're done. */
    virtual machine Java-> DestroyJavaVM();
    < code >

    In visual studio, make sure that:
    * In the window of directories in VC ++, which includes the path 'directories Include:
    C:\Program Files\Java\jdk1.6.0_24\include\win32
    C:\Program Files\Java\jdk1.6.0_24\include

    * Only the path of "Library directories" includes:
    C:\Program Files\Java\jdk1.6.0_24\lib

    * In the window of the linker to entry the path "Additional Dependencies" includes:
    C:\Program Files\Java\jdk1.6.0_24\lib\jvm.lib

    When you try to run the compiled executable, I get the following message:

    "The program can't start because jvm.dll is missing on your computer. Try reinstalling the program to fix this problem. »

    If I copy the jvm.dll in the same path as my executable, this does not happen, but I guess that this is not the right way to get there!

    I tried to add the path "C:\Program Files\Java\jdk1.6.0_24\jre\bin\client" for the Win 7 path system, as well as in the path of directories executables directories of VC ++, but it does not work.

    What would be the right way to ensure that my executable is jvm.dll?

    Thank you!

    Edited by: 841148 March 2, 2011 09:27

    I tried to add the path "C:\Program Files\Java\jdk1.6.0_24\jre\bin\client" for the Win 7 path system, as well as in the path of directories executables directories of VC ++, but it does not work.

    Myself I have not found much success with the env vars update unless I reboot (although log out then in could do.)

  • Unit test, Visual Studio 2010 digital input read event

    Hello!

    I have problems in Visual Studio 2010, using NOR-DAQmx, but ONLY in a unit test project. I have compiled a dll that uses a DigitalChangeDetection task handler. The dll work very well in a draft standard form, but does not work in a Test project.

    I used .NET Framework 4.0 with success. Tried to switch to .NET framework 3.5, but it is not possible for a test project in Visual Studio 2010.

    When I start my test, it works fine until the event is raised. Once he does, the test will stop without exception or detail except the following result:

    "The agent process was stopped during the execution of the test."

    Nothing is caught in the trap in debugging.

    Also, I get the following in the Event Viewer error message:

    Log name: Application
    Source: VSTTExecution
    Date: 2010-12-01 11:32:31
    Event ID: 0
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer: xxx
    Description:
    The description for event ID 0 in source VSTTExecution is not found. Either the component that triggers this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event is on another computer, the display information had to be saved with the event.

    The following information has been included in the event:

    (devenv.exe, PID 5592, walk on 73) OutOfProcessStrategy.ProcessMonitorThread: The Agent process was closed unexpectedly. will attempt to restart

    the message resource is present, but the message is not in the string/message table

    The event XML:
    http://schemas.Microsoft.com/win/2004/08/events/event">
     
       
        0
        2
        0
        0 x 80000000000000
       
        10312
        Application
        xxx
       
     

     
        (devenv.exe, PID 5592, walk on 73) OutOfProcessStrategy.ProcessMonitorThread: The Agent process was closed unexpectedly. will attempt to restart
     

    I understand that Visual Studio 2010 is not yet officially supported so here's my 2 questions:

    -I'm the only one experiencing this problem? (Easily duplicated by taking the sample project: DotNET3.5\Digital\Read Values\ReadDigChan_ChangeDetection_Events and extract the relevent part of to put in a separate dll so that you can try to UnitTest in a project UnitTest.)

    -Update on what NOR-DAQmx will rely on VS2010? (I read here: http://forums.ni.com/t5/Measurement-Studio-for-NET/Support-for-Visual-Basic-2010-NET-4-Framework/m-p... this is supposed to be before the end of the year, but no updates would be great because I could not find any information on it)

    Best regards

    Pierre-Luc

    Hello Pierre,.

    As NOR-DAQmx is not yet officially supported in Visual Studio 2010, it is not quite clear why this problem occur. At this point, the official release date has not been announced yet, however, please continue to check the updates to www.ni.com/support (drivers and updates). Thank you

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

    www.NI.com/support

  • Visual Studio 2010 Express hangs after Windows Update

    June 11, 2010, I have 19 updates from Windows Update for my Windows XP Home SP3 Swedish (exceptionally many using the computer every day). After I rebooted, Visual Studio 2010 Express crashed at startup saying "(défini par l'utilisateur point d'arrêt-un point d'arrêt dans une application indique erreur de programme)." Re - installation of VS) did not help. Being run/scannow CFS does not report a problem any. Run the program in WinDbg, the program stops at a breakpoint in ntdll.dll. However, if I then go into the debugger program seems to operate normally. Also authorized the virus program Norton Internet Security (NIS) fails on startup with breakpoint in ntdll.dll. This should indicate that there was a problem with ntdll.dll, but all the tests that I ran to the DLL files are all problems. Other programs on the computer seem to work normally, including AVG 9.0 free virus checker, I installed to compensate for the NIS. NIS experts spent several hours in my computer without finding the reason. All clever out there who can help me?

    The problem is solved!

    I run the SDK Direct-X (latest version) in Debug mode and when I changed the retail fashion problems disappeared. Since there is no problem with Debug mode, before the updates of Windows, I guess that these updates were not compatible with debugging DLLs in the SDK. MS has probably forgotten to test in Debug mode or something. Instead however, annoying because the Debug mode is useful during the development of applications of DX.

  • Compiling with Visual Studio 2010 beta

    Hello

    I know that only Visual Studio 2005 is supported for the Acrobat SDK kit. But maybe one of you is also experimenting with visual Studio 2010 and got to work.

    I get the following error message. Anyone solves this problem.

    Error error 105 MSB3073: the command "if not"¬roSDKPIDir %"has ==" "has if not exist"% ¬roSDKPIDir"mkdir"% ¬roSDKPIDir""»»
    If not "% ¬roSDKPIDir' a ==" "a 'C:\Users\test\Documents\Visual Studio 2010\Projects\EPapers_Button\EPapers_Button\Debug\EPapers_Button.dll' copy '% ¬roSDKPIDir'"»
    If not "¬roSDKPIDir %" == «"echo EPapers_Button copied to '% ¬roSDKPIDir'.»
    If '% ¬roSDKPIDir' == ""echo not executed. " No value of the AcroSDKPIDir environment variable.

    ': VCEnd ' came out with code 255.

    Thanks for your help.

    I think that you should disable this type of Vista security.  Or you run VS "Run as Administrator".

  • I CAN'T GET THE WINDOWS MEDIA PLAYER! Self-registration FAILED with Visual Studio 2010!

    Hello world!

    I just bought the Visual Studio 2010 Professional Edition, registered and everything. I have the Windows XP operating system and I wanted to do a media player using WindowsMediaPlayer, I. I saw on YouTube that all you had to do was simply right click, add click on choose the elements and go to components and click on WindowsMediaPlayer. I couldn't find that if I used Google and found that he had to go in System32, then click wmp.dll. After I did, he said

    "Self-registration impossible C:\WINDOWS\system32\wmp.dll.

    I want this thing so BADLY!

    Any help would be VERY VERY LARGELY APPRECIATED!

    Thank you

    TheElevatorMaster

    Hello
     
    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public to MSDN development.
    Please post your question in the MSDN Visual Studio category. 
     

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Visual Studio 2010 on Windows 7 64 bit does not start with error 0xc000007b Application

    Charge installation of Visual Studio 2010 Professional on Windows 7 64 bit
    Picked up SP1 before you run the first time.

    Running fails with:
    ---------------------------
    devenv.exe - Application error
    ---------------------------
    The application was unable to start correctly (0xc000007b). Click OK to close the application.
    ---------------------------
    Ok
    ---------------------------

    The Dependency Walker tool lists the following messages:
    Error: at least a module has an import unresolved due to a missing in an implicitly dependent module export function.
    Error: Modules with different CPU types have been found.
    WARNING: at least a delay load dependency module was not found.
    WARNING: at least a module has an import unresolved due to an export feature missing in a dependent module of lazy loading.

    There are two 64-bit dll that is referenced:
    IESHIMS. DLL and MSVCR100. DLL

    I can copy MSVCR100. DLL from C:\Program Files (x 86) \Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger\x86 in C:\Program Files (x 86) \Microsoft Visual Studio 10.0\Common7\IDE (next to devenv.exe) and I get the splash screen.  However, before the same load completely blocks.  Added an IESHIMS to 32-bit. DLL of C:\Windows\winsxs does not solve the startup crash problem.

    Not quite sure what else to try, any advice would be great.

    Hello

    For assistance on this issue, you can ask your question here:

    Installation and configuration of visual Studio

    http://social.msdn.Microsoft.com/forums/en-us/vssetup/threads

  • DAQmx QAnywhere (Visual Studio 2010/Windows 7)

    Hello

    I'm under Visual Studio 2010/Windows 7 and I installed the software driver OR DAQmx 9.2.2. The installer doesn't install the .NET API reference, even though I checked it in the Installer (it creates a dead link). How to access the reference of the .NET API? It is available online?

    This page answered my question of VS2003, VS2005 and VS2008, but what about VS2010?

    Hi mola.

    Visual Studio 2010 support added in NOR-DAQmx 9.2.3, so I expect to install a copy of the API reference that works with VS2010. However, to develop programs DAQmx with VS2010, so perhaps you need to one of the workarounds described in this thread: VS2010 crashes with BSOD when target framework changes

    Brad

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • An error occurred when creating a project in Visual Studio 2010 &amp; 2012 CVI

    While creating a VS2010 project, with CVI 2012 installation. I get this error after attempting to convert or create a project of the CVI. The CVI dialog box has also no details.

    The error is going on after the installation of SP1 for Visual Studio 2010

  • Microsoft Visual Studio 2010, cannot install

    I can't install visual studio 2010 on pc may. What I would do to this error?

    Hello

    Visual Studio is not supported in these forums. Please instead of asking your question in the relevant Microsoft forum here:

    Visual Studio forums   (on MSDN)

    Hope that helps.

  • Unable to connect to Visual Studio 2010 with patch SP1 & GDR TSF.

    We're trying to access collection server TFS 2013 from Visual Studio 2010 (with patches SP1 & RDA recommended by MS supports), but get error below.

    \

    First of all, we had problems with the application of SP1 & GDR patch, by MS supports, we repaired the v & re-installed these patches worked well. But after that we are gettign above error.

    can someone please tell how to fix this?

    Thank you!

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Problem with Visual Studio 2010, c# and SQL Server

    Several years ago, I programmed in Fortran. In order to get my stack of punch cards to run, I needed a couple of cards that said to the central computer what to do; It was very difficult to get this information as if it were some sort of secret. Today, I am using Visual Studio 2010, and programming in c#. It seems to work OK, but when I try to create a situation of SQL, I find that Windows authentication does not work; If I connect as long as administrator, I can see the database administrator; If I sign my name, I don't see a database created under my name, so that Windows authentication does not work. It seems that I need to know this little piece of information that nobody wants to tell me. I would like to work with an application that I'm developing, but if I can't trust him, I can't use it. I need seamless connections and unequivocal. Help!

    Hello

    It is not a community forum for Visual Studio.

    Try the Visual Studio forums.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

    Don

  • How to run XsdObjectGen in Visual Studio 2010?

    I have some classes that were generated with XsdObjectGen in Visual Studio 2005. Now, we're heading Visual Studio 2010.

    Does anyone know how to run XsdObjectGen in Visual Studio 2010?

    If Visual Studio 2010 does not support this tool, what is the replacement tool? But the generated XML classes must be the same, because we have other classes and third party requests for reference for the classes and the XML files generated by XsdObjectGen in 2005 VS.

    Thank you very much in advance.

    Hello

    The question you posted would be better suited in the TechNet Forums for problems of Visual studio. I would recommend posting your query in the TechNet Forums.

    Hope this helps

Maybe you are looking for