Handle leak

This is a discussion on Handle leak within the Clipper forums in Programming Languages category; Hi All, I have a webserver I use - none of the standard ones available. I have discovered a handle leak in it. I use a memfree(handle) to release resources. Do I need to do anything else? I use thread handles as well as file handles. Thanks, Vaishali...

Go Back   Application Development Forum > Programming Languages > Clipper

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 11:50 PM
Vaishali Kedar
Guest
 
Default Handle leak

Hi All,

I have a webserver I use - none of the standard ones available. I have
discovered a handle leak in it. I use a memfree(handle) to release
resources. Do I need to do anything else? I use thread handles as well as
file handles.

Thanks,
Vaishali


Reply With Quote
  #2  
Old 08-29-2008, 01:44 PM
Amilcar A. Camargo
Guest
 
Default Re: Handle leak

Hi Vaishali,

On Fri, 29 Aug 2008 13:50:39 +1000, "Vaishali Kedar"
<vaishali.kedar@gordynpalmer.com.au> wrote:

>Hi All,
>
>I have a webserver I use - none of the standard ones available. I have
>discovered a handle leak in it. I use a memfree(handle) to release
>resources. Do I need to do anything else? I use thread handles as well as
>file handles.


MemFree() releases resources allocated by MemAlloc(), StringAlloc() and the
like.

All other objects created by windows API functions (CreateFile(), FOpen(),
CreateThread()...) should be closed with CloseHandle().

HTH,
Amilcar A. Camargo F.
Guatemala, C. A.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:28 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.