- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have a problem where IPP 5.1 gets unloaded too early under MSVS .net 2005, thus when I call ippFree() I get an exception becasue the memory pool that was previously allocated with IPP 5.1 library is no longer present.
Background:
I have a library with a single global library object that keeps track of all memory buffers that have been allocated, then at the end of my application, the applicatin code (i.e. GUI code) deletes the object which holds all of the library objects (that's the way we decouple library stuff from GUI stuff); when the library objects (which are using IPP) finish to get deleted, my global Memory manager goes and tries to delete buffers that were not deleted, when trying to do this, I find out that the memory buffers are no longer valid; in other words, these memory blocks have been returned to the system, so we strongly suspect that the IPP DLL has been unloaded.
Question:
How do we control the unload time ?
Thank you.
God bless you,
Saul Rodriguez
Software Engineer
Moorpark, CA
I have a problem where IPP 5.1 gets unloaded too early under MSVS .net 2005, thus when I call ippFree() I get an exception becasue the memory pool that was previously allocated with IPP 5.1 library is no longer present.
Background:
I have a library with a single global library object that keeps track of all memory buffers that have been allocated, then at the end of my application, the applicatin code (i.e. GUI code) deletes the object which holds all of the library objects (that's the way we decouple library stuff from GUI stuff); when the library objects (which are using IPP) finish to get deleted, my global Memory manager goes and tries to delete buffers that were not deleted, when trying to do this, I find out that the memory buffers are no longer valid; in other words, these memory blocks have been returned to the system, so we strongly suspect that the IPP DLL has been unloaded.
Question:
How do we control the unload time ?
Thank you.
God bless you,
Saul Rodriguez
Software Engineer
Moorpark, CA
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Saul,
if I understand the problem correctly it seems that you try to call ippFreetwice on the same address.This is not IPP issue. I recommend you to explicitelyzero pointer to deallocated memory, it helps to guard fromattempts to free memory block twice.
if(0 != pointer)
{
ippFree(pointer);
pointer = 0;
}
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