🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2350

Re: Does anybody know this bug?

#2350
From: S H Bowman
Date: Tue, 26 Jan 1993 12:52
25 lines
1453 bytes
artoinas@phoenix.oulu.fi (Arto Oinas) writes:


>I am programming an application with Turbo C++ for Windows 3.0. I use Windows
>version 3.0. So far, I've detected all bugs and fixed them. Now one lurking
>bug is driving me mad, I have no idea about it's causes. 

>Well, I know that this is too general, but here is what the bug does:
>Sometimes after running the application Windows gives me an Unrecoverable
>Application error when I toggle the mouse on text editing window (in Turbo
>C++) and start typing something. However (of course) this doesn't happen al-
>ways. So if you have seen this problem and solved it, please answer?

>Arto Oinas - first year Computer Science student from Finland
>(Too general really I bet)

This is a pretty general problem so try this general answer:

Check your hdc and hwnd parameters in functions like EndPaint.

I have mixed these up on numerous occasions and it has given exactly
the type of fault you describe, sometimes taking hours to sort out!
I can't understand why the STRICT compilation doesn't spot this.

Simon
Technical Details
Message-ID: <C1Gp35.9Ez@sunlab1.bath.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!gdt!mssshb
References: <1993Jan23.150923.12794@ousrvr.oulu.fi>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!gdt!mssshb
From: mssshb@sunlab1.bath.ac.uk (S H Bowman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Does anybody know this bug?
Message-ID: <C1Gp35.9Ez@sunlab1.bath.ac.uk>
Date: 26 Jan 93 12:52:17 GMT
References: <1993Jan23.150923.12794@ousrvr.oulu.fi>
Organization: University of Bath, UK
Lines: 25