[Implemented] All OS support for OnError library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

[Implemented] All OS support for OnError library

Post by ozzie »

I'm porting my VB6 application to PB, and in VB6 I made extensive use of OnError. This has proved extermely useful in quickly identifying where errors occur that have been reported by a user. I was pleased to find PB provides the OnError library but see that it is only supported for Windows. One of the reasons for choosing PB was the cross-platform support, so my feature request is to provide all OS support for the OnError library. Apart from Windows, I'm wanting to compile to Mac OS X and Linux.

Mike
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Surely, in the v4.3

Source : Freak
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Yes, 4.30 will have an OnError library for all OS and all supported processors.
quidquid Latine dictum sit altum videtur
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Post by ozzie »

Thanks - that's good news.

Mike
User avatar
mback2k
Enthusiast
Enthusiast
Posts: 257
Joined: Sun Dec 02, 2007 12:11 pm
Location: Germany

Post by mback2k »

It would be really cool, if PureBasic executables (on all OS) were able to write crash reports to a file, maybe MyProgram.err or something like. This could be enabled by compiler options. Freak, whats your opinion on this idea?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

You can already do that with the info collected by the OnError lib, what else do you need ?
quidquid Latine dictum sit altum videtur
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

@mback2k:
HeXOR has coded a very good Include:
http://www.purebasic.fr/german/viewtopi ... or+include

Instead of Mailing you can use CreateFile for creating an error-File.
PureBasic for Windows
User avatar
mback2k
Enthusiast
Enthusiast
Posts: 257
Joined: Sun Dec 02, 2007 12:11 pm
Location: Germany

Post by mback2k »

Thanks for the tip. A Include is probably the best solution. Now I have to wait for the Linux version of the OnError library. ;)

Best regards,
mback2k
Post Reply