Posted: Tue Apr 13, 2021 12:44 pm Post subject: Avoid exceptions from Windows with AA excepcion handler
I come from a post in the lua scripting forum (I realized it had nothing to do with lua anymore).
I have this piece of code inside a script
Code:
{$try}
mov ebx,[edi-4C]
jmp short noexc
{$except}
jmp end
And the instruction mov ebx,[edi-4C] is still crashing my game with the exception of access denied, I know this because I checked at the Windows event viewer.
Am I doing something wrong? Or what could be happening? I'm running CE 7.2 in admin mode, thanks.
It actually looks like it works now, seems like the try/except can't be indented or they will be taken as comments. I'd appreciate if this is correct (since the crashes are hard to replicate in this case).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum