KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

LedControl - Scrollable Control
Goto page Previous  1, 2
 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Fri Jan 27, 2006 4:04 pm    Post subject: Reply with quote

hmm, would have to go Multi line then. Will work with it.

Here is a ? about doing things properly...

Since I already have done the $System = CreateObject("Kixforms.System") at the very beginning of my script what happens if I do a $System2 = CreateObject("Kixforms.System")?

Would this institate a new thread of kixforms that could be controlled and operated seperatly from the original?

Would this break anything from the original script

How carefull would one need to be to not duplicate variables between the two?

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Jan 27, 2006 5:04 pm    Post subject: Reply with quote

Great ideas but it wont work (with KiXtart), vb.net yeah - Kixtart no. Creating another instance of Kixforms.System wont create another thread. tbh, not sure how well or badly things would work if you did create another instance.

Getting more than one thing happening at once in Kixtart (I mean, really-really more than one thing) involves RUNing a new concurrent script at the same time. Kixforms.System is NOT (would not) be shared across the two instances - in the past, we've always used either the Registry or Files to provide a communication mechanism between the two.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Jan 27, 2006 6:24 pm    Post subject: Reply with quote

Having said that - the other thing you have to do is keep your script "free flowing", that is to say ... in your relatively lengthy loops and sections, have to add this kinda statement:

$= Execute($Form.DoEvents)

this keeps the event pump pumping ...
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Fri Jan 27, 2006 8:34 pm    Post subject: Reply with quote

Since my script is quite healthy in size, you are suggesting that I add some $=Execute($form.doevents).

Do you have any suggestions as the best placement for these? One in each function, One in the primary function that calls all the other functions, between each of the calls to the functions?

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Jan 27, 2006 8:49 pm    Post subject: Reply with quote

Hard to say - there is prolly some section of your script that is taking-up like 80% of your time ... would put it there ...

The way I do tell is by putting tracers at the beginning and end of chunks of code ... liek this

$start = @TICKS

; some code ...

?"elapsed=" @TICKS-$start

Then I move these around, looking for chunks that take up much time.
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Fri Jan 27, 2006 11:47 pm    Post subject: Reply with quote

Cool, never thought of putting timer marks into the script. After some more refinement I think I will do that.
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group