|
-
January 12th, 2015, 02:09 PM
#1
Mods: Please delete me.
I'm suspect it might have something to do with the handle, but I can't find any good documentation on this.
Basically I have an old, legacy VC++ 6.0 app that does some work with the old metafile format. In the process of converting it to Enhanced Metafile format I call SetWinMetaBits.
As the title says, after about 4K iterations, I get a NULL handle and CANNOT recover. Whatever I do, wherever I go, who ever I see, that method will return NULL forever until I restart the app.
MODS: Looking for a way to delete this post.
I see no clear mechanism where one can delete a post. Is this possible? Thanks.
Last edited by mega Kluge; January 12th, 2015 at 02:27 PM.
Reason: Clarification
-
January 12th, 2015, 04:18 PM
#2
Re: Mods: Please delete me.
 Originally Posted by mega Kluge
... Looking for a way to delete this post.
I see no clear mechanism where one can delete a post. Is this possible? Thanks.
And what is the reason to delete it?
Victor Nijegorodov
-
January 12th, 2015, 06:01 PM
#3
Re: Old school SetWinMetaFileBits() fails after ~4K iterations. What am I missing h
Hi Victor,
Well, maybe this post might be worth something after all. The SetWinMetaBits was failing due to GDI handle leak elsewhere in the code. There was an HDC that wasn't being released properly. This manifested (eventually) to the SetWinMetaBits failing in an entirely different method. Once the HDC was released, the function stopped returning a NULL HENHMETAFILE and all is working properly.
Maybe this will help someone else at some point.
Thanks for your time.
Tags for this Thread
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
|