Menu

#5 Specifying incorrect method attributes will AV

closed-fixed
5
2003-03-11
2003-02-20
No

When a class has methods that have incorrect
attributes, it can cause AV errors.

If you compile the following script (intentionally
invalid) it will demonstrate the problem.

type
TDog = class(TObject)
public
function Walk(hello: string): Integer; override;
end;

You may have to compile it multiple time to see the AV.
Note: It does NOT AV if the function has no parameters.

This was tested in D7 with current CVS code.

Discussion

  • ALu

    ALu - 2003-02-21

    Logged In: YES
    user_id=382292

    Should the error message be ignored ('No method "Walk" found
    in class: "override" not applicable')?

     
  • Mark Ericksen

    Mark Ericksen - 2003-03-11

    Logged In: YES
    user_id=193173

    Having pulled from current CVS the issue appears resolved.

    The error message is correct. Previously it would report the
    error message and upon multiple compiles it would AV. Assume
    all is good now. :)

     
  • Mark Ericksen

    Mark Ericksen - 2003-03-11
    • status: open --> closed-fixed
     
  • Mark Ericksen

    Mark Ericksen - 2003-03-11

    Logged In: YES
    user_id=193173

    Oops. Forgot to close it.

     

Log in to post a comment.