Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

ippiFree static - atexit Access violation

to753
Beginner
407 Views
Hi,

Probably a very basic problem..

I have an Image class using Ippi. When I use a static object of my Image class in some Dos application and close the Ms Dos Shell window, my application crash (Access violation reading) on ippiFree function witch come in the Image destructor, called by the 'dynamic atexit destructor'.

Thanks for help.
Tom.

This code reproduces the case:
/**************************************************************/
#include
class myImage
{
public:
myImage(){
int lLineStep;
mPixels = (char*) ippiMalloc_8u_C1(256, 256, &lLineStep);
};

~myImage(){
if(mPixels != 0){
ippiFree(mPixels);
}
}
private:
char* mPixels;
};

static myImage gImage;

int main()
{
while(true);
}
/**************************************************************/
(Building on Windows XP Visual Express 2005 Ippi version v3.0 Glod)

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
407 Views

Hello, I've tried your code with IPP v5.1.1 and MS .NET 2003 - it works. Might be there are some limitations of VC 2005 Express?

Regards,
Vladimir

0 Kudos
to753
Beginner
407 Views
Hi!

Thanks for your answer!
Finally I fund that it's depend on the "Runtime Library" configuration..
Using MS .Net 2003 it's work for all configurations "multithread dll", "multithread"etc.
But with VC 2005 Express, it's only wok with the "multithread" setting and not with "multithread dll"...
Strange..

Do you think that the problem persist with VC 2005 (not the express edition)?
Ragards,
Thomas




0 Kudos
Vladimir_Dudnik
Employee
407 Views

Hi Thomas,

I do not think this problem exist for non express edition of VC2005

Regards,
Vladimir

0 Kudos
Reply