home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4647 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!sun4nl!dutrun!donau!alfred
  3. From: Alfred.Kayser@dnpap.et.tudelft.nl (Alfred Kayser)
  4. Subject: Re: Problem with WM_ACTIVATE.
  5. Message-ID: <alfred.715377771@dutepp13>
  6. Sender: news@donau.et.tudelft.nl (UseNet News System)
  7. Nntp-Posting-Host: dutepp13.et.tudelft.nl
  8. Organization: Delft University of Technology, Dept. of Electrical Engineering
  9. References: <alfred.715353493@dutepp3> <lwjnw_.daveb@netcom.com>
  10. Date: Tue, 1 Sep 1992 20:02:51 GMT
  11. Lines: 25
  12.  
  13. daveb@netcom.com (Dave Briccetti) writes:
  14. >Alfred.Kayser@dnpap.et.tudelft.nl (Alfred Kayser) writes:
  15. >: Help, I have a problem with a PM program. When I open a (WinCreateStdWindow)
  16. >: standard window, but which is hidden, and I show it using
  17. >: a WinShowWindow, PM sends me a WM_ACTIVATE message. So far so good,
  18. >: I set the 'active' flag and returns FALSE. So far as is documented, but
  19. >: PM crashes and gives a protection violation. Help I'm lost in PM!!!
  20. >: 
  21. >Perhaps you could run the program under a debugger and find out exactly
  22. >where you are crashing.
  23. I did. But only the debugging version of PM did only run under 1.2
  24.  
  25. Anyway the problem is solved anyway. Somewhere in the window procedure
  26. I converted the return value of the Default window proc into a 16 bits
  27. integer, and that did wipe the segment part of some window pointer returned 
  28. by that procedure. 
  29.  
  30. Apperently somewhere between 1.2 and 1.3 there is a difference in how
  31. some messages return values... 
  32.                    
  33. Thanks for the answers, Alfred
  34. --
  35. -- Ir. Alfred Kayser. PACS, OS/2, TCP/IP. --- Email: AKayser@et.tudelft.nl --
  36. -- CARDIT, Delft University of Technology ------------ Tel: (31)-15-786179 --
  37. -- P.O.Box 5031, 2600 GA Delft, The Netherlands ------ Fax: (31)-15-784898 --
  38.