memory leaks plotsettingsvalidator
memory leaks plotsettingsvalidator
i would like to know how to avoid memory leak using
oddbhostappservices:lotsettingsvalidator() method.
i am developping an output/input function of dwg files in our product.
it seems when the oddbhostappservices:lotsettingsvalidator() method is used, the memory of the pointer for the oddbplotsettingsvalidator is leaking.
if there are any solutions, please let me know.
i am looking forward to receiving your information.
thank you in advance for your attention to this matter.
dwgdirect version 1.10
[example]
class myservices : public exsystemservices, public exhostappservices
{
protected:
using exsystemservices

erator new;
using exsystemservices

erator delete;
};
odstaticrxobject<myservices> svcs;
odinitialize(&svcs);
...
oddbplotsettingsvalidatorptr oplotsettingsptr = svcs.plotsettingsvalidator(); // <--- memory leaks
oplotsettingsptr->setmediasize( ... );
oplotsettingsptr->setplotrotation( ... );
...
oduninitialize();
---------------------------------------
detected memory leaks!
dumping objects ->
c:\program files\microsoft visual studio\vc98\include\crtdbg.h(552) :
{24442} normal block at 0x0360de68, 8 bytes long.
data: < > 84 0a 83 02 01 00 00 00
object dump complete.
thank you.
it solved.
takasugi