Re: win32lib help: Error code 436: getrect:getObject for bitmap failed.
- Posted by CChris Sep 08, 2008
- 1200 views
Something is weird about the bmp_snowflake variable.
C:\EUPHORIA\snow.exw (9): atom bmp_snowflake C:\EUPHORIA\snow.exw (28): bmp_snowflake = create(Pixmap, "", WIN, 0, 0, 1, 1, 0) C:\EUPHORIA\snow.exw (93): bmp_snowflake = loadBitmapFromFile(snowflake_image)
So, at some point, bmp_snowflake is a win32lib id of a Pixmap control
Later, it becomes a bitmap handle asyou load a bitmap file from disk.
This would explain why getRect() is processing an unknown id (the bitmap handle), but for some reason that handle is not seeen as a bitmap handle by Windows. That's how you got an error 436.
Try using a different variable for the Pixmap control id. This should eliminate the error.
CChris