In message <b5a71bcf.02071...@posting.google.com>, baskar <cbas...@yahoo.co.in> writes
Hi,
Using the following code to access the shared memory.
*****************************************People usually want to fix their memory leaks.
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.
same issue with my app. Have you got any clue on this memory leak, how to resolve ?
On Thursday, July 11, 2002 at 6:13:37 PM UTC+5:30, Stephen Kellett wrote:
In message <b5a71bcf.02071...@posting.google.com>, baskar
<cbas...@yahoo.co.in> writes
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:41:36 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,851 |