0

Hi,
I'm new to the Delphi plugin.

I'm writing a new plugin for existing Software. But I successfully call the plug in and worked the all functionality. But when I tried to close the plugin form I got some 'Abstract Error'.
Any one help me tell me how to resolve this issue.

Mahes

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Duoas
0

An EAbstractError occurs whenever an abstract method is called. For example:

type
  // This is an abstract class
  tAbstract = class
    public
      procedure overrideMe; virtual;
    end;

  // This is also an abstract class
  tStillAbstract = class( tAbstract ) end;

  // However, this is not, since it provides methods
  // for all the ancestor's virtual/dynamic methods.
  tNotAbstract = class( tAbstract )
    public
      procedure overrideMe; override;
    end;

var
  fooey: tAbstract;

procedure tNotAbstract.overrideMe;
  begin
  showMessage( 'not abstract' )
  end;

begin
  // The following is error-free
  fooey := tNotAbstract.create;
  fooey.overrideMe;
  fooey.free;

  // The following raises EAbstractError
  fooey := tStillAbstract.create;
  fooey.overrideMe;
  fooey.free;
end.

Somewhere in your code you are

  1. Calling a method in an abstract class
  2. Not defining (overriding) an ancestor's virtual/dynamic (abstract) methods, which the existing software is trying to use.

Hope this helps.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.