| View previous topic :: View next topic |
| Author |
Message |
leovn How do I cheat?
Reputation: 0
Joined: 30 May 2006 Posts: 4
|
Posted: Thu Jul 02, 2009 2:58 am Post subject: [Question]about memory leak when closehandle |
|
|
I want to ask something about CloseHandle and OpenProcess
When i use OpenProcess the first time to do something (read memory in another process) then i'm not CloseHandle it
I continue using OpenProcess to open another handle to this target process (same as above), this time i use CloseHandle to close it, and do something again, finally i use CloseHandle to close the handle i open at first.
Does it make memory leak for my target process ?
My code looks like:
hProc = OpenProcess(PROCESS_ALL_ACCESS, false, dwProcID)
readmemory(xyz);
dosomething(abc);
hProc1 = OpenProcess(PROCESS_ALL_ACCESS, false, dwProcID)
dosomething(def);
CloseHandle(hProc1);
dosomething(ghi);
CloseHandle(hProc);
Memory leak?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jul 02, 2009 3:12 am Post subject: |
|
|
| should be fine.
|
|
| Back to top |
|
 |
leovn How do I cheat?
Reputation: 0
Joined: 30 May 2006 Posts: 4
|
Posted: Thu Jul 02, 2009 4:53 am Post subject: |
|
|
| Thank you so much
|
|
| Back to top |
|
 |
|