-
I'm making my little Countdown game and I've got a small problem.
While the computer is working out the possible sub-anagrams of the word,
the UI is unresponsive and this lasts for around 5 seconds. Given my high
<ahem>
Standards of programming, this is unaccepteable.
So I decided I'd make an ActiveX DLL, 'cos I read (in a good but very
confusing book) that you could thread ActiveX Components and therefore
my problem would be solved.
I then put a refence in my project to the DLL containing the anagram 'bit'
and hoped it would 'thread'. But it didn't.
I'm sure one of you:
Megatron, Serge, da_silvy, HeSaidJoe, Paul282, Iain17,
MartinLiss, Gen-X, and maybe even CihmpFace9000
could help.
Or possibly:
Sam Finch, Batman (which means Robin), Fox, KENNNY, Matthew Gates, denniswrenn, or even noone
Or:
BoB, HarryW, Zaphod64831, Jethro, SteveCRM, GRAHAM
Perhaps God (aka John) or Christ (aka James) could help?
I would like to kiss whoever can help, as long as you are:
1) Female
2) Good looking
3) Good personality
4) Intelligent
5) No vices (drinking, smoking, crack cocaine, illegal immigrants) etc.
6) Good at sports
7) Sense of humour
8) Rich
9) Got a good job
10) Faithful
11) More than willing to...well...you know
If you are such a person, please phone:
+44 1334 360275
Thank you
-
Did you put a DoEvents in your loop???
This command allows the OS to do other work for a very short period of time.
Code:
For x= 1 to 1000
--CODE--
DoEvents
--CODE--
Next
Hope this helps
-
Tried that...
I put like twenty DoEvents in it and it still was unresponsive.
I'd like to add Negative0 to the list. ;)
-
You need to post your code or nobody could guess what the problem is, anyway i'm going to guess, is it bitblt? You have blitted large parts, very frequent, and the everything freezes for some secs (or even mins, depends on the machine) and then everything turns back normal again. correct?
probably not, that's a guess