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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.