It is currently Mon Dec 11, 2017 1:24 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: CreateToolBar Bug on macOS
PostPosted: Fri Nov 17, 2017 4:01 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1039
Location: Germany
I don't know is a PB-Bug or a Bug on my macOS High Sierra

Code:
If OpenWindow(0, 0, 0, 150, 25, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    CreateImage(0,16,16)
    StartDrawing(ImageOutput(0))
      Box(0,0,16,16,RGB(255,255,255))
      Box(4,4,8,8,RGB(255,0,0))
    StopDrawing()
    CreateImage(1,16,16)
    StartDrawing(ImageOutput(1))
      Box(0,0,16,16,RGB(255,0,0))
      Box(4,4,8,8,RGB(255,255,255))
    StopDrawing()
    If CreateToolBar(0, WindowID(0))
      ToolBarImageButton(0,ImageID(0))
      ToolBarImageButton(1,ImageID(1))
    EndIf
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf


PB v5.45, v5.46, v5.60, v5.61
Xcode v9.0 and v9.1

If this is a bug in Purebasic, then we have a problem with quality assurance.
Had little to do with writing new applications with Purebasic lately.
Should we perhaps write codes to test all basic functions automatically, with the creation of a protocol

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: CreateToolBar Bug on macOS
PostPosted: Fri Nov 17, 2017 11:32 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Mar 24, 2004 11:04 pm
Posts: 900
Location: Seattle, USA
Seems to compile and run OK on my Mini running High Sierra 10.13.1. What's the bug?


Top
 Profile  
Reply with quote  
 Post subject: Re: CreateToolBar Bug on macOS
PostPosted: Fri Nov 17, 2017 11:46 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1039
Location: Germany
Quote:
[23:45:02] Warte auf den Start des Executable...
[23:45:02] Executable-Typ: MacOSX - x64 (64bit, Unicode)
[23:45:02] Executable gestartet.
[23:45:03] [ERROR] Zeile: 12
[23:45:03] [ERROR] Customizable toolbars require unique toolbarIdentifiers. Please use initWithIdentifier: with a unique identifier.


Without Debugger
Quote:
System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Customizable toolbars require unique toolbarIdentifiers. Please use initWithIdentifier: with a unique identifier.'
abort() called
terminating with uncaught exception of type NSException

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: CreateToolBar Bug on macOS
PostPosted: Sat Nov 18, 2017 12:55 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1039
Location: Germany
My Xcode is crashed... Why?

With a copy of Xcode 8 is working...

Now wait for Update to Xcode 9. Very, Very slow internet by me

I hope is not a problem with AFS

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: CreateToolBar Bug on macOS
PostPosted: Sun Nov 19, 2017 11:18 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1039
Location: Germany
Move to thread MacOS

Link viewtopic.php?f=19&t=69653

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Exabot [Bot] and 3 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