"Error Protokoll" if you use Hidegadged on a no ex

Just starting out? Need help? Post your questions and find answers here.
willib
User
User
Posts: 39
Joined: Mon Sep 15, 2003 7:04 pm
Location: Bielefeld

"Error Protokoll" if you use Hidegadged on a no ex

Post by willib »

HI All

Is this a bug in the newest version ( ealier i hadn't this problem ) ?

Here the code, test it with and without remarkline. With it I got an "error protokoll" from windows and the Program dies ( hope this is the right translation ) even with the debugger ;-)

Code: Select all

 If OpenWindow(0, 0, 0, 600 ,500, #PB_Window_SystemMenu ! #PB_Window_MinimizeGadget ! #PB_Window_SystemMenu , name$)
  If CreateGadgetList(WindowID()) 
  ; TextGadget(10, 50 , 20 , 500 , 20, "BLA" )
  HideGadget(10, 1) 
  MessageRequester("Info", "OK", 0)
  EndIf 
EndIf
End
someone knows where i can get the newest help-file for PB 3.72 ?

does someone else can test it and / or tell me why ?
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Re: "Error Protokoll" if you use Hidegadged on a n

Post by WolfgangS »

willib wrote: With it I got an "error protokoll" from windows and the Program dies ( hope this is the right translation ) even with the debugger ;-)
Works fine here ...
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi willib
i don't know if i understand you correct but in your example your hideing a gadget that doesn't exist
i mean your are trying to do something to an object there is not created yet.

as i said, maybe i misunderstod your question, if i did sorry 8)

best regards
Henrik
willib
User
User
Posts: 39
Joined: Mon Sep 15, 2003 7:04 pm
Location: Bielefeld

Post by willib »

Hi Henrik

Yep that's what I did,
I create dynamical Gadgets and kill them if i don't need them anymore
all in one window with HideGadget()....
I 'm lazy so I create every time Gadget between 100 and 200 ...
and killed them with for I=100 to 200 : HideGadget(i, 1): next I;
but this do not run anymore after the update to 3.72
0-100 are for normal gadgets which I do not kill .....

Kill = Hide ;-)
nessie
User
User
Posts: 60
Joined: Mon Jul 07, 2003 1:19 pm
Location: Glasgow / Scotland
Contact:

Post by nessie »

It crashes on my XP machine, although i don't get any protocol error. I see your point, I thought the debugger would have kicked in and told you where and what the error was rather than crashing.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Allright now i get it :D
the debugger workes fine here.. win98.


Edit.>Removed unnecessary code as it messed up the subject<
Henrik.
willib
User
User
Posts: 39
Joined: Mon Sep 15, 2003 7:04 pm
Location: Bielefeld

Post by willib »

Yeah
I thing that the debugger should help before crash !
My System works with Windows2000 Pro and PB 3.72.

I tried the Program with my older Compiler/Debugger too, ( 3.50 )
the Programm and the debugger takes no interest on that no existing gadget
and the Program runs without any Problem !
But I think that's right because why take care on a no existing thing ;-)

Willi
Post Reply