Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

I think imaqRake fuction has some problem

when I insert this lines of code. the free memory space was more and more reduced. I must call this code many times. what's the problem of this code?
If it has not any problem.
I think 'imaqRake' fuction is some kinds of bug.
I upgraded latest version of imaq fuctions. but ...

RakeReport *RReport;
RReport = imaqRake( m_pGrabImage , roi , IMAQ_LEFT_TO_RIGHT , IMAQ_FIRST , NULL );
imaqDispose( RReport );

I hope to answer of my Question from vision professinal.

in addition, I'm developing the application using Visual C++.
0 Kudos
Message 1 of 4
(3,511 Views)
Hi,

I believe you need to dispose the ROI pointer as well. Disposing the RakeReport is OK, but also you have an ROI you will need to dispose.

Good luck!

Nestor S.
Nestor
0 Kudos
Message 2 of 4
(3,511 Views)
Actually, i use imaqFindEdge function that calls imaqRake function; with the same C++ environment i have the same memory leak.

The imaqDispose function is called for ROI.

In attachment, a VS7 C++ unmanaged sample with mem leak problem.

Can anyone help ?
0 Kudos
Message 3 of 4
(3,511 Views)
In parallel, i spoke with NI support guys that finally reproduced the problem and will be working on this shortly.

Here's what the answered me...

"I was able to reproduce the memory problem with Visual Studio 6.0 as well as with CVI 7.0 (once I switched to the release mode). I'm going to document this problem filing a corrective action request so our developers will be aware of the problem and take necessary actions to fix this. Please reply to this email if you have any feedback that you'd like me to include in the documentation or any other information that you think might speed up the development of a fix by R&D."
0 Kudos
Message 4 of 4
(3,511 Views)