Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Speed

Speed

Scheduled Pinned Locked Moved Visual Basic
csharpdatabaseadobeperformance
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GRMartin
    wrote on last edited by
    #1

    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?

    D 1 Reply Last reply
    0
    • G GRMartin

      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?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      H 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        H Offline
        H Offline
        HiltonG
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups