|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Fri May 02, 2008 2:59 pm
[2.23] PE shows wrong settings for selected tab |
I'm not sure exactly what I do to make it get out of sync, but after rebuilding my two dozen packages fresh in 2.23 and reloading my session, I sometimes open the PE and see that the "LusterniaTest" tab is the active tab and the frames below are showing the settings for some other package. It happens every time I run CMUD, load my session, and open the PE, but only seems to happen once and after I sync it up by clicking around a bit, it's fine.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon May 05, 2008 5:03 pm |
It should show the settings for whatever window has the current focus when you first open the package editor. I know you have a rather complex setup, but I'll need some sort of procedure to reproduce this one since I can't get it to fail here.
Oh, and the settings editor *does* save the "last selected" setting id for each tab in the package editor, so maybe it is trying to display a setting that no longer exists (because you recreated the package?). The method that you are using to recreate packages is probably driving your ID field values larger and larger, so maybe it's referring to a previous setting ID value when it saves the tab views. |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Mon May 05, 2008 6:52 pm |
Not too sure about re-creating it from scratch, but my setup isn't as complicated when this happens as it is when I'm fully loaded up.
Just now, though, I opened my LusterniaTest session offline (without any packages or settings other than the LusterniaTest window) and opened my TreantCore.pkg in the PE. This is what I ended up with in the display:
The Treant Core module uses an onLoad event handler to create settings in the Treant Persistent module, which is created in the session's main package. The package I opened was created previously and not a new script import or anything. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon May 05, 2008 7:15 pm |
Hmm, maybe CMUD is keeping the module created in onLoad as the current default module? If you click on your main output window first and then open the Package Editor, does it display the correct setting then? If you can show me the onLoad script that you are using, then I might be able to reproduce this.
|
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Mon May 05, 2008 7:24 pm |
I re-created it in a simpler way, but then it also crashed CMUD with a memory access violation. Hmmm.
1. ESC to get to default session.
2. Open PE.
3. File ->New Package -> named Test
4. In the Test package, create a new onLoad event.
5. In the onLoad event, put the code:
Code: |
#IF (!@testing) {
#MODULE "Persistent"
#VAR "//Persistent/testing" 1
} |
6. File -> Save (just to make sure everything's committed to disk)
7. File -> Remove package -> confirm
8. File -> Open -> Test.pkg
Persistent module is displayed when Test package is still selected. Crash occurred here, too. Only crashed this first time I did it, loading Test.pkg after restarting CMUD didn't cause the crash, but the wrong module was still shown.
(Edit: Okay. The crash happens randomly, and I've seen a similar crash happen in various other situations. Whatever's causing it doesn't seem to be a simple thing to pin down, unfortunately... Also, if I close the PE after the steps above (with Test loaded) and then re-open the PE, the 'untitled' tab is highlighted and the 'Test' settings are shown.)
Code: |
date/time : 2008-05-05, 15:18:30, 825ms
operating system : Windows XP Service Pack 2 build 2600
system language : English
system up time : 7 days 5 hours
program up time : 32 minutes 42 seconds
processors : 2x Intel(R) Xeon(TM) CPU 3.20GHz
physical memory : 939/2046 MB (free/total)
free disk space : (C:) 190.14 GB
display mode : 1600x1200, 32 bit
process id : $15b4
allocated memory : 41.56 MB
executable : cMUDPro.exe
exec. date/time : 2008-05-01 18:13
version : 2.23.0.0
compiled with : BCB 2006/07
madExcept version : 3.0h
callstack crc : $7bb9a7b4, $3650cdfc, $3650cdfc
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 00EAE70A in module 'cMUDPro.exe'. Read of address 0000005C.
Main ($15a8):
00eae70a +04a cMUDPro.exe PkgDM 7060 +3 TPkg.GetDBInt
00e58179 +015 cMUDPro.exe PrefDat 2930 +2 PkgData.FindSettingRec
00e68017 +003 cMUDPro.exe PrefDat 10564 +0 PkgData.Get_Pref
00e63d99 +07d cMUDPro.exe PrefDat 9094 +5 PkgData.StripClass
00e83c8f +573 cMUDPro.exe cMUDL 1150 +97 TCMudLImp.yylex
00e95397 +0cf cMUDPro.exe CmudY 11506 +29 TCmudYImp.yyparse
00e8a55e +092 cMUDPro.exe CmudY 323 +10 TCmudYImp.Execute
00cb6265 +215 cMUDPro.exe zLexer 389 +58 TScintLexer.Parse
00dfd428 +074 cMUDPro.exe EditScript 552 +13 TEditScriptF.EditorStyleNeeded
009176d3 +017 cMUDPro.exe SciLexer 1939 +2 TScintillaBase.doSciStyleNeeded
00916b99 +09d cMUDPro.exe SciLexer 1197 +8 TScintillaBase.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004bad64 +024 cMUDPro.exe Controls 5021 +5 TControl.Perform
004bf22b +023 cMUDPro.exe Controls 7353 +6 DoControlMsg
004bfc45 +00d cMUDPro.exe Controls 7621 +1 TWinControl.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e42f3c7 +044 USER32.dll SendMessageA
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7e4196c2 +00a USER32.dll DispatchMessageA
004461bd +23d cMUDPro.exe madExcept HandleException
0044c662 +03a cMUDPro.exe madExcept InterceptAHandleExcept
004be83f +067 cMUDPro.exe Controls 7079 +9 TWinControl.MainWndProc
7c90eaf5 +009 ntdll.dll KiUserExceptionDispatcher
00e95397 +0cf cMUDPro.exe CmudY 11506 +29 TCmudYImp.yyparse
00e8a55e +092 cMUDPro.exe CmudY 323 +10 TCmudYImp.Execute
00cb6265 +215 cMUDPro.exe zLexer 389 +58 TScintLexer.Parse
00dfd428 +074 cMUDPro.exe EditScript 552 +13 TEditScriptF.EditorStyleNeeded
009176d3 +017 cMUDPro.exe SciLexer 1939 +2 TScintillaBase.doSciStyleNeeded
00916b99 +09d cMUDPro.exe SciLexer 1197 +8 TScintillaBase.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004bad64 +024 cMUDPro.exe Controls 5021 +5 TControl.Perform
004bf22b +023 cMUDPro.exe Controls 7353 +6 DoControlMsg
004bfc45 +00d cMUDPro.exe Controls 7621 +1 TWinControl.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e42f3c7 +044 USER32.dll SendMessageA
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7e4196c2 +00a USER32.dll DispatchMessageA
004461bd +23d cMUDPro.exe madExcept HandleException
0044c662 +03a cMUDPro.exe madExcept InterceptAHandleExcept
004be83f +067 cMUDPro.exe Controls 7079 +9 TWinControl.MainWndProc
7c90eaf5 +009 ntdll.dll KiUserExceptionDispatcher
00e95397 +0cf cMUDPro.exe CmudY 11506 +29 TCmudYImp.yyparse
00e8a55e +092 cMUDPro.exe CmudY 323 +10 TCmudYImp.Execute
00cb6265 +215 cMUDPro.exe zLexer 389 +58 TScintLexer.Parse
00dfd428 +074 cMUDPro.exe EditScript 552 +13 TEditScriptF.EditorStyleNeeded
009176d3 +017 cMUDPro.exe SciLexer 1939 +2 TScintillaBase.doSciStyleNeeded
00916b99 +09d cMUDPro.exe SciLexer 1197 +8 TScintillaBase.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004bad64 +024 cMUDPro.exe Controls 5021 +5 TControl.Perform
004bf22b +023 cMUDPro.exe Controls 7353 +6 DoControlMsg
004bfc45 +00d cMUDPro.exe Controls 7621 +1 TWinControl.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e42f3c7 +044 USER32.dll SendMessageA
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7e4196c2 +00a USER32.dll DispatchMessageA
004461bd +23d cMUDPro.exe madExcept HandleException
0044c662 +03a cMUDPro.exe madExcept InterceptAHandleExcept
004be83f +067 cMUDPro.exe Controls 7079 +9 TWinControl.MainWndProc
7c90eaf5 +009 ntdll.dll KiUserExceptionDispatcher
008afffa +232 cMUDPro.exe ZDbcInterbase6Metadata 1820 +47 TZInterbase6DatabaseMetadata.GetColumnPrivileges
00e95397 +0cf cMUDPro.exe CmudY 11506 +29 TCmudYImp.yyparse
00e8a55e +092 cMUDPro.exe CmudY 323 +10 TCmudYImp.Execute
00cb6265 +215 cMUDPro.exe zLexer 389 +58 TScintLexer.Parse
00dfd428 +074 cMUDPro.exe EditScript 552 +13 TEditScriptF.EditorStyleNeeded
009176d3 +017 cMUDPro.exe SciLexer 1939 +2 TScintillaBase.doSciStyleNeeded
00916b99 +09d cMUDPro.exe SciLexer 1197 +8 TScintillaBase.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004bad64 +024 cMUDPro.exe Controls 5021 +5 TControl.Perform
004bf22b +023 cMUDPro.exe Controls 7353 +6 DoControlMsg
004bfc45 +00d cMUDPro.exe Controls 7621 +1 TWinControl.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e42f3c7 +044 USER32.dll SendMessageA
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7e4196c2 +00a USER32.dll DispatchMessageA
004461bd +23d cMUDPro.exe madExcept HandleException
0044c662 +03a cMUDPro.exe madExcept InterceptAHandleExcept
004be83f +067 cMUDPro.exe Controls 7079 +9 TWinControl.MainWndProc
7c90eaf5 +009 ntdll.dll KiUserExceptionDispatcher
00e95397 +0cf cMUDPro.exe CmudY 11506 +29 TCmudYImp.yyparse
00e8a55e +092 cMUDPro.exe CmudY 323 +10 TCmudYImp.Execute
00cb6265 +215 cMUDPro.exe zLexer 389 +58 TScintLexer.Parse
00dfd428 +074 cMUDPro.exe EditScript 552 +13 TEditScriptF.EditorStyleNeeded
009176d3 +017 cMUDPro.exe SciLexer 1939 +2 TScintillaBase.doSciStyleNeeded
00916b99 +09d cMUDPro.exe SciLexer 1197 +8 TScintillaBase.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
0048ce2e +002 cMUDPro.exe SyncObjs 366 +0 TCriticalSection.Leave
006239c1 +009 cMUDPro.exe kbmMemTable 6062 +5 TkbmCommon.Unlock
00629d67 +267 cMUDPro.exe kbmMemTable 11135 +81 TkbmCustomMemTable.SetFieldData
005152ff +043 cMUDPro.exe DB 9653 +2 TDataSet.SetFieldData
004bad64 +024 cMUDPro.exe Controls 5021 +5 TControl.Perform
004bf22b +023 cMUDPro.exe Controls 7353 +6 DoControlMsg
004bfc45 +00d cMUDPro.exe Controls 7621 +1 TWinControl.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e42f3c7 +044 USER32.dll SendMessageA
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e41f658 +016 USER32.dll CallWindowProcA
004bf1d7 +0d7 cMUDPro.exe Controls 7334 +23 TWinControl.DefaultHandler
00916dad +02d cMUDPro.exe SciLexer 1257 +7 TScintillaBase.DefaultHandler
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7e4196c2 +00a USER32.dll DispatchMessageA
004461bd +23d cMUDPro.exe madExcept HandleException
0044c662 +03a cMUDPro.exe madExcept InterceptAHandleExcept
004be83f +067 cMUDPro.exe Controls 7079 +9 TWinControl.MainWndProc
7c90eaf5 +009 ntdll.dll KiUserExceptionDispatcher
00e95397 +0cf cMUDPro.exe CmudY 11506 +29 TCmudYImp.yyparse
00e8a55e +092 cMUDPro.exe CmudY 323 +10 TCmudYImp.Execute
00cb6265 +215 cMUDPro.exe zLexer 389 +58 TScintLexer.Parse
00dfd428 +074 cMUDPro.exe EditScript 552 +13 TEditScriptF.EditorStyleNeeded
009176d3 +017 cMUDPro.exe SciLexer 1939 +2 TScintillaBase.doSciStyleNeeded
00916b99 +09d cMUDPro.exe SciLexer 1197 +8 TScintillaBase.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004bad64 +024 cMUDPro.exe Controls 5021 +5 TControl.Perform
004bf22b +023 cMUDPro.exe Controls 7353 +6 DoControlMsg
004bfc45 +00d cMUDPro.exe Controls 7621 +1 TWinControl.WMNotify
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e42f3c7 +044 USER32.dll SendMessageA
00916fdc +020 cMUDPro.exe SciLexer 1601 +2 TScintillaBase.SPerform
00cb5159 +009 cMUDPro.exe ScintillaAddict 409 +0 TScintillaAddict.wmColorize
004bb0d7 +2bb cMUDPro.exe Controls 5146 +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe Controls 7304 +111 TWinControl.WndProc
004be804 +02c cMUDPro.exe Controls 7073 +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe Classes 11583 +8 StdWndProc
7e4196c2 +00a USER32.dll DispatchMessageA
004a97b0 +0fc cMUDPro.exe Forms 8105 +23 TApplication.ProcessMessage
004a97ea +00a cMUDPro.exe Forms 8124 +1 TApplication.HandleMessage
004a9adf +0b3 cMUDPro.exe Forms 8223 +20 TApplication.Run
00ef9194 +088 cMUDPro.exe cMUDPro 352 +20 initialization
7c91312f +069 ntdll.dll RtlUnicodeStringToAnsiString
7c812b94 +0b6 kernel32.dll GetVersionExA
|
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed May 07, 2008 10:51 pm |
Well, this bug was almost the death of me. This took me three hours to track down today. The crash was different from the actual problem with onLoad not maintaining the current default context. The crash was related to removing a package after viewing something from that package in the editor (the onLoad event). The editor was caching a reference to the previous setting record (which is no longer valid after removing the package). And it turns out the Scintilla editor component was sending a background message to refresh itself, which was causing it to syntax check the script of the cached onLoad event.
Even after I fixed this it was still crashing until I found that it was also saving a pointer to the "preferences" of the previous script object, so that the parser could fetch stuff like the Var Character (special characters) to do the parsing. Each module has it's own preferences, so it was pointing to the preferences of the "test" package's main module that was just removed (and no longer a valid pointer).
Man, sometimes I really hate all of this caching. Seems like caching for performance causes the most bugs.
Anyway, I think both problems are solved in v2.24. Hopefully I didn't create any side effect bugs. |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Thu May 08, 2008 9:20 am |
Hate to say it, but this still happens. I started over completely after deleting everything from 2.23. Created my core module, then the GUI module, then the stance module. After importing the last script, I re-opened the PE and saw that the Lusternia tab was selected, but the core module settings were shown.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu May 08, 2008 4:15 pm |
As long as it's not actually crashing, then I'm not too worried. But I'll need another procedure for this since the procedure posted above works fine for me now.
|
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Thu May 08, 2008 5:07 pm |
I tried the procedure above, and that part works now because of the "switch module when switching package tab" change you made. However, if I add one or two more steps - close the PE and open it again - then it appears incorrectly again.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|