Trying to plot real time sample with method ChartY of object CWGraph of Component Works 2.0.
OS W9X
Visual C++ 6.0
Each time the method is called the Free GDI objects available decrease. In two or three minutes, the GDI objects are all allocated. All the graphics system goes down.
The method is called inside a message Handler like this:
m_graphMonitor.ChartY(vDisplayedValue, vxAxisInc,vOptional);
where: vDisplayedValue is Y sample.
vxAxisInc is a (long) with the time inc.
vOptional is declared as COleVariant vOptional ((long) DISP_E_PARAMNOTFOUND, VT_ERROR);