- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
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)
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Thomas,
I do not think this problem exist for non express edition of VC2005
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page