Click to See Complete Forum and Search --> : CRgn deletion & creation


April 13th, 1999, 03:03 AM
Hi,

I am unable to delete a pointer to CRgn.

I have created in my program a 'CRgn *m_myRgn = new CRgn', but I am unable
to do a 'delete m_myRgn' since I get assertion.

I tried doing a 'm_myRgn->Detach()' before doing a delete, but it didn't help. Also a 'DeleteObject()' function doesn't release the memory nor does it point the 'm_myRgn' into a "NULL space".

Please help.