DSA
2007-10-07 15:10:08 UTC
Hello Michael,
It?s hard to tell if
the « ImaqAVIColorImage » buffer is correct because it is not really
viewable (see attachment).
But if I reconvert it
immediately after saving it the AVI frame and then display it, it is always ok.
But when reading back the AVI file, the problem remains.
I try several
approaches :
Not stopping the BackgroundWorker between
two acquisitions ;
Not closing the acquisition session and
interface between two acquisitions ;
Not disposing the image buffers between
two acquisitions ;
Using a ?void*? instead of the ?unsigned
long int *? pointer to use with the imaqArrayToImage and imaqImageToArray
functions ;
Forcing a really new AVI session by not
closing the previous AVI before calling the imaqCreateAVI function (otherwise, the AVI session is always
?33?) ;
Try the application on another computer
with another frame grabber (same model) ;
Other things I don?t remember !
The result is always
the same : black stripes on the second AVI.
So, unless you or
someone else have another idea, I think I will try something else (as saving
directly the image arrays to a binary file).
The only thing I could
think of is that a memory location is locked by the first AVI session (or
something in my code) and it is only released when stopping completely the
application.
Thank you for your
help !
David
ImaqAVIColorImage18.PNG:
Loading Image...
It?s hard to tell if
the « ImaqAVIColorImage » buffer is correct because it is not really
viewable (see attachment).
But if I reconvert it
immediately after saving it the AVI frame and then display it, it is always ok.
But when reading back the AVI file, the problem remains.
I try several
approaches :
Not stopping the BackgroundWorker between
two acquisitions ;
Not closing the acquisition session and
interface between two acquisitions ;
Not disposing the image buffers between
two acquisitions ;
Using a ?void*? instead of the ?unsigned
long int *? pointer to use with the imaqArrayToImage and imaqImageToArray
functions ;
Forcing a really new AVI session by not
closing the previous AVI before calling the imaqCreateAVI function (otherwise, the AVI session is always
?33?) ;
Try the application on another computer
with another frame grabber (same model) ;
Other things I don?t remember !
The result is always
the same : black stripes on the second AVI.
So, unless you or
someone else have another idea, I think I will try something else (as saving
directly the image arrays to a binary file).
The only thing I could
think of is that a memory location is locked by the first AVI session (or
something in my code) and it is only released when stopping completely the
application.
Thank you for your
help !
David
ImaqAVIColorImage18.PNG:
Loading Image...