Ravindra Panchal
2022-04-06 09:48:58 UTC
same issue with my app. Have you got any clue on this memory leak, how to resolve ?
A good tool for identifying and fixing memory leaks is Memory Validator.
A 30 day evaluation can be found at http://www.softwareverify.com
Regards
Stephen
--
Stephen Kellett http://www.objmedia.demon.co.uk
Object Media Limited C++/Java/Windows NT/Unix/X Windows/Multimedia
If you are suffering from RSI, contact me for advice.
Unsolicited email from spam merchants not welcome.
Hi,
Using the following code to access the shared memory.
*****************************************
Object *dcM;
dcM = (Object *) MapViewOfFile(hMapFile, // Handle to mapping object.
FILE_MAP_ALL_ACCESS, // Read/write permission
0, // Max. object size.
0, // Size of hFile.
0); // Map entire file.
dcM[0].method1() //Memory leak occors here
*****************************************
Memory leak is occuring while calling method1. Need I to do anything to
handle this.
People usually want to fix their memory leaks.Using the following code to access the shared memory.
*****************************************
Object *dcM;
dcM = (Object *) MapViewOfFile(hMapFile, // Handle to mapping object.
FILE_MAP_ALL_ACCESS, // Read/write permission
0, // Max. object size.
0, // Size of hFile.
0); // Map entire file.
dcM[0].method1() //Memory leak occors here
*****************************************
Memory leak is occuring while calling method1. Need I to do anything to
handle this.
A good tool for identifying and fixing memory leaks is Memory Validator.
A 30 day evaluation can be found at http://www.softwareverify.com
Regards
Stephen
--
Stephen Kellett http://www.objmedia.demon.co.uk
Object Media Limited C++/Java/Windows NT/Unix/X Windows/Multimedia
If you are suffering from RSI, contact me for advice.
Unsolicited email from spam merchants not welcome.