Page 1 of 1

[RESOLVED] Gadget Creation : it's slow !

Posted: Sat Jun 02, 2007 6:35 pm
by Progi1984
I try to create a gadget type OutlookBar, but i have a problem of slow :

File:1->OGadget.pb
Image

The problem is "The creation of the window is slow" ! I don't know if it from the creation of the gadget or some addGadgetitem...

That doesn't slow all the time ! Sometimes, the creation doesn't slow and sometimes, some seconds...

Thank you in advance for your help !

Posted: Sat Jun 02, 2007 6:57 pm
by Trond
I get an invalid memory access on line 52.

Posted: Sat Jun 02, 2007 7:21 pm
by Progi1984
Yes ! It's an another bug ! Sometimes I have this bug ! I run the code an another time and no bug (this one) !

Posted: Sat Jun 02, 2007 8:03 pm
by Trond
I think it's the same bug, but sometimes you're lucky and it continues and sometimes not because it depends on some random memory.

Posted: Sun Jun 03, 2007 2:02 pm
by Progi1984
Yep Trond ! haven't you got an idea about the problem ?

[edit]
First clue : if i replace the containergadget by an imagegadget, i win a lot of time !
Else trond, i haven't got your problem at line 56 !

Posted: Sun Jun 03, 2007 6:28 pm
by Rook Zimbabwe
Could it be the Procedures INSIDE a procedure? that give you the problem?

Posted: Sun Jun 03, 2007 7:32 pm
by Trond
Rook Zimbabwe wrote:Could it be the Procedures INSIDE a procedure? that give you the problem?
Where can you see a procedure inside another??

Posted: Mon Jun 04, 2007 7:52 am
by Progi1984
With some help of Dr Dri, i earn (or win ?) some seconds... The code has been updated... Can you test this ?

Posted: Tue Jun 05, 2007 10:09 am
by Progi1984
So the problem is resolved ! The better way is the use of SetProp_, GetProp_ and RemoveProp_ for the creation of gadgets rather than the use of the lib managing objects !