1. RE: Win32lib-closeWindow problem
- Posted by Jerry Story <jstory at edmc.net> Jul 14, 2003
- 426 views
Derek Parnell wrote: > I'm clutching at straws here, but it could be that you are trying to > access > some control's data after the window has been closed. There doesn't seem to be any call from my program after the call to closeWindow(). Here is a continuation of the ex.err file from closeWindow(). ---------------------------- ... called from G:\Euphoria\include\win32lib.ew:13348 in procedure closeWindow() id = 3 ... called from G:\EU_projects\dmak_lv\events.ew:515 in procedure onMenu_MenuExit() ... called from G:\Euphoria\include\win32lib.ew:7149 in function invokeHandler() id = 34'"' event = 4 params = {} lRoutines = {100'd'} lCallType = 2 i = 1 ... called from G:\Euphoria\include\win32lib.ew:23745 in function fDoCommand() id = 34'"' hWnd = 983260 iMsg = 273 wParam = 34'"' lParam = 0 pReturn = -2761 lRC = {-9987} lChildId = <no value> ... called from G:\Euphoria\include\win32lib.ew:24725 in function MessageProcessor() pSource = -2761 hWnd = 983260 iMsg = 273 wParam = 34'"' lParam = 0 id = 3 lHandledEvent = 19 lTemp = <no value> result = <no value> lUserReturn = <no value> ... called from G:\Euphoria\include\win32lib.ew:24772 in function WndProc() hWnd = 983260 iMsg = 273 wParam = 34'"' lParam = 0 ^^^ call-back from Windows ... called from G:\Euphoria\include\w32dll.ew:279 in procedure w32Proc() funcid = 26 parms = {35713580} libfunc = <no value> lFuncDef = 60'<' memset = 0 i = 1 ... called from G:\Euphoria\include\win32lib.ew:25062 in procedure eventLoop() id = 0 Flag = -1 msg = 35713580 hWnd = 0 getRC = 1 inc = 0 el = 1 lTock = 0 ... called from G:\Euphoria\include\win32lib.ew:25206 in procedure WinMain() id = 3 style = 0 lInitFocus = -1 ... called from G:\EU_projects\dmak_lv\dmak.exw:100 ----------------------------------- In this version of dmak I replaced lists with listviews. The old version does not produce this error. At the risk of asking a ridiculously silly, clueless question, could the replacement of lists with listviews make the difference? Jerry Story
2. RE: Win32lib-closeWindow problem
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Jul 14, 2003
- 406 views
> From: Jerry Story [mailto:jstory at edmc.net] > In this version of dmak I replaced lists with listviews. The > old version > does not produce this error. At the risk of asking a ridiculously > silly, clueless question, could the replacement of lists with > listviews > make the difference? This sounds similar to something I ran into before on Win98. What OS and IE do you have? http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=3&fromYear=6&toMonth =3&toYear=6&postedBy=&keywords=listview+tabcontrol+crash "...I located the point at which I've had GPF trouble (once again, on closing). I tracked it down to SubProc. The crash happens when a TabControl gets a WM_NOTIFY with an LVN_DELETEALLITEMS notification. This happens when the app is closed, and when there is a ListView with a TabControl as parent. I added this code to SubProc right above the call to xCallWindowProc: if window_type[id] = TabControl and iMsg = WM_NOTIFY then VOID = fetch( lParam, NMHDR_code ) if VOID = LVN_DELETEALLITEMS then return popSelf() end if end if For some reason, the tab control can't handle this message, but this prevents a GPF." Perhaps it's a similar issue. Matt Lewis
3. RE: Win32lib-closeWindow problem
- Posted by Jerry Story <jstory at edmc.net> Jul 14, 2003
- 415 views
Matt Lewis wrote: > > > From: Jerry Story [mailto:jstory at edmc.net] > > > In this version of dmak I replaced lists with listviews. The > > old version > > does not produce this error. At the risk of asking a ridiculously > > silly, clueless question, could the replacement of lists with > > listviews > > make the difference? > > This sounds similar to something I ran into before on Win98. What OS > and IE > do you have? I'm using Windows NT4. Jerry Story
4. RE: Win32lib-closeWindow problem
- Posted by Jerry Story <jstory at edmc.net> Jul 17, 2003
- 414 views
Matt Lewis wrote: http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=3&fromYear=6&toMonth > =3&toYear=6&postedBy=&keywords=listview+tabcontrol+crash > > "...I located the point at which I've had GPF trouble (once again, on > closing). > I tracked it down to SubProc. The crash happens when a TabControl gets > a > WM_NOTIFY with an LVN_DELETEALLITEMS notification. This happens when > the > app is closed, and when there is a ListView with a TabControl as parent. > I > added this code to SubProc right above the call to xCallWindowProc: > > if window_type[id] = TabControl and iMsg = WM_NOTIFY then > VOID = fetch( lParam, NMHDR_code ) > if VOID = LVN_DELETEALLITEMS then > return popSelf() > end if > end if > > For some reason, the tab control can't handle this message, but this > prevents a GPF." > > Perhaps it's a similar issue. I think it is a similar issue. But in the version of Win32lib that I'm using (the latest version), there is no call to xCallWindowProc in Subproc. Jerry Story