unlikely
PureBasic 6.00 released !
Re: PureBasic 6.00 Beta 2 released !
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{Downloads}.:|:.{History Viewer Online}
Re: PureBasic 6.00 Beta 2 released !
Is the onerror lib not working with the c back end?
The Program just ends for me without any message.
The Program just ends for me without any message.
Code: Select all
;
; ------------------------------------------------------------
;
; PureBasic - OnError example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------
;
Procedure ErrorHandler()
ErrorMessage$ = "A program error was detected:" + Chr(13)
ErrorMessage$ + Chr(13)
ErrorMessage$ + "Error Message: " + ErrorMessage() + Chr(13)
ErrorMessage$ + "Error Code: " + Str(ErrorCode()) + Chr(13)
ErrorMessage$ + "Code Address: " + Str(ErrorAddress()) + Chr(13)
If ErrorCode() = #PB_OnError_InvalidMemory
ErrorMessage$ + "Target Address: " + Str(ErrorTargetAddress()) + Chr(13)
EndIf
If ErrorLine() = -1
ErrorMessage$ + "Sourcecode line: Enable OnError lines support to get code line information." + Chr(13)
Else
ErrorMessage$ + "Sourcecode line: " + Str(ErrorLine()) + Chr(13)
ErrorMessage$ + "Sourcecode file: " + ErrorFile() + Chr(13)
EndIf
ErrorMessage$ + Chr(13)
ErrorMessage$ + "Register content:" + Chr(13)
CompilerSelect #PB_Compiler_Processor
CompilerCase #PB_Processor_x86
ErrorMessage$ + "EAX = " + Str(ErrorRegister(#PB_OnError_EAX)) + Chr(13)
ErrorMessage$ + "EBX = " + Str(ErrorRegister(#PB_OnError_EBX)) + Chr(13)
ErrorMessage$ + "ECX = " + Str(ErrorRegister(#PB_OnError_ECX)) + Chr(13)
ErrorMessage$ + "EDX = " + Str(ErrorRegister(#PB_OnError_EDX)) + Chr(13)
ErrorMessage$ + "EBP = " + Str(ErrorRegister(#PB_OnError_EBP)) + Chr(13)
ErrorMessage$ + "ESI = " + Str(ErrorRegister(#PB_OnError_ESI)) + Chr(13)
ErrorMessage$ + "EDI = " + Str(ErrorRegister(#PB_OnError_EDI)) + Chr(13)
ErrorMessage$ + "ESP = " + Str(ErrorRegister(#PB_OnError_ESP)) + Chr(13)
CompilerCase #PB_Processor_x64
ErrorMessage$ + "RAX = " + Str(ErrorRegister(#PB_OnError_RAX)) + Chr(13)
ErrorMessage$ + "RBX = " + Str(ErrorRegister(#PB_OnError_RBX)) + Chr(13)
ErrorMessage$ + "RCX = " + Str(ErrorRegister(#PB_OnError_RCX)) + Chr(13)
ErrorMessage$ + "RDX = " + Str(ErrorRegister(#PB_OnError_RDX)) + Chr(13)
ErrorMessage$ + "RBP = " + Str(ErrorRegister(#PB_OnError_RBP)) + Chr(13)
ErrorMessage$ + "RSI = " + Str(ErrorRegister(#PB_OnError_RSI)) + Chr(13)
ErrorMessage$ + "RDI = " + Str(ErrorRegister(#PB_OnError_RDI)) + Chr(13)
ErrorMessage$ + "RSP = " + Str(ErrorRegister(#PB_OnError_RSP)) + Chr(13)
ErrorMessage$ + "Display of registers R8-R15 skipped." + Chr(13)
CompilerEndSelect
MessageRequester("OnError example", ErrorMessage$)
End
EndProcedure
; Setup the error handler.
;
OnErrorCall(@ErrorHandler())
MessageRequester("OnError example", "Executing some code with errors. The debugger should be turned off.")
; Write to protected memory
;
PokeS(123, "The quick brown fox jumped over the lazy dog.")
; Division by zero
;
a = 0
a = 1 / a
; Generate an error manually
;
RaiseError(#PB_OnError_IllegalInstruction)
; This should not be displayed
;
MessageRequester("OnError example", "Execution finished normally.")
End
Re: PureBasic 6.00 Beta 2 released !
Please fill a proper bug report, thank you.
Re: PureBasic 6.00 Beta 3 released !
Beta 3 is out, don't hesitate to give it a try ! Changelog:
Code: Select all
- Changed the name of the /EXE commandline flag to /OUTPUT be more coherent (still work for backcompatibilty but not documented anymore)
- Changed the short version of /CONSTANT from '-o' to '-co' as '-o' is now used for /OUTPUT
- OSVersion(): added support for Windows 11
- Added #PB_Compiler_Optimizer which is set to #True if the optimizer is enabled
- Dropped x86 version of PureBasic for OS X as it's no more supported since OS X Catalina (Minimum supported OS X is now 10.10 - released in 2014).
IDE:
- New contextual constant display for AutoComplete (Fr34k - https://github.com/fantaisie-software/purebasic/pull/183)
- 3 new triggers for custom tools: "OpenFile - Non-PB binary file", "OpenFile - Non-PB text file", "OpenFile - with specific extension" (HeX0R101 - https://github.com/fantaisie-software/purebasic/pull/195)
- New 'Replace' shortcut (CTRL+H) which opens the find dialgo with replace enable (ChrisRfr - https://github.com/fantaisie-software/purebasic/pull/184)
- Bug fixes, thanks to all other contributors !
- Psychophanta
- Addict
- Posts: 4996
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Lípetsk, Russian Federation
- Contact:
Re: PureBasic 6.00 Beta 3 released !
Changes are enough for a new beta
http://www.zeitgeistmovie.com
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: PureBasic 6.00 Beta 3 released !
Thanks team! Comprehensive and solid, as always. PureBasic is the best investment I ever made, nothing comes even close.
BERESHEIT
Re: PureBasic 6.00 Beta 3 released !
Thank you team,
which macOS and Xcode version is now used for Intel?
Sorry, didn't get around to testing beta 2 on windows. Found another small bug in the C-backend.
which macOS and Xcode version is now used for Intel?
Sorry, didn't get around to testing beta 2 on windows. Found another small bug in the C-backend.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- RichAlgeni
- Addict
- Posts: 914
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: PureBasic 6.00 Beta 3 released !
Here here!!!netmaestro wrote: ↑Thu Jan 27, 2022 8:14 pm Thanks team! Comprehensive and solid, as always. PureBasic is the best investment I ever made, nothing comes even close.
Re: PureBasic 6.00 Beta 3 released !
Thanks, now the IDE is startingFred wrote: ↑Thu Jan 27, 2022 5:15 pmCode: Select all
IDE: - 3 new triggers for custom tools: "OpenFile - Non-PB binary file", "OpenFile - Non-PB text file", "OpenFile - with specific extension" (HeX0R101 - https://github.com/fantaisie-software/purebasic/pull/195) - Bug fixes, thanks to all other contributors !
*starting, thanks fsw
Last edited by STARGÅTE on Fri Jan 28, 2022 7:07 am, edited 2 times in total.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: PureBasic 6.00 Beta 3 released !
.STARGÅTE wrote: ↑Thu Jan 27, 2022 11:17 pmThanks, now the IDE is staringFred wrote: ↑Thu Jan 27, 2022 5:15 pmCode: Select all
IDE: - 3 new triggers for custom tools: "OpenFile - Non-PB binary file", "OpenFile - Non-PB text file", "OpenFile - with specific extension" (HeX0R101 - https://github.com/fantaisie-software/purebasic/pull/195) - Bug fixes, thanks to all other contributors !
Is the IDE staring at you?
Sorry, couldn't resist as there is a big difference between staring and starting (anglotzt vs startet)
In my case (macOS) the x64 version of beta 3 starts, but the M1 version doesn't...
Will file a bug report.
Again:
Sorry STARGÅTE, ich hoffe du verstehst spass...
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: PureBasic 6.00 Beta 3 released !
It's an excellent product, for sure! I've loved seeing it grow over the years. I remember comparing it and another Basic many years ago, and I decided on PureBasic because I thought the developer looked like he knew what he was doing. I was right!netmaestro wrote: ↑Thu Jan 27, 2022 8:14 pmThanks team! Comprehensive and solid, as always. PureBasic is the best investment I ever made, nothing comes even close.
- Psychophanta
- Addict
- Posts: 4996
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Lípetsk, Russian Federation
- Contact:
Re: PureBasic 6.00 Beta 3 released !
100%. Same for me.netmaestro wrote: ↑Thu Jan 27, 2022 8:14 pm Thanks team! Comprehensive and solid, as always. PureBasic is the best investment I ever made, nothing comes even close.
http://www.zeitgeistmovie.com
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
Re: PureBasic 6.00 Beta 3 released !
Thanks Fred.
Re: PureBasic 6.00 Beta 3 released !
Thanks Fred and All the Team
Do you think with the C Backend it will be Amiga Version return ?
Do you think with the C Backend it will be Amiga Version return ?