Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [ AGKSharp Question ] Is there a way to make Agk ignore code errors or try to load corrupted files and continue running the game without crashing?

Author
Message
SkinK4ir3
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 2nd Nov 2024 17:03
Hello everyone, I'm studying AGKSharp's behavior, and there's something that bothers me.
I created an empty txt file and changed its final extension to png (which will result in a null or corrupted image).
and even so the Agk engine loads, however, it causes an error and crashes the entire game...
Is there a way for the application to simply ignore that the file was not loaded without "crashing" the entire game? like this screenshot : https://prnt.sc/HaCHhQOS2bOh

MsgBox error : https://prnt.sc/U2_Kl-29fV0N
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Nov 2024 06:05
have a look at SetErrorMode()

Login to post a reply

Server time is: 2024-11-07 01:35:23
Your offset time is: 2024-11-07 01:35:23