Can't debug LabVIEW built shared library

I'm using LabVIEW 8.20 and have built a shared library containing a single VI that will be called from C/C++.
In the build specification, I've enabled debugging and marked 'Wait for debugger on launch'.
I start a C, C++ or LabVIEW application that calls the VI. Now, the "One or more VIs are paused..." message is displayed.
From the Project Explorer window I select Operate->Debug Application or Shared Library... and tries to connect to the application.
The "Failed to connect to remote application" is displayed each time.
I've followed every step in the Debugging Applications and Shared Libraries section of the LabVIEW Help.
If I turn the VI into an Application instead of a Shared Library there's no problem debugging it.
Regards,
tosko

I'm having the exact same problem, only I've tried to prevent all debugging.
I still get the "One or more VIs are paused" message when I call the function via the DLL, but don't get it when I run the executable.
@tosko: Did you ever fix this issue?
@Everyone: Any ideas on a fix?
Edit: Nevermind. I didn't realize I had the following option checked: "My DLL Properties" (dialog) -> Advanced (left menu item) -> Wait for debugger on launch (checkbox).  I unchecked it, rebuilt and it works like a charm.
Message Edited by StevenATK on 04-14-2010 01:52 PM

Similar Messages

  • Pass the command line argument (argc and argv) to a LabVIEW built shared library.

    Hello,
    I have successully use this trick to build a LabVIEW application that runs on Linux without X Display.
    http://digital.ni.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6
    I'd like to know if it's possible to pass the command line arguments ( ./TEST A B C D) directly into the shared library without having to pass the arguments using a array of strings which would require to write code using DSNewHandle, DSSetHandleSize, extract the arguments and ..... (I'm not proficient in C, but if I don't have a choice I will do it and improve my C skills).
    int main(int argc, char *argv[])
            Test(argc, argv);
            return 0;
    Thanks,
    Michel
    Solved!
    Go to Solution.

    Well, you can always flatten it back into a space separated single string and pass it like that. Basically reverse what the OS does when it calls your main function with the command line parameters. And while the first element in the array is always the program name itself you can just skip that here, but then format all the rest into a single string.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can you sync from a shared library

    we have multiple ipod, ipad, iphone devices and multiple imac computers but only one itunes account.  kids are not old enough to have their own account.  can i sync their ipad to their mac if it is using a shared library from my imac or do i need to have all the data on their mac?
    are there other suggestions you can provide on how to manage mutiple idevices and imacs with only one itunes account.
    Thanks

    Welcome to the Apple Community Katie.
    You can import content via homesharing to a library on a computer but not to a mobile device.

  • Can see but not access shared library

    I have a PC running Windows XPsp3 and the latest version of iTunes, and my husband is on a macbook using the latest OS and iTunes.  We both have Home Sharing enabled and he can access my library, but I can not access his.  I can see his shared library but when I click on it, it thinks for a while and kicks me back to my library.  I checked to make sure we were both using the same account info and that we both had sharing enabled.  I checked to make sure our respective firewalls where allowing iTunes through. We are using an AirPort for our router; I'm wired in and he is wireless. I've been looking in the community and can't see where anyone has successfully resolved this problem. 
    BTW, before I recently reformatted and rebuilt my PC, when I encountered this problem I would get an error stating I needed to check my firewall.  Reformatting my PC did not correct the problem, only removed the error message.
    Anyone have any other ideas?

    check out these links:
    Troubleshooting security software issues
    Troubleshooting Home Sharing
    and, last but not least, see this discussion concerning bonjour being the culprit.

  • Why can't i see a shared library on my iphone when the computer is ethernet connected instead of wifi ?

    Why can't i see on my iphone a shared library from a computer ethernet connected instead of wifi ?

    It works fine with wi fi connected computer, and i can see the library on my other computers, but not on the iphone

  • How can I import a home shared library

    I am trying to import another itunes library shared with home sharing.  Can I do this?  AT one time I remember dragging and dropping from a shared library but now I am not able to do this.

    I am trying to import another itunes library shared with home sharing.  Can I do this?  AT one time I remember dragging and dropping from a shared library but now I am not able to do this.

  • HT202213 Can't get music from shared library onto my iPod?

    I have managed to set up home sharing, and I can see the shared library when I'm in my iTunes account, but I cannot transfer stuff from that library to my iPod.  I'm using a PC, the library I'm sharing is on a Mac, and I'm trying to get music onto an iPod Nano.  Any help?

    More on this issue. So I see songs in my Music library, but when I try to move them over to either my created playlist on the device or under the playlist it show the circle with the line through it, not allowing me to move it.
    Thanks in advance for any help.

  • IPads, iPhones, and Apple TVs can no longer load home sharing library after 2 years

    I have been using home sharing for the past few years and streaming my music, movies, and TV shows to my Apple TVs, iPads, and iPhones. A couple weeks ago it stopped working. On all the devices I see the library (Familys Library) but when I go to load it fails to load. The iPads and iPones get to about half of the circle and fails. On the Apple TV I think the message just is "Cannot load Library"
    I have tried restarting all of my devices but that has not helped. I changed the account that the home sharing is setup for and that did not help. I rebooted the Windows machine multiple times. I disabled home sharing, rebooted, restarted home sharing, all to no avail. The library system is connected over Etehrnet so I made the system to a different port on the router with no luck. I have also unplugged the router nad plugged it back in, also with no luck.
    So, I will try replacing the ethernet cable but I do not see that as being the issue. It seems like something on that computer.
    Going through the Programs it looks like iTunes and Quicktime were both updated on 3 June, right around the time this started to occur. I also loaded items for my duaghters Nook, Adobe Digital Editions, so that she can get books. I removed the items that I loaded for the nook and that did nto fix the issue. I would like to downgrade iTunes, but I cannot find an old copy of iTunes plus I do not know if this will destroy the library contents.
    My questions would be
    1. Can I find an older version of iTunes
    2. Can itunes be removed from the computer and reinstalled without the iTunes library getting blown away? I have a lot of moveis and descriptions and information located in the Get Info that would just stink to lose
    3. Could this be a corrupt library and is there a way t verify the library?
    4. Any other things I can do and check
    Thanks for any insight and help
    Cheers
    Dave

    All the cutting and pasting and I forgot the machine information:
    OS: Windows 7 x64
    Memory: 8G
    Current iTunes: 11.0.4
    Thanks

  • How can I access the Home Sharing Library from my iPad?

    We have an ipad 2 with ios 7, and an imac with itunes 11.1.3
    Just heard about home sharing and want to use this - surprised we haven't heard of it before
    home sharing is turned on in itunes (file > home sharing).
    home sharing is on for the ipad (settings > music)
    They are both connected to the same wifi network (usually our computer doesnt use wifi and is wired, but we turned wifi on just for this)
    When I open music in the ipad (even after continually quitting and reopening the app) there is no 'more' button in the bottom right that there is supposed to be.
    What is wrong? How do I access the library from the ipad? Help please!

    Welcome to the Apple community.
    More does more than home sharing, so it's odd that it isn't there, even if home sharing wasn't working for some reason. Are you sure you are in the music app and not the iTunes App.

  • Is there any way I can create folder in my shared library?

    I have a lot of videos and it's all mixed up and I would really like to have them in folders.

    AirPlay
    AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer).
    Several Apple Articles Regarding AirPlay
    Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
    How to set up and configure AirPort Express for AirPlay and iTunes
    Troubleshooting AirPlay and AirPlay Mirroring
    Using AirPlay

  • How can I use a shared library made with the application builder?

    Hi,
    I am using LabVIEW 7.1 running on Slackware 10.1 (kernel 2.4.29) and I am trying to call a graph display from a C program that I use for debugging VME access from a VMIVME controler. So using the application builder I built the VI as a shared library (graph.vi -> graph.so) containing a function called "graph". In my main program the call to the dlopen fails with the error: "graph.so: undefined symbol: UninitLVClient". When I examin graph.so with nm I see that UninitLVClient and other LabVIEW functions are indeed undefined and using ldd shows that graph.so has dependencies only on libc.so.* and *linux*.so.* but not on LabVIEW related stuff. Those functions are defined in the liblv.so that's in the cintools directory but I have no idea if the user is supposed to use that.
    So I think I am missing an important concept here. Can somebody help or direct me to some documentation (I found lots of information about how to link external code to LabVIEW but nothing about how to link LabVIEW code to an external program)?

    Thanks Watermann,
    your message has been very useful so now I am linking to the proper library but I still have problems when trying to load dynamically the shared library produced with LabVIEW. It is strange that I could successfully load the lvrt library at loading time but it does not work when I am loading the library at execution time.
    I made a small LabVIEW program that prints a hello window and I am calling it from a C program. In the first program main.c I am linking to the lvrt library at loading time and it works but in the second one I am linking dynamically at execution time and it does not work. For my work I need to be able to load code done in LabVIEW at execution time. Any help is appreciated!
    Program main.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include "hello.h" // got this from the LabVIEW builder, i.e. when I made the hello.so
    int main(void)
    printf("Hello from C!\nLets call LabVIEW now\n");
    hello();
    printf("Bye ... \n");
    return 0;
    The command to compile main.c, i.e. linking shared library lvrt when loading main program:
    gcc -Wall -I /usr/local/lv71/cintools/ -o main main.c hello.so -l lvrt
    The LD_LIBRARY_PATH has been defined and exported:
    $ LD_LIBRARY_PATH=$PWD
    $ export LD_LIBRARY_PATH
    IT WORKS!
    Program main2.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include
    int main(void)
    void * h_lvrt;
    void * h_hello;
    void (* hello)(void);
    char * error;
    printf("Hello from C!\nLets call LabVIEW now\n");
    // open LabVIEW RunTime shared library
    // in my computer located at /usr/local/lib/liblvrt.so
    h_lvrt = dlopen("/usr/local/lib/liblvrt.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    printf("error : could not open LabVIEW RunTime library\n");
    printf("%s\n", error);
    return 1;
    // open hello shared library
    // in my computer located at /home/darss/lv_call/hello.so
    h_hello = dlopen("hello.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not open hello library\n");
    printf("%s\n", error);
    return 1;
    // get function hello from library hello.so
    hello = dlsym(h_hello, "hello");
    // check for error
    error = dlerror();
    if (error) {
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not get the hello function\n");
    printf("%s\n", error);
    return 1;
    // call hello function
    hello();
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("Bye ... \n");
    return 0;
    The command to compile main2.c, i.e. dynamically linking library lvrt at execution of main2 program:
    gcc -Wall -o main2 main2.c -l dl
    The LD_LIBRARY_PATH still defined and exported.
    IT DOES NOT WORK!
    Program output:
    Hello from C!
    Lets call LabVIEW now
    error : could not open hello library
    /home/darss/lv_call/hello.so: undefined symbol: WaitLVDLLReady

  • Can allication reffer the shared library using STL?

    I want to make the shared library which using STL, and make application using this liblary.
    I suceed making shared liblary which using STL, but failed to building allication program. The error message is following ...
    /opt/SUNWspro/bin/CC -Kpic -g -mt -V -D_REENTRANT -DFSUN -D_DEBUG -I/export/home/efm/kawaha/EFCFEnv/include -o ./TestDriver.exe SampleDriver.cpp -L/export/home/efm/kawaha/EFCFEnv/lib -L/usr/j2se/jre/lib/sparc/server/ -L/opt/SUNWspro/lib -L/opt/SUNWspro/WS6U1/lib -lhtefcfenv -L/usr/j2se/jre/lib/sparc/server/
    CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
    ccfe: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
    CClink: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
    CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
    /opt/SUNWspro/bin/../WS6U1/bin/c++filt: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
    ld: Software Generation Utilities - Solaris-ELF (4.0)
    Undefined first referenced symbol in file
    __type_1 std::copy<EFCFMapValue**,EFCFMapValue**>(__type_0,__type_0,__type_1) /export/home/efm/kawaha/EFCFEnv/lib/libhtefcfenv.so
    unsigned __rwstd::__rb_tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::pair<const std::basic_string<char,std::char_traits<char>,std::allocator<char> >,EFCFMapValue*>,__rwstd::__select1st<std::pair<const std::basic_string<char,std::char_traits<char>,std::allocator<char> >,EFCFMapValue*>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<const std::basic_string<char,std::char_traits<char>,std::allocator<char> >,EFCFMapValue*> > >::count(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&)const /export/home/efm/kawaha/EFCFEnv/lib/libhtefcfenv.so
    ld: fatal: Symbol referencing errors. No output written to ./TestDriver.exe
    *** Error code 1
    make: Fatal error: Command failed for target `TestDriver.exe'
    Instanciated symble exit SunWS_cache. I did not know that how application to reffer this symbol.
    Can the applicaton reffer the shared library using STL?
    or
    Can the applicaton reffer the static library using STL?
    Mihoko

    It seems in ur application,u use STL,but not include the STL header files,just include the right STL header files and "usring namespace std;" in ur application,i think will solve ur problem.

  • Unable to see shared library

    I searched for and read about a dozen previous posts on this subject but was unable to find a solution. Not only can I not see any shared library but I don't even have a "shared" menu item on either PC as described in the help file. It should show up under the Library>Music heading?
    Both PC's:
    ...can connect to the internet
    ...can transfer files back and forth
    ...can see each others "Shared Docs" directory
    ...have iTunes and Bonjour listed as exceptions in Windows Firewall
    ...have the latest verions of iTunes and Bonjour
    When I point the iTunes Music Folder location on the 'remote' PC to the iTunes Music Folder on the 'host' PC, it finds it, see's it, and then asks if I want to update (the view)? to match? I said yes. Still the same list of songs that are physically on the remote PC and nowhere does it say anything about sharing or give any indication that it is aware of the host library.
    What am I not getting?

    "iTunes Sharing, the built-in feature, has nothing to do with pointing your iTunes Music folder setting to a shared folder on another computer. Those are two separate features/capabilities."
    Yes, I get that - I was just trying everything I could think of to make it see my shared library.
    "do you have Sharing and "Look for shared" turned on in the iTunes Sharing preferences?"
    Yes.
    "you want to have your iTunes library using the shared folder on your other computer, you need to use the Add Folder to Library command to get the tracks into the iTunes library listing"
    Not quite sure what your getting at here. The help file for sharing the entire library gives 3 simple steps and then says "its name appears in the iTunes window (below Shared) on other local computers (in the same subnet) set up to look for shared libraries." - obviously this is not happening.
    The whole reason to share and use the host library is specifically to avoid having to manually add tracks/folders from the remote PC.

  • Problem with JNI (custom shared library) on App Server

    We have a custom built shared library (.so) we want to use with the app server (a webapp). The .so is wrapped with java class and works to spec when tested outside of app server (webapp) environment with test stub. When wrapper class is introduced to App Server (webapp) & embedded function is invoked we recieve java.lang.UnsatisfiedLinkError(). We've looked to make sure $LD_LIBRARY_PATH is correct but still recieve this exception. Any suggestions? Running nm against the .so shows undefined symbols but these should be resolved by $LD_LIBRARY_PATH. Any suggestions?

    what version of appserver are u using...if 7.0 then try using their common class loader as per this docs:
    http://docs.sun.com/source/817-2171-10/dgdeploy.html#wp69906

  • Sync movie in Shared Library to IPhone

    I can see movies in a shared library (not the ITunes library on this laptop), but can't get those movies to sync to the IPhone. Only the movies on the local laptop are syncing. And when I try to move from the old library to the iphone to the new laptop, then back to the iphone, it doesn't work. Tips? Ideas?

    Figured it out. Duh.

Maybe you are looking for