|
-
Oct 23rd, 2001, 03:43 PM
#1
Thread Starter
Hyperactive Member
GetOpenFileName memory leak?
I've been using the GetOpenFileName function from comdlg32.dll and I've noticed that the size of my app in memory jump about 2 MB after making the call.
This memory never seems to be released. Is there any reason why my app doesn't release the memory?
I've noticed the same things when using the common dialog control instead of the API function. But, it somehow made more sense to me then because I assumed that the control wasn't releasing the memory
Any ideas?
-scott
he he he
-
Oct 23rd, 2001, 04:09 PM
#2
Frenzied Member
The memory usage of your app has increased because it is using the comdlg32.dll and it has to be read into memory. If you use the AX control then your app will still use the dll and as a 'bonus' it will use the ocx file.
-
Oct 24th, 2001, 11:16 AM
#3
If you are loading it via LoadLibrary, then you can free it with FreeLibrary.
-
Oct 25th, 2001, 11:41 AM
#4
Thread Starter
Hyperactive Member
thanks...
That makes sense.
Thanks!
-scott
he he he
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|