a problem on playing metafile under win98
-
I called the API ::playenhmetafile to play a metafile under win98. If I play three hundred files once time, it will cause bad gdi leak and gdi resource fall down to zero. But it works well under win2000. why? thanks to all the programmers who have helped me.
-
I called the API ::playenhmetafile to play a metafile under win98. If I play three hundred files once time, it will cause bad gdi leak and gdi resource fall down to zero. But it works well under win2000. why? thanks to all the programmers who have helped me.
Because Windows 2000 detects memory leaks and cleans up after you. Ar you *sure* you aren't leaking memory ? I'd suggest posting your code, I'd be happy to provide a sanity check. Are you calling ::DeleteEnhMetaFile(); ? Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.