Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RuntimeError 216

Status
Not open for further replies.

bigshorty01

Programmer
Aug 12, 2004
2
DE
Hello everybody.

Everytime I cole my Project, I get a RuntimeError 216 at adress 00002DD4. But I get this Error AFTER the last line of the Program has been run through. This Error appeared suddenly and I don't know how to get rid of it. I did not change anything before it appeared. I just renamed a variable. But renameing it back does not help.

Best regards
bigshorty01
 
Error 216 - da classic.
A tip. Make a procedure OnMyAppException and direct Application.OnException to that procedure. Then you can add a breakpoint in your OnMyAppexception, and trace from there.


//Nordlund
 
Thanks.
I'm not so much skilled in Programming. Can you tell me how to redirect it to this procedure? This would be great!
 
Hi.
Here you have a snippet...
Place a breakpoint on the showmessage, and start tracing from there.

Code:
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    procedure AppException(Sender: TObject; E: Exception);
  public
  end;

implementation
{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  Application.OnException := AppException;
end;

procedure TForm1.AppException(Sender: TObject; E: Exception);
begin
  ShowMessage('The application generated an exception'+#13#10#13#10+'Technical message:'+E.Message);
end;

//Nordlund
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top