PRB: Successful LoadResource of Metafile Yields Random Data (86429)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q86429 SYMPTOMS
When an application for the Microsoft Windows graphical environment
calls the LoadResource() function to load a metafile from the
application's resources, locks the metafile with the LockResource()
function, and uses the metafile, the application receives random
data even though the LoadResource() and LockResource() functions
indicate successful completion.
CAUSE
The application loaded the metafile previously and when the
application freed the metafile, it used the DeleteMetaFile() function
to invalidate the metafile handle.
RESOLUTION
Modify the code that unloads the metafile from memory to call the
FreeResource() function.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbprb kbResource KB86429 |
---|
|