exception in system.pas (Delph 7)

delphi package - automated exception handling
Post Reply
softlinkuser
Posts: 4
Joined: Mon Jun 20, 2016 7:18 am

exception in system.pas (Delph 7)

Post by softlinkuser »

Hi. I'm picking up so very strange exception errors when doing the simplest things. My PC crashed few weeks back and i've had to re-install everything on a new drive.

typical example would be editing an existing firebird database record.
I put the dataset in edit mode ..... QryMyData.Edit;
assign the new integer value to the integer field .... QryMyDataIntegerField.Asinteger := 10;
at this point the exception error is generated. ??!!

I'm wondering if someone else has experienced something similar ? Any ideas ?


date/time : 2016-06-20, 09:31:53, 691ms
computer name : MCOLDPC-PC
wts client name : LENOVO2MARC
user name : mcoldpc
registered owner : mcoldpc
operating system : Windows 7 Service Pack 1 build 7601
system language : English
system up time : 11 hours
program up time : 2 minutes 54 seconds
processors : 2x Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
physical memory : 1618/3070 MB (free/total)
free disk space : (C:) 357.26 GB
display mode : 1920x1080, 32 bit
process id : $138c
allocated memory : 133.87 MB
largest free block : 949.18 MB
executable : JobSYS.exe
exec. date/time : 2016-06-20 09:28
version : 2016.5.1.5
compiled with : Delphi 7
madExcept version : 4.0.14
callstack crc : $162bd736, $c3ae043a, $c3ae043a
exception number : 4
exception class : EAccessViolation
exception message : Access violation at address 00402EF9 in module 'JobSYS.exe'. Read of address 13DE80DA.

main thread ($f74):
00402ef9 +02d JobSYS.exe System 3373 +29 Move
0066a315 +16d JobSYS.exe IBCustomDataSet 3360 +26 TIBCustomDataSet.InternalSetFieldData
0066af58 +048 JobSYS.exe IBCustomDataSet 3755 +7 TIBCustomDataSet.SetFieldData
0063513b +047 JobSYS.exe DB 9250 +2 TDataSet.SetFieldData
0066afa3 +03f JobSYS.exe IBCustomDataSet 3764 +4 TIBCustomDataSet.SetFieldData
006282cb +08b JobSYS.exe DB 4003 +4 TField.SetData
006641b1 +081 JobSYS.exe IBCustomDataSet 706 +7 TIBStringField.SetAsString
009916aa +5ca JobSYS.exe u_UpdateCostingCategory 394 +127 TFrmUpdateCostingCategory.cxButton1Click
004f187e +086 JobSYS.exe Controls 4705 +9 TControl.Click
004e5137 +02f JobSYS.exe StdCtrls 3472 +3 TButton.Click
005ee193 +067 JobSYS.exe cxButtons 1668 +8 TcxCustomButton.Click
004e529e +01e JobSYS.exe StdCtrls 3524 +1 TButton.CNCommand
005ee6e6 +046 JobSYS.exe cxButtons 1892 +4 TcxCustomButton.CNCommand
004f1653 +1df JobSYS.exe Controls 4645 +53 TControl.WndProc
004f5362 +18e JobSYS.exe Controls 6342 +33 TWinControl.WndProc
004e4f86 +086 JobSYS.exe StdCtrls 3414 +13 TButtonControl.WndProc
005ee667 +06f JobSYS.exe cxButtons 1870 +18 TcxCustomButton.WndProc
004f135e +036 JobSYS.exe Controls 4552 +5 TControl.Perform
004f5524 +03c JobSYS.exe Controls 6388 +6 DoControlMsg
004f5d01 +015 JobSYS.exe Controls 6574 +1 TWinControl.WMCommand
004f1653 +1df JobSYS.exe Controls 4645 +53 TControl.WndProc
004f5362 +18e JobSYS.exe Controls 6342 +33 TWinControl.WndProc
004f4f34 +034 JobSYS.exe Controls 6237 +3 TWinControl.MainWndProc
004916a8 +014 JobSYS.exe Classes 10966 +8 StdWndProc
77356b2b +02b ntdll.dll KiUserCallbackDispatcher
763d558d +044 user32.dll SendMessageW
763f2c01 +016 user32.dll CallWindowProcA
004f54a8 +13c JobSYS.exe Controls 6369 +23 TWinControl.DefaultHandler
004f1da5 +015 JobSYS.exe Controls 4836 +1 TControl.WMLButtonUp
004f1cef +08b JobSYS.exe Controls 4819 +8 TControl.WMMouseMove
004f1653 +1df JobSYS.exe Controls 4645 +53 TControl.WndProc
004f5362 +18e JobSYS.exe Controls 6342 +33 TWinControl.WndProc
004e4f86 +086 JobSYS.exe StdCtrls 3414 +13 TButtonControl.WndProc
005ee667 +06f JobSYS.exe cxButtons 1870 +18 TcxCustomButton.WndProc
004f4f34 +034 JobSYS.exe Controls 6237 +3 TWinControl.MainWndProc
004916a8 +014 JobSYS.exe Classes 10966 +8 StdWndProc
763d2e44 +00a user32.dll DispatchMessageA
00518bbc +0ac JobSYS.exe Forms 6873 +13 TApplication.ProcessMessage
00518c03 +00f JobSYS.exe Forms 6892 +1 TApplication.HandleMessage
00514b1c +15c JobSYS.exe Forms 4823 +24 TCustomForm.ShowModal
00faa8ec +024 JobSYS.exe u_Main 4649 +2 TFrmMain.UpdateCostingCategories1Click
0050739d +0dd JobSYS.exe Menus 1826 +14 TMenuItem.Click
00508b8d +02d JobSYS.exe Menus 2546 +5 TMenu.DispatchCommand
005134f1 +031 JobSYS.exe Forms 4115 +2 TCustomForm.WMCommand
004f1653 +1df JobSYS.exe Controls 4645 +53 TControl.WndProc
004f5362 +18e JobSYS.exe Controls 6342 +33 TWinControl.WndProc
00510d0c +478 JobSYS.exe Forms 3098 +103 TCustomForm.WndProc
004f4f34 +034 JobSYS.exe Controls 6237 +3 TWinControl.MainWndProc
004916a8 +014 JobSYS.exe Classes 10966 +8 StdWndProc
763d2e44 +00a user32.dll DispatchMessageA
00518bbc +0ac JobSYS.exe Forms 6873 +13 TApplication.ProcessMessage
00518c03 +00f JobSYS.exe Forms 6892 +1 TApplication.HandleMessage
00518e9e +0a6 JobSYS.exe Forms 6976 +16 TApplication.Run
00fb60c0 +5c4 JobSYS.exe JobSYS 463 +110 initialization
764def1a +010 kernel32.dll BaseThreadInitThunk

thread $1214:
7735656a +0a ntdll.dll NtWaitForMultipleObjects
764def1a +10 kernel32.dll BaseThreadInitThunk

thread $148c:
7735659a +0a ntdll.dll NtWaitForWorkViaWorkerFactory
764def1a +10 kernel32.dll BaseThreadInitThunk

thread $4a8: <priority:1>
77355f0a +0a ntdll.dll NtRemoveIoCompletion
00461c35 +0d JobSYS.exe madExcept CallThreadProcSafe
00461c9f +37 JobSYS.exe madExcept ThreadExceptFrame
764def1a +10 kernel32.dll BaseThreadInitThunk
>> created by thread $1450 at:
74cda337 +00 mswsock.dll

thread $7a0:
7735659a +0a ntdll.dll NtWaitForWorkViaWorkerFactory
764def1a +10 kernel32.dll BaseThreadInitThunk

thread $12dc:
7735658a +0a ntdll.dll NtWaitForSingleObject
75371796 +66 KERNELBASE.dll WaitForSingleObjectEx
764dc4ce +3e kernel32.dll WaitForSingleObjectEx
764dc47d +0d kernel32.dll WaitForSingleObject
00461c35 +0d JobSYS.exe madExcept CallThreadProcSafe
00461c9f +37 JobSYS.exe madExcept ThreadExceptFrame
764def1a +10 kernel32.dll BaseThreadInitThunk
>> created by main thread ($f74) at:
58fdb539 +00 comsvcs.dll

thread $10ec: <priority:-15>
7735658a +0a ntdll.dll NtWaitForSingleObject
75371796 +66 KERNELBASE.dll WaitForSingleObjectEx
764dc4ce +3e kernel32.dll WaitForSingleObjectEx
764dc47d +0d kernel32.dll WaitForSingleObject
6d0f29b8 +38 MSVCR80.dll _endthreadex
00461c35 +0d JobSYS.exe madExcept CallThreadProcSafe
00461c9f +37 JobSYS.exe madExcept ThreadExceptFrame
764def1a +10 kernel32.dll BaseThreadInitThunk
>> created by main thread ($f74) at:
6d0f2ac7 +7f MSVCR80.dll _beginthreadex

thread $16ac:
7735656a +00a ntdll.dll NtWaitForMultipleObjects
00461c35 +00d JobSYS.exe madExcept CallThreadProcSafe
00461c9f +037 JobSYS.exe madExcept ThreadExceptFrame
764def1a +010 kernel32.dll BaseThreadInitThunk
>> created by main thread ($f74) at:
5f462713 +24f netbios.dll Netbios

thread $1324:
7735659a +0a ntdll.dll NtWaitForWorkViaWorkerFactory
764def1a +10 kernel32.dll BaseThreadInitThunk
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: exception in system.pas (Delph 7)

Post by madshi »

It seems you can reproduce this on your dev PC? In that case it would be best to debug this in the IDE debugger, by stepping through the firebird VCL code. Could be a bug in the firebird code, I don't really know. Have you installed all update packs and hotfixes for your Delphi and firebird version?
softlinkuser
Posts: 4
Joined: Mon Jun 20, 2016 7:18 am

Re: exception in system.pas (Delph 7)

Post by softlinkuser »

thanks for the feedback. Yep, i can reproduce on my dev PC. I've already tried stepping through the IDE debugger and don't pick anything ... just produces the access violation error. I'll sure that my delphi and firebird are upto date as far as updates and hot fixes are concern, but i will double check now.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: exception in system.pas (Delph 7)

Post by madshi »

You may have to enable debug DCUs so you can step through the firebird units in the debugger.
Post Reply