Strange debugger problem with statusbar

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

This is so strange...I was running and testing my code with the debugger turned off and everything was running great. Then I turn the debugger on and it stops everything, complaining that the StatusBar object hasn't been initialised. But it has!!! And it is working fine, everything that is supposed to be printed to it is working.

Even worse, all statusbar objects all through the program are being halted in this fashion as I comment out one after the other to try to find if one or another could be at fault.

Code: Select all

If Window_crctool()     ; Open the window (in a procedure)
  Gosub writeresources  ; write packed resources
  recent("")            ; Initialise the RecentFiles list
  makemenu()            ; And generate a menu for it
  setDate()             ; Set the current date for the user
  StatusBarText(#Gadget_crctool_statusbar, 0, " Current Directory:  " + curdir.s, 0)
(rest of code)
The whole program is far too large to post here but I wondered if anyone else has had this problem?

We are Dyslexic of Borg, prepare to have your ass laminated!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

It was a bug, it's fixed for v3.60. Thanks !

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Thanks Fred. I didn't know if it was a bug or me stuffing up the code so I didn't report it like that. I make so many mistakes, it's not hard to figure out that it's usually my fault :)

We are Dyslexic of Borg, prepare to have your ass laminated!
Post Reply