Another strange problem

delphi package - automated exception handling

Another strange problem

Postby Daniel » Fri Apr 30, 2004 6:38 pm

Hello,

I've downloaded and installed the latest madCollection package and I noticed a major problem:

1. I created a new application
2. ... added a MadExceptionHandler component on the form
3. ... created an empty OnException event handler (just a comment so Delphi does not remove it)
4. ... added a button which raises an exception.

When I raise the exception the Delphi IDE always either says my app has caused an AV and showing the CPU window (but no specific code location) or the integrated debugger shows line 484 in madTools.pas.
If I run the application from the Explorer (without Delphi debugging it) it gets closed instantly when I raise the exception.

I've tried to reinstall the madCollection and I also removed all packages except the mad* packages and the Delphi Standard Components package, but nothing has helped.

Can anybody help me?

Regards,
Daniel
Daniel
 
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm

Postby madshi » Fri Apr 30, 2004 8:11 pm

What kind of exception are you raising? Can you please show the code? Also, which Delphi version are you using? I can't reproduce it here with D7 professional.
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm

Postby Daniel » Sat May 01, 2004 9:17 am

Hello madshi,

I'm using Delphi 7 Professional. I've used madExcept during the last months and I've never experienced any problems with it.

Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
  raise Exception.Create('test');
end;

procedure TForm1.MadExceptionHandler1Exception(frozen: Boolean;
  exceptObject: TObject; exceptAddr: Pointer; crashedThreadId: Cardinal;
  var bugReport, screenShot: String; var canContinue, handled: Boolean);
begin
//
end;



Thanks,
Daniel
Daniel
 
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm

Postby Daniel » Sat May 01, 2004 10:02 am

Hallo madshi,

I've been able to solve this problem:

1. Uninstalled madCollection
2. Deleted the installation folder, which still contained most of the files (!)
3. Reinstalled madCollection

After that everthing works fine again :)

My quick guess is, that the installation programm did not overwrite all of the files it should to. That could explain the mysterious behaviours and it also explains why not all files are removed after uninstall.


Anyway, thanks for your help and your great piece of software
Daniel
Daniel
 
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm

Postby madshi » Sat May 01, 2004 11:13 am

Strange thang, the installer should do all the work. Could it be that you started Delphi while the installer was still busy?

Anyway, I'm glad that you got it working again... :D
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm

Postby Daniel » Sat May 01, 2004 12:45 pm

Maybe the first time but not the next times.

Anyway, I'm glad that you got it working again...
Me too!
Daniel
 
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 12 guests

cron