[fpc-devel] RangeCheck error in sysutils.FILEGETATTR
Martin
fpc at mfriebe.de
Sun Mar 28 21:26:03 CEST 2010
I have no idea, if this is an FPC or Lazarus, though it seems to be FPC
/ RTL.
I get the following exception, with trunk, revision 15038. Build with
range check -Cr -Co -Ct
It happens when calling FILEGETATTR with the name of a not existing
directory.
The stacktrace is from Lazarus, checking if the backup directory exists.
There are no special chars in the String.
I have not yet tested it with 2.4.0 (my 2.4.0 was compiled without range
check, and does work)
Martin
#0 HANDLEERRORADDRFRAME(244904556, 0xc9, 0xe98f26c) at ..\inc\system.inc:903
#1 HANDLEERRORFRAME(201, 0xc9) at ..\inc\system.inc:933
#2 ?? at :0
#3 ?? at :0
#4 $PROJECT$_Ld233 at :0
#5 fpc_rangeerror at ..\inc\system.inc:613
#6 FILEGETATTR(0x13583be0 'C:\lazarus_latest\converter\backup') at
..\win\sysutils.pp:450
#7 FILEGETATTRUTF8(0x13583be0 'C:\lazarus_latest\converter\backup') at
include\fileutil.inc:183
#8 DIRPATHEXISTS(0x13583be0 'C:\lazarus_latest\converter\backup') at
include\fileutil.inc:276
#9 BACKUPFILE(0x154c48, 0x126415e0
'C:\lazarus_latest\converter\convertdelphi.pas') at buildmanager.pas:947
#10 ONUNITFILEBACKUP(0x10198a98, 0x126415e0
'C:\lazarus_latest\converter\convertdelphi.pas') at project.pp:3593
#11 WRITEUNITSOURCE(0x125c9c18) at project.pp:1055
#12 DOSAVEEDITORFILE(0x1fbca8, 0x201e28, [SFCHECKAMBIGUOUSFILES]) at
main.pp:8086
#13 MNUSAVECLICKED(0x1fbca8, 0x1fbca8) at main.pp:2750
#14 ONPROCESSIDECOMMAND(0x1fbca8, 0x10866a00, 1208, @0xe98f6cc: true) at
main.pp:2912
#15 PROCESSPARENTCOMMAND(0x10866a00, 0x201e28, @0xe98f760: 1208,
@0xe98f74c: '', 0x0, @0xe98f6cc: true) at sourceeditor.pp:6238
#16 PROCESSUSERCOMMAND(0x201e28, 0x1349e8b0, @0xe98f760: 1208,
@0xe98f74c: '', 0x0) at sourceeditor.pp:2568
#17 DOONPROCESSCOMMAND(0x1349e8b0, @0xe98f760: 1208, @0xe98f74c: '',
0x0) at synedit.pp:6297
#18 COMMANDPROCESSOR(0x1349e8b0, 1208, '', 0x0) at synedit.pp:5665
#19 KEYDOWN(0x1349e8b0, @0xe98fbe4: 0, [SSCTRL]) at synedit.pp:2234
#20 KEYDOWNBEFOREINTERFACE(0x1349e8b0, @0xe98fbe4: 0, [SSCTRL]) at
include\wincontrol.inc:5366
#21 DOKEYDOWNBEFOREINTERFACE(0x1349e8b0, @0xe98fbe0: {MSG = 48384,
CHARCODE = 0, UNUSED = 43690, KEYDATA = 2031617, RESULT = 0}) at
include\wincontrol.inc:5503
#22 CNKEYDOWN(0x1349e8b0, @0xe98fbe0: {MSG = 48384, CHARCODE = 0, UNUSED
= 43690, KEYDATA = 2031617, RESULT = 0}) at include\wincontrol.inc:6730
#23 DISPATCH(0xe98f278, @0xc9: 0) at ..\inc\objpas.inc:472
#24 WMSIZE(0x1349e8b0, @0xe98fbe0: {MSG = 48384, SIZETYPE = -1431699456,
WIDTH = 1, HEIGHT = 31, RESULT = 0}) at include\wincontrol.inc:6718
#25 WNDPROC(0x1349e8b0, @0xe98fbe0: {MSG = 48384, WPARAM = -1431699456,
LPARAM = 2031617, RESULT = 0, WPARAMLO = 0, WPARAMHI = 43690, LPARAMLO =
1, LPARAMHI = 31, RESULTLO = 0, RESULTHI = 0}) at
include\wincontrol.inc:5132
#26 WNDPROC(0x1349e8b0, @0xe98fbe0: {MSG = 48384, WPARAM = -1431699456,
LPARAM = 2031617, RESULT = 0, WPARAMLO = 0, WPARAMHI = 43690, LPARAMLO =
1, LPARAMHI = 31, RESULTLO = 0, RESULTHI = 0}) at synedit.pp:5225
#27 DELIVERMESSAGE(0x1349e8b0, @0xe98fbe0: 0) at lclmessageglue.pas:111
#28 WINDOWPROC(13698586, 256, 83, 2031617) at win32callback.inc:2422
#29 USER32!GetWindowMinimizeRect at :0
#30 $LAZARUSIDESTRCONSTS$_Ld3482 at :0
More information about the fpc-devel
mailing list