a strange error occurs, trying to use the xbrowse restorestate-method. I'm even unable to catch it from happening with a catch-try-block.
this is my code in that area
- Code: Select all Expand view RUN
- msginfo("still alive 1")
TRY
oLB:RestoreState(GetPvProfString ("XBRW_SPALTEN", MODUL_NAME, , IniLokal()))
CATCH
msginfo("dead")
writepprostring("XBRW_SPALTEN",MODUL_NAME,"", IniLokal())
END
msginfo("still alive 2") // <= this is line 172
I still get the message "still alive 1" but neither "dead" nor "still alive 2" will appear. Instead of catching an error, I get an error message:
Application
===========
Path and name: D:\cto_win\eho40\eho.exe (32 bits)
Size: 6,245,888 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 03.11.2010, 12:00:29
Error description: Error BASE/1109 Argument error: $
Args:
[ 1] = C
[ 2] = U
Stack Calls
===========
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTHEADER(8713)
Called from: .\source\classes\XBROWSE.PRG => TCTOXBROWSE:PAINTHEADER(1509)
Called from: .\source\classes\XBROWSE.PRG => TCTOXBROWSE:PAINT(1292)
Called from: .\source\classes\XBROWSE.PRG => TCTOXBROWSE:DISPLAY(1195)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1459)
Called from: .\source\classes\XBROWSE.PRG => TCTOXBROWSE:HANDLEEVENT(11050)
Called from: .\source\classes\WINDOW.PRG => _FWH(3394)
Called from: => MSGINFO(0)
Called from: AD_MAIN.prg => E_ADRESSEN(172)
Called from: EHO.prg => STARTADRESSEN(1257)
Called from: EHO.prg => (b)EHO_INIT(923)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:KEYDOWN(2546)
Called from: .\source\classes\MDICLIEN.PRG => TMDICLIENT:KEYDOWN(243)
Called from: => TMDICLIENT:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(3394)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE(978)
Called from: EHO.prg => MAIN(680)
As the error results from xbrowse.prg, I guess it might be an internal error in this class. This Error occurs with FW1009, but not with fw810. I guess it has a relation to the new way of writing down the Savestate-information. This is the information for this particular browse, that is written down by savestate:
- Code: Select all Expand view RUN
- ADRESSEN=XSS:41BF020600416D000200430D005265417272616E6765436F6C7341580013004E0100314E0100324E0100334E0100344E0100354E0100364E0100374E0100384E0100394E020031304E020031314E020031324E020031334E020031344E020031354E020031364E020031374E020031384E020031394115000200430B005F6E526F774865696768744E02003137417C0002004308005F6E576964746873416C0013004E020034324E020037364E020035354E020037364E03003231364E020033344E03003134364E03003134364E020036394E03003231364E03003238364E03003134364E03003134364E020034384E03003130344E0400313531384E03003130344E020039304E0200333441830002004307005F6C486964657341740013004C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E4C03002E462E414C0002004309005F6347727048647273413B00130055000055000055000055000055000055000055000055000055000055000055000055000055000055000055000055000055000055000055000041DE0002004309005F634865616465727341CD0013004309002A20566F726C6167654306005465726D696E4309002A204B656E6E756E674309002A204B642E2D4E722E430700566F726E616D654306002A204E616D654309002A2054656C65666F6E4304004C616E644305002A20504C5A4305002A204F727443060053747261DF6543090054656C65666F6E203243070054656C6566617843070044656269746F72430F00556D732E2D53742E2D49442D4E722E4310002A20417566747261677366656C6465724308002A20556D7361747A4305004F6666656E4304004A616872
What's going wrong?