Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Access Violation

edited July 2006 in General
Hello,

I do have quite regularly trouble with exceptions that seem to come from the
surroundings of RB.
Might also be my fault before, but maybe someone with more background can
help.
We are wokring with RB 9.03.
Any help is highly appretiated!!!

This is, what madExcept reported:

Zugriffsverletzung bei Adresse 0082F57B in Modul 'AdvanTex.Exe'. Lesen von
Adresse 0388A454
==============================

date/time : 2006-07-18, 13:54:21, 178ms
operating system : Windows 2003 Service Pack 1 build 3790
system language : German
system up time : 6 days 10 hours
program up time : 3 hours 23 minutes
processors : 2x AMD Opteron(tm) Processor 265
physical memory : 708/2047 MB (free/total)
free disk space : (C:) 27,98 GB (I:) 38,89 GB
display mode : 1024x768, 16 bit
process id : $1c3c
allocated memory : 13,02 MB
madExcept version : 3.0b
callstack crc : $6062031a, $9671728e, $9671728e
exception number : 1
exception class : EAccessViolation
exception message : Zugriffsverletzung bei Adresse 0082F57B in Modul
'AdvanTex.Exe'. Lesen von Adresse 0388A454.

Main ($1a78):
0082f57b +00f AdvanTex.Exe raCodMod
TraCodeModule.GetAllProgramCount
0082f839 +005 AdvanTex.Exe raCodMod TraCodeModule.IsEmpty
0082f704 +0a0 AdvanTex.Exe raCodMod
TraCodeModule.RemoveProgram
0082f4af +033 AdvanTex.Exe raCodMod TraCodeModule.Notify
0069fbae +032 AdvanTex.Exe ppComm
TppCommunicator.SendNotify
0069fa0d +011 AdvanTex.Exe ppComm TppCommunicator.Destroy
0040475c +008 AdvanTex.Exe System 8385 +1 TObject.Free
008509c9 +01d AdvanTex.Exe raClass TraProgram.Destroy
0040475c +008 AdvanTex.Exe System 8385 +1 TObject.Free
0082eb77 +043 AdvanTex.Exe raCodMod
TraCodeModule.FreeAllPrograms
0082eafd +019 AdvanTex.Exe raCodMod TraCodeModule.Destroy
0040475c +008 AdvanTex.Exe System 8385 +1 TObject.Free
0070a74e +026 AdvanTex.Exe ppClass
TppCustomReport.FreeModules
00708b54 +068 AdvanTex.Exe ppClass TppCustomReport.Destroy
0073a0a6 +066 AdvanTex.Exe ppReport TppReport.Destroy
0040475c +008 AdvanTex.Exe System 8385 +1 TObject.Free
0087e8be +02e AdvanTex.Exe Adv_Report 325 +6 TAdvReport.Destroy
0040475c +008 AdvanTex.Exe System 8385 +1 TObject.Free
0045cf83 +01b AdvanTex.Exe SysUtils 16274 +3 FreeAndNil
00bcf790 +528 AdvanTex.Exe Mgr_Rechnung 2008 +90 TMgrRechnung.PrintRKo
009088c4 +014 AdvanTex.Exe Form_RKo 515 +1 TFormRKo.PrintExecute
005c427a +042 AdvanTex.Exe Adv_Misc 1242 +8
TAdvActionList.ExecuteAction
00506790 +020 AdvanTex.Exe ActnList 375 +1 TContainedAction.Execute
00507a1b +077 AdvanTex.Exe ActnList 961 +7 TCustomAction.Execute
0047c62d +025 AdvanTex.Exe Classes 10394 +2 TBasicActionLink.Execute
004f8614 +068 AdvanTex.Exe Controls 4703 +7 TControl.Click
004d457a +00a AdvanTex.Exe ComCtrls 16303 +1 TToolButton.Click
004f8bb3 +06f AdvanTex.Exe Controls 4841 +6 TControl.WMLButtonUp
004f8407 +1df AdvanTex.Exe Controls 4645 +53 TControl.WndProc
004fc18a +18e AdvanTex.Exe Controls 6342 +33 TWinControl.WndProc
00518a74 +478 AdvanTex.Exe Forms 3098 +103 TCustomForm.WndProc
004f8112 +036 AdvanTex.Exe Controls 4552 +5 TControl.Perform
004fbe56 +0ae AdvanTex.Exe Controls 6258 +4 GetControlAtPos
004f8112 +036 AdvanTex.Exe Controls 4552 +5 TControl.Perform
004fbfe4 +0a8 AdvanTex.Exe Controls 6301 +15
TWinControl.IsControlMouseMsg
004fc0f0 +0f4 AdvanTex.Exe Controls 6327 +18 TWinControl.WndProc
004d96f6 +252 AdvanTex.Exe ComCtrls 18694 +80 TToolBar.WndProc
004fbd5c +034 AdvanTex.Exe Controls 6237 +3 TWinControl.MainWndProc
0047d78c +014 AdvanTex.Exe Classes 10966 +8 StdWndProc

thread $3088:
7c94ed54 +00 ntdll.dll KiFastSystemCallRet
7c942122 +0a ntdll.dll NtWaitForSingleObject
7c82baa2 +82 kernel32.dll WaitForSingleObjectEx
7c82ba0d +0d kernel32.dll WaitForSingleObject
0044eabd +0d AdvanTex.Exe madExcept CallThreadProcSafe
0044eb27 +37 AdvanTex.Exe madExcept ThreadExceptFrame
187b262f +00 axcws32.dll

cpu registers:
eax = 03852f70
ebx = 03852f70
ecx = 0388a44c
edx = 00000000
esi = 03852f70
edi = 038a9020
eip = 0082f57b
esp = 0013f86c
ebp = 038a9020

stack dump:
0013f86c 3e f8 82 00 01 00 00 00 - 0a f7 82 00 00 00 00 00
0013f87c 34 f9 13 00 70 2f 85 03 - c0 93 8a 03 00 00 00 00
4...p/..........
0013f88c b4 f4 82 00 2c e1 82 00 - c0 93 8a 03 00 00 00 00
....,...........
0013f89c b1 fb 69 00 c0 93 8a 03 - 00 fa 69 00 20 90 73 00
..i.......i...s.
0013f8ac c0 93 8a 03 01 00 00 00 - 12 fa 69 00 20 90 8a 03
..........i.....
0013f8bc 01 f9 13 00 5f 47 40 00 - ce 09 85 00 70 2f 85 03
...._G@.....p/..
0013f8cc 70 2f 85 03 5f 47 40 00 - 7c eb 82 00 01 00 00 00
p/.._G@.|.......
0013f8dc 02 eb 82 00 a4 91 85 03 - 00 00 00 00 5f 47 40 00
............_G@.
0013f8ec 53 a7 70 00 a4 91 85 03 - 00 f9 13 00 59 8b 70 00
S.p.........Y.p.
0013f8fc 90 fe 13 00 a4 91 85 03 - 01 f9 13 00 ab a0 73 00
..............s.
0013f90c 5c 28 62 03 01 00 00 00 - 5f 47 40 00 c3 e8 87 00
\(b....._G@.....
0013f91c 38 42 5c 00 2c cb 6c 03 - 5f 47 40 00 88 cf 45 00
8B\.,.l._G@...E.
0013f92c 5c 28 62 03 08 fb 13 00 - 34 fb 13 00 95 f7 bc 00
\(b.....4.......
0013f93c e7 f7 bc 00 4c f9 13 00 - 2c 4f 40 00 34 fb 13 00
....L...,O@.4...
0013f94c 50 fb 13 00 2c 4f 40 00 - 34 fb 13 00 08 5c 67 03
P...,O@.4....\g.
0013f95c 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0013f96c 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0013f97c 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0013f98c 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0013f99c 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................

disassembling:
00404754 public System.TObject.Free: ; function entry point
00404754 8384 test eax, eax
00404756 jz loc_40475f
00404758 8385 mov dl, 1
0040475a mov ecx, [eax]
0040475c > call dword ptr [ecx-4]
0040475f 8386 ret

Comments

  • edited July 2006
    Hi Stephan,

    Please provide the exact steps you are taking to create this AV. Is this
    occuring at design time or runtime? Which version of Delphi are you using?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    "Stephan Leiwering, AdvanTex Software"
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Hi Nico,

    my problem is that I am not able to reproduce those effects here.
    Our applications sends bugreports by mail to us whenever an exception
    occurs.
    The original post is what we get (look at it in an editor in font Courier
    New, then it is more readable).
    As I have a call stack, I thought you might be able to comment on this
    anyhow.
    As we do not have the source code of the RAP thing, we do not see line
    number and can not trace it anyhow, but maybe you can?
    This is the essentional part of the call stack (the end, basically):
    The exception occurs in TraCodeModule.GetAllProgramCount, at least madExcept
    reports it like this.

    So it happens at run-time and we use Delphi 7 and RB 9.03 Ent.
    Thanks for your support,

    Stephan

    Here is the call stack listing:




  • edited July 2006
    Hi Stephan,

    Thanks for the information. There is a patch for RB 9.03 that may fix this
    issue. If you would like to try it, please send a small email to
    support@digital-metaphors.com requesting it.

    Another approach would be to try downloading RB 10.03 and seeing if the
    issue still occurs.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    "Stephan Leiwering, AdvanTex Software"
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Hi Nico,

    I am sorry, but this did not solve the issue.
    I will consider updating to RB 10, to give that a try.
    We currently start analysing our exceptions heavily and I would like to
    reduce it as much as possible.
    Would you say that version 10.03 is as stable as 9.03 ?
    I will also try to figure out more about the exact steps how to create this
    AV, olthough you cannot reproduce it easily I guess. It seems to be more a
    every-now-and-then thing.
    Thanks for your support,

    Stephan

  • edited July 2006
    Hi Stephan,

    It seems that this AV is occuring when your users are closing the
    application with certain RAP code present. Perhaps there is a certain
    event that is causing this issue. You might try removing all rap code and
    see if the problem still exists. If not, periodically begin adding it back
    and see if you can isolate the problem.

    I would recommend downloading a trial edition of RB 10.03 and testing it
    with your application to be sure there are no major problems.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    "Stephan Leiwering, AdvanTex Software"
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    This is a multi-part message in MIME format.
  • edited July 2006
    This is a multi-part message in MIME format.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    This is a multi-part message in MIME format.
  • edited July 2006
    This is a multi-part message in MIME format.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    This is a multi-part message in MIME format.
  • edited August 2006
    This is a multi-part message in MIME format.
  • edited August 2006
    This is a multi-part message in MIME format.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2006
    This is a multi-part message in MIME format.
  • edited August 2006
    Nico,

    I waited so long to respond to see whether the problem really solved.
    The good news is: until now I did not get any bug report of that kind any
    more!
    So from my point: put the modifications of the CodeModule into the next
    service release.
    Thanks for your help, I really appreciate it!

    Stephan
  • edited August 2006
    Stephan,

    Excellent! Glad it's helping.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    "Stephan Leiwering, AdvanTex Software"
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.