home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5381 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.4 KB

  1. Path: sparky!uunet!pipex!unipalm!uknet!gdt!mssshb
  2. From: mssshb@sunlab1.bath.ac.uk (S H Bowman)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Does anybody know this bug?
  5. Message-ID: <C1Gp35.9Ez@sunlab1.bath.ac.uk>
  6. Date: 26 Jan 93 12:52:17 GMT
  7. References: <1993Jan23.150923.12794@ousrvr.oulu.fi>
  8. Organization: University of Bath, UK
  9. Lines: 25
  10.  
  11. artoinas@phoenix.oulu.fi (Arto Oinas) writes:
  12.  
  13.  
  14. >I am programming an application with Turbo C++ for Windows 3.0. I use Windows
  15. >version 3.0. So far, I've detected all bugs and fixed them. Now one lurking
  16. >bug is driving me mad, I have no idea about it's causes. 
  17.  
  18. >Well, I know that this is too general, but here is what the bug does:
  19. >Sometimes after running the application Windows gives me an Unrecoverable
  20. >Application error when I toggle the mouse on text editing window (in Turbo
  21. >C++) and start typing something. However (of course) this doesn't happen al-
  22. >ways. So if you have seen this problem and solved it, please answer?
  23.  
  24. >Arto Oinas - first year Computer Science student from Finland
  25. >(Too general really I bet)
  26.  
  27. This is a pretty general problem so try this general answer:
  28.  
  29. Check your hdc and hwnd parameters in functions like EndPaint.
  30.  
  31. I have mixed these up on numerous occasions and it has given exactly
  32. the type of fault you describe, sometimes taking hours to sort out!
  33. I can't understand why the STRICT compilation doesn't spot this.
  34.  
  35. Simon
  36.