LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL with datasocket calls crashes

I know that the timeout functions don't work in the new datasocket vis that come with LabVIEW 6. Thanks to members of this group, I found the old ones in ...platform/dataskt.llb and built some vis that do what I want. Then I compiled them into a DLL and called it from my C program. I got an error message: "LABVIEW.LIB not called from a LabVIEW process". This was followed by a crash so sever that a reboot was required (Win 98, sigh). ANY call that caused LV runtime to initialize caused this crash. Is there any way to make these older datasocket functions compatible with a version 6 DLL and runtime library?
Rich
0 Kudos
Message 1 of 2
(2,535 Views)
I have never tried what you are proposing but the prospects of success seem a little on the slim side. Plus even if you did get it working once, you might later findout that it was a fluke that you can't reproduce.

Another potential solution is to build a watchdog function that aborts and restarts the datasocket process if it hangs without a timeout. I've had to do this for VI server and its not hard.

Or you could take the datasocket VIs, gut them and build inside them equivalent functionality using a different protocol--like a TCP connection, for example.

As long as your rebuilt code has the same functionality when viewed from a caller, the rest of your application won't know (or care) about the change.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,535 Views)