Specifying incorrect method attributes will AV
Brought to you by:
hhernler,
mackermann
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.
Logged In: YES
user_id=382292
Should the error message be ignored ('No method "Walk" found
in class: "override" not applicable')?
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. :)
Logged In: YES
user_id=193173
Oops. Forgot to close it.