Re: win32lib help: Error code 436: getrect:getObject for bitmap failed.

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu