FIXED: 12.72b2: Access violation when import wrong unix-diff-format
Posted: 15 Feb 2018 11:28
If I try to import a unix-diff-file with a wrong format (e.g. a GIT-patch-file), RJTED produce a access violation with the following exception-data:
The 'Import diff file...'-function doesn't crash, but a message like 'Wrong file-fomat' would be great 
Code: Select all
[Exception]
EAccessViolation: Access violation at address 0000000001A6938F in module 'TextEd.exe'. Read of address FFFFFFFFFFFFFFFE
Date/Time : 15.02.2018 09:00:13
Registered Owner : Windows-Benutzer
Windows : Windows 7 Enterprise
Build : 7601
System Up Time : 0 days 2 hours 9 minutes 21 seconds
System Language : Deutsch (Deutschland)
Program Name : C:\Program Files\RJ TextEd\TextEd.exe
Program Version : Version 12.72 beta 2 (64-bit)
Program Up Time : 13 seconds, 551 milliseconds
CPU : Intel(R) Core(TM) i5-3470T CPU @ 2.90GHz 1
Physical memory : 8039,54296875 MB
Available memory : 5480,3671875 MB
Current Screen : 1680x1050, DPI: 96
System Screen : 1680x1050, DPI: 96
Contact name : Rickard Johansson
Contact email : support@rj-texted.se
[Stack trace]
[0000000001A6938F]{TextEd.exe } Main.GetPromptMessage (Line 36282, "Main.pas" + 11) + $19
[0000000048247E48]{Jcl250.bpl } Jcldebug.JclCreateStackList + $48
[0000000048247BD7]{Jcl250.bpl } Jcldebug.Unknown function at JclValidateModuleAddress + $177
[0000000048249BE2]{Jcl250.bpl } Jcldebug.Unknown function at AddModule + $B2
[0000000048228125]{Jcl250.bpl } Unknown function at _ZTRN13Jclhookexcept15TJclModuleArrayE + $B25
[000000004822836B]{Jcl250.bpl } Unknown function at _ZTRN13Jclhookexcept15TJclModuleArrayE + $D6B
[000000004822850F]{Jcl250.bpl } Unknown function at _ZTRN13Jclhookexcept15TJclModuleArrayE + $F0F
[000000000283942E]{rtl250.bpl } System._DelphiExceptionHandler + $26E
[000000007777905D]{ntdll.dll } Unknown function at RtlDecodePointer + $AD
[0000000077768C0F]{ntdll.dll } Unknown function at RtlUnwindEx + $BBF
[000000007779D948]{ntdll.dll } KiUserExceptionDispatcher + $2E
[0000000001A6938F]{TextEd.exe } Main.GetPromptMessage (Line 36282, "Main.pas" + 11) + $19
[0000000001A69ADA]{TextEd.exe } Main.DeleteSection (Line 36368, "Main.pas" + 30) + $14
[0000000001A6A1EF]{TextEd.exe } Main.ProcessPatchFile (Line 36462, "Main.pas" + 30) + $10
[0000000001A6A437]{TextEd.exe } Main.TMainForm.ImportUnixDiffFile (Line 36504, "Main.pas" + 18) + $0
[0000000001A6A4D9]{TextEd.exe } Main.TMainForm.ImportUnixDiffFileActionExecute (Line 36512, "Main.pas" + 2) + $0
[00000000029BFDA2]{rtl250.bpl } System.Classes.TBasicAction.Execute + $22
[00000000004310DA]{TextEd.exe } Vcl.ActnList.TCustomAction.Execute + $CA
[00000000029BFA96]{rtl250.bpl } System.Classes.TBasicActionLink.Execute + $26
[00000000007B95DD]{TextEd.exe } ElMenus.TElMenuItem.Click (Line 5169, "ElMenus.pas" + 15) + $1A
[00000000007C8C59]{TextEd.exe } ElMenus.ClickerHandler (Line 10372, "ElMenus.pas" + 6) + $14
[00000000029C1256]{rtl250.bpl } System.Classes.Unknown function at TDataModule.WriteHeight + $46
[0000000077549BD1]{USER32.dll } Unknown function at TranslateMessageEx + $2A1
[00000000775498DA]{USER32.dll } Unknown function at TranslateMessage + $1EA
[0000000000539773]{TextEd.exe } Vcl.Forms.TApplication.ProcessMessage + $133
[00000000005397E8]{TextEd.exe } Vcl.Forms.TApplication.HandleMessage + $18
[0000000000539C36]{TextEd.exe } Vcl.Forms.TApplication.Run + $E6
[0000000001B0255A]{TextEd.exe } TextEd.TextEd (Line 382, "" + 56) + $F
[0000000077645A4D]{kernel32.dll} BaseThreadInitThunk + $D
[000000007777B831]{ntdll.dll } RtlUserThreadStart + $21
