Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69174

Problem Dll crashes LabVIEW

$
0
0

Hello

 

I am using a dll in LabVIEW that crashes LabVIEW after a view call cycles.Unfortunately I have no way to get the supplier to change anythin in the dll.

From my view it seems the problem is in the dll. I narrowed down the problem to opening and closing a session to a device and calling init and close.

 

I call these function sequence in a loop in LabVIEW, which after a random number of calls leeds to a crash of LabVIEW:

 

err initDriver()

err openSession(ref*)

err closeSession(ref)

err closeDriver()

 

So I think there is not so much to mess up here and I am pretty sure the fault must be in the dll.

My question now is: Can I do anything to prefent LabVIEW from crashing?

Would it help any if I put all calls in a wrapper dll? Would it help to use implicit binding of the dll with LoadLibrary with initDriver() and UnloadLibrary with closeDriver() in the wrapper dll?

 

Thanks for advises


Viewing all articles
Browse latest Browse all 69174

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>