Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Detect an misterious acess violation [SOLVED]

  1. #11

    Detect an misterious acess violation [SOLVED]

    Quote Originally Posted by Mirage
    arthurprs, In D7 there is a Search=>Find Error menu option where you can enter the address where an AV happened. And it will show you the corresponding line in your source code.
    AWESOME TIP!

    thanks =D
    From brazil (:

    Pascal pownz!

  2. #12

    Detect an misterious acess violation [SOLVED]

    Quote Originally Posted by arthurprs
    i "think" i have found the problem,

    delphi does not initialize initialize global var of class types with nil (like i said 1/100 of the time)

    not sure, but the problem seems to be solved
    Yes, I never trust Delphi to explicitly initialize anything, local or global. For this reason I decided to always set it to nil if I do any testing upon it for nil, and to use FreeAndNil() to dispose of said object too.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •