Article View: comp.os.os2.programmer
Article #1320Re: Problem with WM_ACTIVATE.
From: Alfred Kayser
Date: Tue, 01 Sep 1992 20:02
Date: Tue, 01 Sep 1992 20:02
25 lines
1794 bytes
1794 bytes
daveb@netcom.com (Dave Briccetti) writes: >Alfred.Kayser@dnpap.et.tudelft.nl (Alfred Kayser) writes: >: Help, I have a problem with a PM program. When I open a (WinCreateStdWindow) >: standard window, but which is hidden, and I show it using >: a WinShowWindow, PM sends me a WM_ACTIVATE message. So far so good, >: I set the 'active' flag and returns FALSE. So far as is documented, but >: PM crashes and gives a protection violation. Help I'm lost in PM!!! >: >Perhaps you could run the program under a debugger and find out exactly >where you are crashing. I did. But only the debugging version of PM did only run under 1.2 Anyway the problem is solved anyway. Somewhere in the window procedure I converted the return value of the Default window proc into a 16 bits integer, and that did wipe the segment part of some window pointer returned by that procedure. Apperently somewhere between 1.2 and 1.3 there is a difference in how some messages return values... Thanks for the answers, Alfred -- -- Ir. Alfred Kayser. PACS, OS/2, TCP/IP. --- Email: AKayser@et.tudelft.nl -- -- CARDIT, Delft University of Technology ------------ Tel: (31)-15-786179 -- -- P.O.Box 5031, 2600 GA Delft, The Netherlands ------ Fax: (31)-15-784898 --
Technical Details
Message-ID:
<alfred.715377771@dutepp13>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!alfredReferences:
<alfred.715353493@dutepp3> <lwjnw_.daveb@netcom.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!alfred From: Alfred.Kayser@dnpap.et.tudelft.nl (Alfred Kayser) Subject: Re: Problem with WM_ACTIVATE. Message-ID: <alfred.715377771@dutepp13> Sender: news@donau.et.tudelft.nl (UseNet News System) Nntp-Posting-Host: dutepp13.et.tudelft.nl Organization: Delft University of Technology, Dept. of Electrical Engineering References: <alfred.715353493@dutepp3> <lwjnw_.daveb@netcom.com> Date: Tue, 1 Sep 1992 20:02:51 GMT Lines: 25