What OS? Does the code run in a GUI?
In reply to Re: Using simultaneous threads by GrandFather in thread Using simultaneous threads by mhearse