Original Post
I'm having a weird problem. I've created a CBitMap class, and it works just fine. However, when I try to delete[] memory for image data, I get this screen pop-up:
Here is an excerpt of my CBitMap Class:
When I comment out the line 'delete[] bmpBuffer' in the destructor, I don't get the error pop-up. I have no idea what might be going on here. Any ideas?
Thanks in advance!
[edited by - Teric on June 11, 2002 8:01:08 AM]
Here is an excerpt of my CBitMap Class:
private:
UCHAR *bmpBuffer;
.
.
CBitMap::~CBitMap()
{
//Free memory
delete[] bmpBuffer;
}//~CBitMap
.
.
int CBitMap::LoadBMPFile(char *filename)
{
.
.
bmpBuffer = new UCHAR[bmpInfoHeader.biSizeImage];
.
.
}