OSCommerce Product Manager for Windows
FS#174 - Access violation on connection, on FreeReport...
Attached to Project:
OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Wednesday, 16 March 2005, 14:38 GMT
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Thursday, 30 March 2006, 03:25 GMT
Opened by Mario A. Valdez-Ramirez (mvaldez) - Wednesday, 16 March 2005, 14:38 GMT
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Thursday, 30 March 2006, 03:25 GMT
|
DetailsReceived a debug stack trace from an user. It seems, on connection, some FreeReport code cause and Access Violation. The stack trace is as follow:
Exception class: EAccessViolation Exception address: 00554D9D ---------------------------------------------------------------------------------------------------- Stack list, generated 2005-03-14 7:53:41 PM [00554D9D] FR_Desgn.TfrDesignerPage.SetPage (Line 554, "FR_Desgn.pas" + 1) + $C [00403FF7] System.@HandleAnyException (Line 9362, "system.pas" + 13) + $0 [0046698F] Controls.TControl.WndProc (Line 4561, "Controls.pas" + 53) + $8 [0055957C] FR_Desgn.TfrDesignerForm.FormResize (Line 1961, "FR_Desgn.pas" + 7) + $6 [00463DA5] Controls.TControl.Resize (Line 3266, "Controls.pas" + 1) + $19 [0046B330] Controls.TWinControl.WMSize (Line 6576, "Controls.pas" + 4) + $10 [00483AFD] Forms.TScrollingWinControl.WMSize (Line 2240, "Forms.pas" + 3) + $6 [0046698F] Controls.TControl.WndProc (Line 4561, "Controls.pas" + 53) + $8 [0046DF92] Controls.TWinControl.CalcConstraints (Line 8006, "Controls.pas" + 1) + $3 [0046A59A] Controls.TWinControl.WndProc (Line 6242, "Controls.pas" + 33) + $6 [0048597C] Forms.TCustomForm.WndProc (Line 3044, "Forms.pas" + 103) + $6 [0046E3FA] Controls.TWinControl.ConstrainedResize (Line 8146, "Controls.pas" + 2) + $11 [004224AE] Classes.TThreadList.UnlockList (Line 3097, "classes.pas" + 1) + $7 [0043B17C] Graphics.FreeMemoryContexts (Line 4664, "Graphics.pas" + 12) + $5 [0046A16C] Controls.TWinControl.MainWndProc (Line 6139, "Controls.pas" + 3) + $9 [0046A181] Controls.TWinControl.MainWndProc (Line 6142, "Controls.pas" + 6) + $0 [0046A59A] Controls.TWinControl.WndProc (Line 6242, "Controls.pas" + 33) + $6 [0048597C] Forms.TCustomForm.WndProc (Line 3044, "Forms.pas" + 103) + $6 [00560C57] FR_Desgn.TfrDesignerForm.WndProc (Line 4544, "FR_Desgn.pas" + 42) + $5 [0046A16C] Controls.TWinControl.MainWndProc (Line 6139, "Controls.pas" + 3) + $9 [0042DE68] Classes.StdWndProc (Line 10563, "classes.pas" + 8) + $0 [0046A6E0] Controls.TWinControl.DefaultHandler (Line 6269, "Controls.pas" + 23) + $28 [004872D0] Forms.TCustomForm.DefaultHandler (Line 3689, "Forms.pas" + 7) + $6 [0046727C] Controls.TControl.WMWindowPosChanged (Line 4801, "Controls.pas" + 1) + $8 [0046B25C] Controls.TWinControl.WMWindowPosChanged (Line 6556, "Controls.pas" + 11) + $6 [0046698F] Controls.TControl.WndProc (Line 4561, "Controls.pas" + 53) + $8 [0046A59A] Controls.TWinControl.WndProc (Line 6242, "Controls.pas" + 33) + $6 [0048597C] Forms.TCustomForm.WndProc (Line 3044, "Forms.pas" + 103) + $6 [0046A59A] Controls.TWinControl.WndProc (Line 6242, "Controls.pas" + 33) + $6 [0048597C] Forms.TCustomForm.WndProc (Line 3044, "Forms.pas" + 103) + $6 [0043B17C] Graphics.FreeMemoryContexts (Line 4664, "Graphics.pas" + 12) + $5 [0046A16C] Controls.TWinControl.MainWndProc (Line 6139, "Controls.pas" + 3) + $9 [0046A181] Controls.TWinControl.MainWndProc (Line 6142, "Controls.pas" + 6) + $0 [00560C57] FR_Desgn.TfrDesignerForm.WndProc (Line 4544, "FR_Desgn.pas" + 42) + $5 [0046A16C] Controls.TWinControl.MainWndProc (Line 6139, "Controls.pas" + 3) + $9 [0042DE68] Classes.StdWndProc (Line 10563, "classes.pas" + 8) + $0 [0048D32D] Forms.TApplication.ProcessMessage (Line 6685, "Forms.pas" + 2) + $C [0048D3E7] Forms.TApplication.ProcessMessages (Line 6708, "Forms.pas" + 1) + $6 [00615A00] network.FNopm_OpenDBConnection (Line 128, "network.pas" + 31) + $7 [0062A895] main.Topm_Form_Main.PRopm_Connect (Line 353, "main.pas" + 42) + $49 [0062B368] main.Topm_Form_Main.opm_MenuItem_ConnectClick (Line 531, "main.pas" + 1) + $2 [0047B79D] Menus.TMenuItem.Click (Line 1787, "Menus.pas" + 14) + $C [0047CEF5] Menus.TMenu.DispatchCommand (Line 2507, "Menus.pas" + 5) + $5 [00488095] Forms.TCustomForm.WMCommand (Line 4034, "Forms.pas" + 2) + $25 [0046698F] Controls.TControl.WndProc (Line 4561, "Controls.pas" + 53) + $8 [00403CE4] System.@CallDynaInst (Line 8638, "system.pas" + 3) + $0 [0046702B] Controls.TControl.WMMouseMove (Line 4735, "Controls.pas" + 8) + $24 [0046698F] Controls.TControl.WndProc (Line 4561, "Controls.pas" + 53) + $8 [0046A59A] Controls.TWinControl.WndProc (Line 6242, "Controls.pas" + 33) + $6 [0048597C] Forms.TCustomForm.WndProc (Line 3044, "Forms.pas" + 103) + $6 [004224AE] Classes.TThreadList.UnlockList (Line 3097, "classes.pas" + 1) + $7 [0043B17C] Graphics.FreeMemoryContexts (Line 4664, "Graphics.pas" + 12) + $5 [0046A16C] Controls.TWinControl.MainWndProc (Line 6139, "Controls.pas" + 3) + $9 [0046A181] Controls.TWinControl.MainWndProc (Line 6142, "Controls.pas" + 6) + $0 [0046A59A] Controls.TWinControl.WndProc (Line 6242, "Controls.pas" + 33) + $6 [0048597C] Forms.TCustomForm.WndProc (Line 3044, "Forms.pas" + 103) + $6 [004224AE] Classes.TThreadList.UnlockList (Line 3097, "classes.pas" + 1) + $7 [0043B17C] Graphics.FreeMemoryContexts (Line 4664, "Graphics.pas" + 12) + $5 [0046A16C] Controls.TWinControl.MainWndProc (Line 6139, "Controls.pas" + 3) + $9 [0042DE68] Classes.StdWndProc (Line 10563, "classes.pas" + 8) + $0 [0048D3BC] Forms.TApplication.ProcessMessage (Line 6696, "Forms.pas" + 13) + $4 [0048D403] Forms.TApplication.HandleMessage (Line 6715, "Forms.pas" + 1) + $6 [0048D69E] Forms.TApplication.Run (Line 6799, "Forms.pas" + 16) + $3 [00650053] oscpm1.oscpm1 (Line 99, "C:\temp\oscpm1\oscpm1.dpr" + 40) + $2 ---------------------------------------------------------------------------------------------------- System : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 1" Processor: AMD, AMD Athlon(tm) XP 1700+, 1490 MHz MMX Display : 1024x768 pixels, 32 bpp ---------------------------------------------------------------------------------------------------- List of loaded modules: [00400000] E:\Program Files\oscpmwin\oscpm1.exe 0.1.1.145 - 0.1.1.145 OSCommerce Product Manager [01DE0000] C:\WINDOWS\System32\msctfime.ime <00400000> 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Microsoft Text Frame Work Service IME [02070000] C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\hpz2ku09.dll <10000000> 0.3.0.0 - 2.236.4.0 HPDJ Driver [02890000] E:\Program Files\oscpmwin\libmysql323.dll <10000000> (no version info) [10000000] E:\Program Files\oscpmwin\FreeImage.dll (no version info) [20B00000] C:\WINDOWS\System32\imon.dll (no version info) [4FEC0000] C:\WINDOWS\system32\OLE32.DLL 5.1.2600.1619 - 5.1.2600.1619 (xpsp2.041130-1838) Microsoft OLE for Windows [60300000] C:\Program Files\Yahoo!\Messenger\idle.dll 1.0.0.2 - 1, 0, 0, 2 idle [60600000] C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\hpzpm309.dll 2.236.4.0 - 2.236.4.0 Printer Property UI dll [629C0000] C:\WINDOWS\System32\LPK.DLL 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Language Pack [63000000] C:\WINDOWS\system32\wininet.dll 6.0.2800.1485 - 6.00.2800.1485 Internet Extensions for Win32 [70A70000] C:\WINDOWS\system32\SHLWAPI.dll 6.0.2800.1612 - 6.00.2800.1612 (xpsp2.041207-1145) Shell Light-weight Utility Library [71950000] C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1612_x-ww_7c379b08\comctl32.dll 6.0.2800.1612 - 6.0 (xpsp2.041130-1838) User Experience Controls Library [71A50000] C:\WINDOWS\System32\mswsock.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Microsoft Windows Sockets 2.0 Service Provider [71A90000] C:\WINDOWS\System32\wshtcpip.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Windows Sockets Helper DLL [71AA0000] C:\WINDOWS\System32\WS2HELP.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Windows Socket 2.0 Helper for Windows NT [71AB0000] C:\WINDOWS\System32\WS2_32.DLL 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Windows Socket 2.0 32-Bit DLL [71AD0000] C:\WINDOWS\System32\WSOCK32.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Windows Socket 32-Bit DLL [71BF0000] C:\WINDOWS\System32\SAMLIB.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) SAM Library DLL [72D10000] C:\WINDOWS\System32\msacm32.drv 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Microsoft Sound Mapper [72D20000] C:\WINDOWS\System32\wdmaud.drv 5.1.2600.0 - 5.1.2600.0 (XPClient.010817-1148) WDM Audio driver mapper [72FA0000] C:\WINDOWS\System32\USP10.dll 1.409.2600.1106 - 1.0409.2600.1106 (xpsp1.020828-1920) Uniscribe Unicode script processor [73000000] C:\WINDOWS\System32\winspool.drv 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Windows Spooler Driver [73080000] C:\WINDOWS\system32\rsvpsp.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Microsoft Windows Rsvp 1.0 Service Provider [746F0000] C:\WINDOWS\System32\Msimtf.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Active IMM Server DLL [74720000] C:\WINDOWS\System32\MSCTF.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) MSCTF Server DLL [75A70000] C:\WINDOWS\system32\USERENV.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Userenv [762A0000] C:\WINDOWS\system32\MSASN1.dll 5.1.2600.1362 - 5.1.2600.1362 (xpsp2.040109-1800) ASN.1 Runtime APIs [762C0000] C:\WINDOWS\system32\CRYPT32.dll 5.131.2600.1123 - 5.131.2600.1123 (xpsp2.020921-0842) Crypto API32 [76390000] C:\WINDOWS\System32\IMM32.DLL 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Windows XP IMM32 API Client DLL [763B0000] C:\WINDOWS\system32\comdlg32.dll 6.0.2800.1106 - 6.00.2800.1106 (xpsp1.020828-1920) Common Dialogs DLL [76B40000] C:\WINDOWS\System32\winmm.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) MCI API DLL [76BF0000] C:\WINDOWS\System32\PSAPI.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Process Status Helper [76CE0000] C:\WINDOWS\System32\NTMARTA.DLL 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Windows NT MARTA provider [76F20000] C:\WINDOWS\System32\DNSAPI.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) DNS Client API DLL [76F60000] C:\WINDOWS\system32\WLDAP32.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Win32 LDAP API DLL [76FB0000] C:\WINDOWS\System32\winrnr.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) LDAP RnR Provider DLL [76FC0000] C:\WINDOWS\System32\rasadhlp.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Remote Access AutoDial Helper [77120000] C:\WINDOWS\system32\oleaut32.dll 3.50.5016.0 - 3.50.5016.0 Microsoft OLE 3.50 for Windows NT(TM) and Windows 95(TM) Operating Systems [77340000] C:\WINDOWS\system32\comctl32.dll 5.82.2800.1106 - 5.82 (xpsp1.020828-1920) Common Controls Library [77BD0000] C:\WINDOWS\System32\midimap.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Microsoft MIDI Mapper [77BE0000] C:\WINDOWS\System32\MSACM32.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Microsoft ACM Audio Filter [77C00000] C:\WINDOWS\system32\version.dll 5.1.2600.0 - 5.1.2600.0 (xpclient.010817-1148) Version Checking and File Installation Libraries [77C10000] C:\WINDOWS\system32\MSVCRT.DLL 7.0.2600.1106 - 7.0.2600.1106 (xpsp1.020828-1920) Windows NT CRT DLL [77D40000] C:\WINDOWS\system32\user32.dll 5.1.2600.1617 - 5.1.2600.1617 (xpsp2.041130-1838) Windows XP USER API Client DLL [77DD0000] C:\WINDOWS\system32\ADVAPI32.dll 5.1.2600.1106 - 5.1.2600.1106 (xpsp1.020828-1920) Advanced Windows 32 Base API [77E60000] C:\WINDOWS\system32\kernel32.dll 5.1.2600.1560 - 5.1.2600.1560 (xpsp2_gdr.040517-1325) Windows NT BASE API Client DLL [77F50000] C:\WINDOWS\System32\ntdll.dll 5.1.2600.1217 - 5.1.2600.1217 (xpsp2.030429-2131) NT Layer DLL [78000000] C:\WINDOWS\system32\RPCRT4.dll 5.1.2600.1361 - 5.1.2600.1361 (xpsp2.040109-1800) Remote Procedure Call Runtime [7C340000] C:\Program Files\Yahoo!\Messenger\MSVCR71.dll 7.10.3052.4 - 7.10.3052.4 Microsoft® C Runtime Library [7CD00000] C:\WINDOWS\system32\shell32.dll 6.0.2800.1613 - 6.00.2800.1613 (xpsp2.041130-1838) Windows Shell Common Dll [7F000000] C:\WINDOWS\system32\GDI32.dll 5.1.2600.1561 - 5.1.2600.1561 (xpsp2_gdr.040517-1325) GDI Client DLL ---------------------------------------------------------------------------------------------------- Active Controls hierarchy: Topm_Form_Main "opm_Form_Main" ---------------------------------------------------------------------------------------------------- |
This task depends upon
Pending to check the FreeReport code and platform environment conditions.
We received another report. Now we are not using the automatic crash report, but we are using the manual debug-map file searching.
The version was 0.1.2.342.
Error was: "Access violation at address 00560559 in module 'oscpm1.exe' Read of address 000000B0".
Converted address is:
= 00560559 - (00400000 + 00001000)
= 00560559 - 401000
= 0015F559
Relating to map file:
Address Publics by Value
0001:0015F548 TfrDesignerPage.SetPage
Line numbers for FR_Desgn(FR_Desgn.pas) segment .text
553 0001:0015F548
554 0001:0015F54D
555 0001:0015F55F
556 0001:0015F565
This crash is the same than the other report. There is a problem in the FR_Desgn.pas code. Involved code is:
procedure TfrDesignerPage.SetPage;
var
Pgw,Pgh: Integer;
begin
Pgw := FDesigner.Page.PrnInfo.Pgw; <--THIS IS LINE 554
Pgh := FDesigner.Page.PrnInfo.Pgh;
if Pgw > Parent.Width then
SetBounds(10, 10, Pgw, Pgh) else
SetBounds((Parent.Width - Pgw) div 2, 10, Pgw, Pgh);
FDesigner.BPanel.Top := Top + Height + 10;
FDesigner.RPanel.Left := Left + Width + 10;
end;
Pending to check why the value of FDesigner.Page.PrnInfo.Pgw does not exist.
Access violation at address 0053AE01 in module 'oscpm1.exe'. Read of address 000000B0
Running and going to the address we find in FR_edit.pas:
procedure TfrEditorForm.FormCreate(Sender: TObject);
begin
Caption := LoadStr(frRes + 060);
Label1.Caption := LoadStr(frRes + 061);
CB1.Caption := LoadStr(frRes + 062);
CB2.Caption := LoadStr(frRes + 063);
CB3.Caption := LoadStr(frRes + 064);
Label2.Caption := LoadStr(frRes + 065);
Button3.Caption := LoadStr(frRes + 066);
Button4.Caption := LoadStr(frRes + 067);
Button5.Caption := LoadStr(frRes + 068);
Button1.Caption := LoadStr(SOk);
Button2.Caption := LoadStr(SCancel); <--- Here is the error.
end;
Maybe an string does not exist in the resource? Pending to check.
Found a reference:
http://www.fast-report.com/en/forum/index.php?showtopic=1395
I'm not using FreeReport in any of my open projects. And sometimes I just have Delphi 6 minimized and not using it at all. But I'll regularly get an Access Violation pop up: "Access violation at address xxxxx in module 'FREEREP6.bpl'. Read of address 000000B0." Any idea what causes it and how to get rid of it short of uninstalling FreeReports?
Same address that cannot be read. Mmmh.