[RESOLVED] Gadget Creation : it's slow !

Just starting out? Need help? Post your questions and find answers here.
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

[RESOLVED] Gadget Creation : it's slow !

Post 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 !
Last edited by Progi1984 on Tue Jun 05, 2007 10:10 am, edited 2 times in total.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I get an invalid memory access on line 52.
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post 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) !
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post 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 !
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Could it be the Procedures INSIDE a procedure? that give you the problem?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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??
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

With some help of Dr Dri, i earn (or win ?) some seconds... The code has been updated... Can you test this ?
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post 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 !
Post Reply