Speed
-
Im new to VB.net in fact before then i hadnt touched VB since 5... in either case, im using VB to write Scripts to interact with Macromedia flash. Pretty much all it does is create these scripts out of a database and then Starts them as a process. Part of System.Diagnostics... My problem is Macromedia Flash has alot of overhead and reacts slowly, also after the loop i need to reorganize all the files. Ive got everything set up to do this. But VB is running too quickly, once the loop is done, it deletes the files, before flash is done with them. Thus causing an exception. Is there anyway of SLOWING down VB?
-
Im new to VB.net in fact before then i hadnt touched VB since 5... in either case, im using VB to write Scripts to interact with Macromedia flash. Pretty much all it does is create these scripts out of a database and then Starts them as a process. Part of System.Diagnostics... My problem is Macromedia Flash has alot of overhead and reacts slowly, also after the loop i need to reorganize all the files. Ive got everything set up to do this. But VB is running too quickly, once the loop is done, it deletes the files, before flash is done with them. Thus causing an exception. Is there anyway of SLOWING down VB?
You really can't change the execution speed of the code. I'm no Flash developer by any means, so... The only thing you can do is try and find some kind of event or something else appropriate that can signal your app that Flash has completed its job. Watching for this event will be the tricky part. I have no idea how to do it or what to watch for. Also, you could put your app to Sleep for X number of seconds, but it's very unreliable considering you can't determine ahead of time how long you have to wait for Flash to finish. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You really can't change the execution speed of the code. I'm no Flash developer by any means, so... The only thing you can do is try and find some kind of event or something else appropriate that can signal your app that Flash has completed its job. Watching for this event will be the tricky part. I have no idea how to do it or what to watch for. Also, you could put your app to Sleep for X number of seconds, but it's very unreliable considering you can't determine ahead of time how long you have to wait for Flash to finish. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
I would also see if you could find a better way to do this, but in case you are interested, you can use one of the system.Threading.Thread.Sleep overloads to pause your app. Find my .Net blog at http://hiltong.blogspot.com