madExcept Strange problem

delphi package - automated exception handling

madExcept Strange problem

Postby alain962 » Mon Apr 26, 2004 9:11 pm

I installed madCollection. In one of my programs I have a strange problem. On my development computer this program works fine.
But when I run the same program on another computer I obtain (when a component try to get information from a Registry key (SMTP Prompt for password ... / Internet Account)) a madExcept 's messagebox. this This message occurs with each attempt. It makes impossible the
continuation of the program.
Thank's
alain962
 
Posts: 3
Joined: Mon Apr 26, 2004 9:06 pm

Postby madshi » Mon Apr 26, 2004 9:52 pm

How does the bug report look like?
madshi
Site Admin
 
Posts: 10207
Joined: Sun Mar 21, 2004 5:25 pm

I will test

Postby alain962 » Tue Apr 27, 2004 12:43 am

I will make a print screen at my office wednesday.
alain962
 
Posts: 3
Joined: Mon Apr 26, 2004 9:06 pm

Postby madshi » Tue Apr 27, 2004 6:28 am

The bug report should automatically be copied to the clipboard (in text format).
madshi
Site Admin
 
Posts: 10207
Joined: Sun Mar 21, 2004 5:25 pm

The bug report

Postby alain962 » Thu Apr 29, 2004 1:12 pm

ate/time : 2004-04-28 10:45
computer name : ALP4
user name : ALXP
operating system : Windows XP Service Pack 1 build 2600
system language : French
system up time : 8 minutes 55 seconds
physical memory : 273·512 MB (free/total)
free disk space : (D:) 1,49 GB (E:) 2,41 GB
executable : Annuntio2005.exe
exec. date/time : 2004-04-13 17:10
version : 1.0.0.0
madExcept version : 2.5
exception class : ERegistryException
exception message : Echec à l'obtention des données pour 'SMTP Prompt for Password'.

main thread ($f0):
004a7979 Annuntio2005.exe Registry 622 TRegistry.GetData
004a78ff Annuntio2005.exe Registry 503 TRegistry.ReadInteger
0052ed3a Annuntio2005.exe AL962MSOEAccount 429 TAL962MSOEAccount.BuildvFTLID
0052df93 Annuntio2005.exe AL962MSOEAccount 107 TAL962MSOEAccount.Create
0043ff9d Annuntio2005.exe Classes 5973 CreateComponent
004401cd Annuntio2005.exe Classes 6020 TReader.ReadComponent
00440422 Annuntio2005.exe Classes 6076 TReader.ReadDataInner
0044035b Annuntio2005.exe Classes 6055 TReader.ReadData
00445316 Annuntio2005.exe Classes 9588 TComponent.ReadState
00476119 Annuntio2005.exe Controls 3273 TControl.ReadState
0047a8ec Annuntio2005.exe Controls 5381 TWinControl.ReadState
00497415 Annuntio2005.exe Forms 2670 TCustomForm.ReadState
0044120f Annuntio2005.exe Classes 6434 TReader.ReadRootComponent
0043e3b3 Annuntio2005.exe Classes 4886 TStream.ReadComponent
00439da8 Annuntio2005.exe Classes 2447 InternalReadComponentRes
00439f7c Annuntio2005.exe Classes 2504 InitComponent
0043a00e Annuntio2005.exe Classes 2518 InitInheritedComponent
00496cc3 Annuntio2005.exe Forms 2509 TCustomForm.Create
0054f539 Annuntio2005.exe UDialogProjet 323 TDialogProjet1.ExportMailProject
0054eafa Annuntio2005.exe UDialogProjet 195 TDialogProjet1.dxBTNValiderClick
00478efe Annuntio2005.exe Controls 4621 TControl.Click
004d699c Annuntio2005.exe dxCore 756 TdxCustomControl.Click
0047947f Annuntio2005.exe Controls 4757 TControl.WMLButtonUp
00478cd3 Annuntio2005.exe Controls 4561 TControl.WndProc
0047c8de Annuntio2005.exe Controls 6242 TWinControl.WndProc
0047c4b0 Annuntio2005.exe Controls 6139 TWinControl.MainWndProc
004463e0 Annuntio2005.exe Classes 10563 StdWndProc
77d14d53 user32.dll DispatchMessageA
0049fd9c Annuntio2005.exe Forms 6696 TApplication.ProcessMessage
0049fde3 Annuntio2005.exe Forms 6715 TApplication.HandleMessage
0049bff4 Annuntio2005.exe Forms 4731 TCustomForm.ShowModal
00554af1 Annuntio2005.exe MAIN 891 TMainForm.ExporterunProjet1Click
0048e061 Annuntio2005.exe Menus 1787 TMenuItem.Click
0048f7b9 Annuntio2005.exe Menus 2507 TMenu.DispatchCommand
0049aa3d Annuntio2005.exe Forms 4034 TCustomForm.WMCommand
00478cd3 Annuntio2005.exe Controls 4561 TControl.WndProc
0047c8de Annuntio2005.exe Controls 6242 TWinControl.WndProc
00498324 Annuntio2005.exe Forms 3044 TCustomForm.WndProc
0047c4b0 Annuntio2005.exe Controls 6139 TWinControl.MainWndProc
004463e0 Annuntio2005.exe Classes 10563 StdWndProc
77d14d53 user32.dll DispatchMessageA
0049fd9c Annuntio2005.exe Forms 6696 TApplication.ProcessMessage
0049fde3 Annuntio2005.exe Forms 6715 TApplication.HandleMessage
004a007e Annuntio2005.exe Forms 6799 TApplication.Run
0055526b Annuntio2005.exe Annuntio2005 40 EntryPoint

modules:
00400000 Annuntio2005.exe 1.0.0.0 E:\_DELPHI\PROG-Delphi\___EFR_PROGS\ACTIV_TEXTES\__CODE_ANNUNTIO_WEB
5b090000 uxtheme.dll 6.0.2800.1106 D:\WINDOWS\System32
5f140000 olepro32.dll 5.0.5014.0 D:\WINDOWS\System32
63180000 SHLWAPI.dll 6.0.2800.1226 D:\WINDOWS\system32
72f50000 winspool.drv 5.1.2600.1106 D:\WINDOWS\System32
74690000 MSCTF.dll 5.1.2600.1106 D:\WINDOWS\System32
76340000 comdlg32.dll 6.0.2800.1106 D:\WINDOWS\system32
76f40000 Secur32.dll 5.1.2600.1106 D:\WINDOWS\System32
770e0000 oleaut32.dll 3.50.5016.0 D:\WINDOWS\system32
77390000 shell32.dll 6.0.2800.1233 D:\WINDOWS\system32
77bd0000 version.dll 5.1.2600.0 D:\WINDOWS\system32
77be0000 MSVCRT.DLL 7.0.2600.1106 D:\WINDOWS\system32
77c40000 GDI32.dll 5.1.2600.1106 D:\WINDOWS\system32
77d10000 user32.dll 5.1.2600.1134 D:\WINDOWS\system32
77da0000 ADVAPI32.dll 5.1.2600.1106 D:\WINDOWS\system32
77e40000 kernel32.dll 5.1.2600.1106 D:\WINDOWS\system32
77f40000 ntdll.dll 5.1.2600.1217 D:\WINDOWS\System32
78000000 RPCRT4.dll 5.1.2600.1254 D:\WINDOWS\system32
78090000 comctl32.dll 6.0.2800.1106 D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805
7ccc0000 OLE32.DLL 5.1.2600.1263 D:\WINDOWS\system32
On my development computer the program runs fine But on two others computers (they run under XP Pro SP1 too) this bug report appaears


disassembling:
[...]
004a7965 push 0
004a7967 mov ecx, [$55ae74]
004a796d mov dl, 1
004a796f mov eax, [$4a7394]
004a7974 call -$7e74d ($42922c) ; Exception.CreateResFmt
004a7979 » call -$a386e ($404110) ; @RaiseExcept
004a797e mov eax, [ebp+$c]
004a7981 mov [ebp-$10], eax
004a7984 mov eax, [ebp-$14]
004a7987 call -$4d4 ($4a74b8) ; DataTypeToRegData
004a798c mov edx, [ebp+8]
[...]
alain962
 
Posts: 3
Joined: Mon Apr 26, 2004 9:06 pm

Postby madshi » Thu Apr 29, 2004 1:35 pm

The bug report looks absolutely legit.

It seems that on the PCs where it fails the value you're reading either doesn't exist or your program doesn't have the necessary rights to read it.

You should put a try..except around that TRegistry.GetData call and react accordingly, if the reading from the registry fails.
madshi
Site Admin
 
Posts: 10207
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 7 guests