LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using .DLL file/ Call Library File to Obtain Image Data from USB Camera

Solved!
Go to solution

Is there any chance you can write a VI that demonstrates the problem, and does nothing except communicate with the camera?  Or, can you attach your entire project, if it's not ridiculously large?

 

The C++ samples may not seem helpful to you if you don't have much C++ experience (I don't know if this is the case for you), but they could be helpful to an experienced C++ programmer.  Can you attach or post it?  Also, there's no documentation for the library functions?

 

When you say you used IMAQ Array to Image - does that mean you were able to get the DLL call to run without crashing?  If so, under what conditions?  Without seeing your code, I can't understand exactly what you're asking about whether maintaining a buffer of 1 image will stop it from crashing.

Message 11 of 12
(541 Views)
Solution
Accepted by topic author griplegraple

Solution: 

 

Some of the inputs created with the Import Shared Library tool were incorrectly assigned. Properly reassigning those inputs and creating a buffer with the appropriate dimensions solved the memory leak. The image was successfully grabbed from the camera into a 1D array and then transformed into a 2D array of image data. 

 

Many thanks to NathanD for his help.

 

-griplegraple

0 Kudos
Message 12 of 12
(522 Views)