Spider3 b2 The specified #Gadget is not initialised

Just starting out? Need help? Post your questions and find answers here.
Stefan
Posts: 248
Joined: Mon Feb 05, 2018 9:44 pm

Spider3 b2 The specified #Gadget is not initialised

Post 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
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: Spider3 b2 The specified #Gadget is not initialised

Post 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.
Stefan
Posts: 248
Joined: Mon Feb 05, 2018 9:44 pm

Re: Spider3 b2 The specified #Gadget is not initialised

Post by Stefan »

Great! :)
Post Reply