Thanks Kev... when I remove the canvas (and cls/flipcanvas lines etc) it still crashes just as before (and, similarly, runs ok when I also remove the InvalidatRect line, same as before).
"is a canvas not a directx surface?" Good question! I do not know what exactly a canvas is. My best guess would be a hdc but I don't totally understand what that is either, other than general things I can with one using just BlitzPlus.
Here is the def in my user32.decls file:
.lib "user32.dll"
[...]
api_InvalidateRect% (hwnd%, lpRect*, bErase%) : "InvalidateRect"
[...]
Happy to post more or all of the code if you like.
"is a canvas not a directx surface?" Good question! I do not know what exactly a canvas is. My best guess would be a hdc but I don't totally understand what that is either, other than general things I can with one using just BlitzPlus.
Here is the def in my user32.decls file:
.lib "user32.dll"
[...]
api_InvalidateRect% (hwnd%, lpRect*, bErase%) : "InvalidateRect"
[...]
Happy to post more or all of the code if you like.