Page 1 of 1

Spider3 b2 The specified #Gadget is not initialised

Posted: Sun Jun 02, 2024 5:03 am
by Stefan
In the debug window I get the following messages:
/mnt/9E0A11960A116C91/austausch/loungeproggen/spider250/lounge_client2026.sb:34755 SetGadgetAttribute(): The specified #Gadget is not initialised.
/mnt/9E0A11960A116C91/austausch/loungeproggen/spider250/lounge_client2026.sb:35745 ImageWidth(): The specified #Image is not initialised.
This is Line 34755: SetGadgetAttribute(#LadeProgressbar, #PB_ProgressBar_Maximum, 60)
This is line 35745: w=ImageWidth(#MainIntroImg)


If I turn off the debugger my program runs without any problems.
The program aborts when the debugger is turned on.

With Spider 2.51 all works well

Re: Spider3 b2 The specified #Gadget is not initialised

Posted: Sun Jun 02, 2024 8:33 am
by Fred
It's probably because your gadget are not yet initialized. You can put a 'Debug IsGadget(xxxxx)' before these calls to ensure the gadget is created. It was 'working' in previous version because there was not check, so the function just did nothing.

Re: Spider3 b2 The specified #Gadget is not initialised

Posted: Sun Jun 02, 2024 9:06 am
by Stefan
Great! :)