Link to home
Start Free TrialLog in
Avatar of Barnabas3
Barnabas3

asked on

Keyboard stuck

I have a vb6 application that works under w2k professional sp1. Sometimes, 5 to 10 times a day the keyboard stucks. The pc is still runing well but the keyboard is not responding.
The only way to repair this is, except the log off, to unplug and then plug in the keyboard connector. After that hte repeat rate of the keyboard is set to default.
I suspect the masked box to be responsable of this but i cannot be sure as long as this occurs randomly, on every system that has w2k on it (on a w98 system the same application works fine)
I appreciate any suggestion. Thanks.
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Hi,

How about change a keyboard and try again to see whether the same problem occur or not. If problem continue than it will be some problem on your system..
Avatar of fataltomato2000
fataltomato2000

i heard that win2000 profesional sp2 was in microsoft's site now.

go for one now,and then make your choice whether to change a keyboard or computer :)joking
Oddly enough, I have the same problem except that it's my mouse which hangs somewhat randomly.  Unplug/replug fixes it.

I'm wondering if the problem is how Win2K reads certain ports or interrupts.  For example, my install may not properly read the mouse os/2 port, and yours doesn't properly read the keyboard os/2 port.

I also don't have SP2 installed, and since the problem cannot be reproduced on demand, I don't know how to solve it.

(For now, my computer is on my desk and the mouse cable is very accessible without crawling under it.)

Avatar of Barnabas3

ASKER

I don't think that the problem comes from then system because the problem occurs on 5 or 6 different computers (PII or PIII processors) with ps2 or standard keyboard connector. I also have sp2 on 2 stations. The problem is very annoying. The application does not use any third party ocx.
Is anyone using then maskedbox on w2k professional without problems?
Maybe my problem's not related, but I seem to often get it when I access EE through IE and combine keyboard input with mouse movements.

So it certainly seems to be a Win2K problem, and since IE is now an integral part of Windows, maybe it's the IE interface.  I'm using 5.00.3101.  Which version do you have installed?
I found 2 versions of the IE: 5.00.2920  and 5.00.3103
Now i'm working to isolate those case when the keyboard stucks. I'll keep you informed about this...
This could be a good one to send to the Microsoft help desk on-line.
For what i saw it seems that sendkeys("{TAB}") is the last instruction executed before the stuck. Maybe is a problem with the buffer? Can it be flushed periodicaly or is that a good choise?
ASKER CERTIFIED SOLUTION
Avatar of rspahitz
rspahitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found that when the keyboard stucks in the event log is written a line having "i8042prt" source and the message "The operation on timed out (time out is configurable via registry)"
Which log is that?  Is your app writing the log, or do you think it's Wnidows?
It's the system log, so the system it's writing it.
Hmmm.  That sounds like it might be an interrupt problem, but I've never heard of such things with keyboards since they're usually on a dedicated interrupt.

Elsewehere you asked, "Is anyone using then maskedbox on w2k professional without problems?"

We're on Win2K Pro, Service Pack 2, and one of our apps uses masked-edit-boxes, but I don't run that app very often, and haven't had any keyboard problems yet.


I spoke with microsoft help desk and they told me to use sp2 or to replace the sendkeys function with an api function like postmessage or keyb_event. I tryed the first solution because that one is supposed to solve the problem not to avoid it. And after one day all seems ok. I'll keep informing you about this.