Riggy wrote:
> Calling cygjpeg6b.dll crashes LabVIEW everytime, no matter the chosen
> settings in Configure. Anyone know why?
>
> I am trying to access the DLL cygjpeg6b.dll for fast internal
> compression and decompression of images int jpegs (without saving to
> files). I intend to use these compressed images to reduce network use
> in a code written to pass images from webcams between two linked
> computers.
> I do not wish to use the IMAQ functions, hence my interest in this
> DLL.
> However, no matter what I set in the Configuration for this DLL call,
> LabVIEW crashes immediately on clicking OK. Anyone know why? I presume
> I am calling it incorrectly, but I do not know why.
If you have tried the different calling conventions, are sure the data
types
are correct, you most probably call a function which expects an
array or string buffer to write some data into. Such buffers need to be
allocated always by the caller (e.g. LabVIEW in this case) BEFORE the
function is called.
So make sure you understand what the function expects, and allocate a
buffer big enough so the function can properly write into some memory.
Allocation of buffers in LabVIEW is most easily done with the Initialize
Array function and the resulting array is passed to the input terminal
for the according parameter on the Call Library Node.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390