It is currently Fri Sep 25, 2020 12:14 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: [Windows XP+] Try .. Catch .. EndTry - Error Handling
PostPosted: Sat May 26, 2012 9:44 am 
Offline
Addict
Addict

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3914
Location: Berlin, Germany
Thank you so much, Danilo!

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: [Windows XP+] Try .. Catch .. EndTry - Error Handling
PostPosted: Sat May 26, 2012 9:57 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4704
Location: Lyon - France
Your codes are very often incredible :shock:
Sometime, i ask to me, if you not rewrite a clone of PB :lol: :lol:
Thanks DANILO for sharing 8)

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: [Windows XP+] Try .. Catch .. EndTry - Error Handling
PostPosted: Tue Jan 26, 2016 10:07 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 928
Location: UA
Thanks, it is very cool and useful and just helped me a lot to avoid whole program crash in cases when loaded external dll fails 8) (and I guess will help a lot in many other cases where annoying crashes can appear at minor errors)
The OnError library doesn't seems to be handy usable with such cases

_________________
Kind of copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: [Windows XP+] Try .. Catch .. EndTry - Error Handling
PostPosted: Thu Sep 12, 2019 3:32 am 
Offline
User
User

Joined: Wed Jul 17, 2019 5:32 pm
Posts: 40
@Danilo

How do we acquire the error number and error message when using your Try/Catch error handling?
Sample code?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Windows XP+] Try .. Catch .. EndTry - Error Handling
PostPosted: Wed Oct 30, 2019 3:13 am 
Offline
User
User

Joined: Sat Oct 26, 2019 6:48 pm
Posts: 16
Hmm...
I came across this and it peaked my interest a bit.
Seems to work.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Windows XP+] Try .. Catch .. EndTry - Error Handling
PostPosted: Fri Nov 01, 2019 3:26 am 
Offline
User
User

Joined: Sat Oct 26, 2019 6:48 pm
Posts: 16
I've tried this a few times and it seems to work well at trapping critical errors, then allowing the user to continue.
But like the previous poster, I can't figure out how to acquire the error information (error code and description/message) from the 'CurrentExceptionInfo' variable. Does anyone have any ideas how to extract these 2 items of information?

Anyone?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 24 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye