bmpout cleanup code

Hello,

Using the sample code from bmpout.cpp, I can successfully create bmp files from drawings but I ran into a problem with memory allocation.

The stack calls are:
OdGsBaseVectorizerView::~OdGsBaseVectorizerView
OdSlotManager::FreeSlot(unsigned int)
OdArray<int, OdMemoryAllocator::append(const int).
OdArray<int, OdMemoryAllocator::length(). -- crashes here

After creating the bmp file, I have already added code for pGs.release() and pDevice.release();

Am I missing other clean up code?

Thanks...
[568 byte] By [robertpantangco] at [2007-11-20 11:37:50]
# 1 Re: bmpout cleanup code
What bmpout.cpp ? What kind of code have you attached?
I dont think you are missing cleanup, may be you are cleaning up more, if you dont cleanup, mostly it will not crash but it will leak, but you try to delete/free multiple times (same memory) then you might run into such problem.
Krishnaa at 2007-11-10 22:24:50 >