Another strange problem

delphi package - automated exception handling
Post Reply
Daniel
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm

Another strange problem

Post by Daniel »

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
madshi
Site Admin
Posts: 10334
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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.
Daniel
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm

Post by Daniel »

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

Post by Daniel »

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
madshi
Site Admin
Posts: 10334
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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
Daniel
Posts: 4
Joined: Fri Apr 30, 2004 6:25 pm

Post by Daniel »

Maybe the first time but not the next times.

Anyway, I'm glad that you got it working again...
Me too!
Post Reply