Author Topic: VB Form passes external shell commands to module console, but GUI freezes. Help?  (Read 3662 times)

0 Members and 1 Guest are viewing this topic.

Offline Stephan

  • LV2 Member (Next: 40)
  • **
  • Posts: 23
  • Rating: +4/-4
    • View Profile
Alright Geniuses of the World, here is a problem you guys can try your hands at for me. I have a console application with an added form for the next release of my most successful project, XP Maintenance. Just one problem, when the Form calls a method that executes system shell commands, while the shell commands operate without much problem, the GUI on the Form freezes and goes white. Not too good-looking to an average user, so i want to know if it is possible to fix this problem. Source code attached.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Umm, I would say, probably because whenever you have code that it runs, it has to wait for it to complete before the rest of the code starts running again, so it can't paint the form while that code is running.  I would try to run all those in a separate thread...
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Stephan

  • LV2 Member (Next: 40)
  • **
  • Posts: 23
  • Rating: +4/-4
    • View Profile
Thanks. +1 for you. I'll tae a look at that. That makes sense.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
I done VB before but it was almost 7 years ago with VB6 and we only did some rudimentary game-oriented stuff only (see downloads section) so I can't really help much, sorry :(
« Last Edit: April 25, 2010, 12:07:58 pm by DJ Omnimaga »