Thread overview
[Issue 4433] New: object.Error: Access Violation missing file and line number
Jul 06, 2010
Jesse Phillips
Oct 22, 2012
Andrej Mitrovic
July 06, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4433

           Summary: object.Error: Access Violation missing file and line
                    number
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: Jesse.K.Phillips+D@gmail.com
                CC: Jesse.K.Phillips+D@gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D@gmail.com> 2010-07-06 15:09:51 PDT ---
The error message when accessing a null reference of an object does not provide file and line number.

   void main() {
      Foo foo;

      foo.run();
   }

   class Foo {
      void run() {}
   }

The code above compiles and when run says:

object.Error: Access Violation

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4433


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #1 from bearophile_hugs@eml.cc 2010-07-06 17:03:49 PDT ---
Is the stack trace feature going to do this?
To implement this I think the compiler has to add a pointer to the filename
string and a line number to every call point to class methods, and more. So
this can be done in nonrelease mode. In optimized builds this can be a drag.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4433


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |FIXED


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-21 20:53:49 PDT ---
We have stack traces for this now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------