03-19-2008 02:17 AM
Hello,
I'm trying to use a labview DLL (which I can't modify since I've no access to the source) in CVI. The function I use needs 1 LStrHandle as input and 2 LStrHandle as output. But I'm getting the following error message when I'm executing the function :
"error #3: "memory.cpp", line 563, labview 6.1"
I've tried to allocate memory to the handle but I'm not sure at all what I'm doing (when not doing this, I receive a general protection error) :
hraw = (LStr**)DSNewHandle(sizeof(LStr));
hout = (LStr**)DSNewHandle(sizeof(LStr));
houtp = (LStr**)DSNewHandle(sizeof(LStr));
Thanks for helping,
Arnaud
03-19-2008 08:05 AM - edited 03-19-2008 08:05 AM
03-19-2008 08:34 AM - edited 03-19-2008 08:41 AM
Hi Jonathan,
Thank you for your reply.
I've just tried what you told me but I'm still getting the same error. Anyway, the dll gives back the result in two string handles. Should I initialize them the same way (the length is not fixed) ? I've tried to initialize them with a length of 10000 bytes which should be more than enough but still the memory.cpp error.
Thanks again for your time.
Best Regards,
Arnaud
03-19-2008 11:47 AM
05-23-2008 04:55 PM
05-23-2008 05:15 PM
05-29-2008 08:24 PM
05-30-2008 08:07 AM
05-30-2008 08:40 AM - edited 05-30-2008 08:40 AM
08-05-2020 07:30 AM
Thank you for that one..
@National Intstruments
Something like that should make it into the offical doc.