Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Release error in imgSessionCopyBuffer function

Hi,

When I am trying to use imgSessionCopyBuffer function to copy image data to the user buffer I am getting the following error message

-1074397103  IMG_ERR_AEXM This buffer is currently protected. Release it to allow new data to be written.

I am using imgSessionReleaseBuffer((SESSION_ID sid) after which I am using the following functions in sequence

imgSessionStatus
imgSessionExamineBuffer
imgSessionCopyBuffer
imgSessionReleaseBuffer

Still the imgSessionCopyBuffer give the same bad return code. Which buffer are we suppossed to release for the imgSessionCopyBuffer function to avoid this problem? Is it the from (session) buffer or the to (user) buffer? If it is the to (user) buffer then how are we suppossed to release the same.

Kindly let me know the solution.

Thanks & Regards,
Aarthi

0 Kudos
Message 1 of 3
(3,229 Views)
What happens if you place the imgSessionReleaseBuffer after the ExamineBuffer call?  The documentation says that calling the imgSessionReleaseBuffer() after the imaqSessionExamineBuffer() frees buffer which was locked  in the process of examining the buffer.  Does this fix the problem?

Message Edited by s_a_s on 03-09-2006 03:19 PM

S. Arves S.
National Instruments
Applications Engineer
Message 2 of 3
(3,210 Views)
That solved the problem. Thanks a lot.

Regards,
Aarthi
0 Kudos
Message 3 of 3
(3,201 Views)