home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / tools / 564 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.9 KB  |  60 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools
  2. Path: sparky!uunet!usc!sdd.hp.com!apollo.hp.com!netnews
  3. From: nelson_p@apollo.hp.com (Peter Nelson)
  4. Subject: TDW bug?
  5. Sender: usenet@apollo.hp.com (Usenet News)
  6. Message-ID: <Bs3wov.AL4@apollo.hp.com>
  7. Date: Tue, 28 Jul 1992 16:05:19 GMT
  8. Nntp-Posting-Host: c.ch.apollo.hp.com
  9. Organization: Hewlett-Packard Corporation, Chelmsford, MA
  10. Lines: 48
  11.  
  12.  
  13.  
  14.   I'm a beginning Windows programmer using Borland C/C++ 3.1 
  15.   and TDW (in dual screen mode) to learn about scroll bars and
  16.   message handling.
  17.  
  18.   But when I'm using TDW, with a breakpoint set in my WndProc
  19.   at my case for WM_VSCROLL, specif. in the SB_LINEDOWN code, I get 
  20.   multiple (like 100's) of WM_VSCROLL messages with SB_LINEDOWN
  21.   parameters for a single click of the mouse on the "down" button
  22.   of the scroll bar!
  23.  
  24.   The program seems to behave normally if I'm not using TDW.
  25.  
  26.   On comp.os.ms-windows.programmer.misc someone suggested that
  27.   it never gets the "release" of the mouse button because 
  28.   control is immediately passed to TDW due to the breakpoint,
  29.   so it thinks the mouse button is being held down.
  30.  
  31.   Someone else observed the same behavion with the Microsoft
  32.   debugger.
  33.  
  34.   I called Borland's tech support and they said they had never heard
  35.   of any problems like this.   So I called Borland's 900 tech support
  36.   line and they said "of course" this problem exists!   I guess this means
  37.   Borland will give you the wrong answer for free, but you have to pay
  38.   $2 a minute to get the right answer!
  39.  
  40.   
  41.   I also noted that my programs crash with an Exception 13 (addressing
  42.   error  --  in TextOut, according to TDW) when I try to run them and
  43.   Winsight at the same time.  Even Petzold's "Hello Windows" program
  44.   screws up --  not crashing, but outputting garbage text instead of
  45.   "hello windows" -- when Winsight is running, although it's well-behaved
  46.   otherwise. 
  47.  
  48.   Comments or Winsight insight?
  49.  
  50.   Thanks in advance.
  51.  
  52.  
  53. ---peter
  54.  
  55.  
  56.  
  57.   
  58.   
  59.   
  60.