Link to home
Start Free TrialLog in
Avatar of KeithTeo
KeithTeo

asked on

A bug in CEdit

My App crash whenever I press the "-" button. This button is located on the top right hand corner of a standard keyboard.

I created a CEdit control inside my dialog box with member variable of data type float. However, my app crashes whenever I press "-" button. I tried catching this key using OnKeyDown Event, but it crashes before that.

Anyone any idea?
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi KeithTeo,

I'm not sure, but I think this maybe a hardware problem: I had same behavior for a long time
in a lot of applications. After my keyboard stopped working I bought a new one and since then
this doesn't happen anymore.

ZOPPO
I assume you are referring to the dash or "minus" key -- it is not the topmost-rightmost key on *my* keyboard.

If the keyboard thinks that the Alt key is pressed, it will try to drop-down the "system control menu" (top right corner of some windows).  See if the problem occurs if you first press and release the ALT key a few times before pressing dash.

-- Dan
Avatar of abegnoche
abegnoche

I does the same on my computer but *only* when I'm running VC++ 6.0 in debug mode, and it's not a *real* crash, more like an assert (asm int 3), just press F5 to resume, I find it convenient to monitor where your threads are at a specific time...

--
(..alex..)
ASKER CERTIFIED SOLUTION
Avatar of ocbb
ocbb

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
hi ocbb,
Please post Comments rather than Answers.  Thanks!

-- Dan
KeithTeo ,
is the problem with only this '~' Key????
what about other key if u press r u getting the Keyboardevent???
or u try the same program in different machine...