View Full Version : "Catch Handled Exceptions" in version 6.0.18
raiffhigor
20-Jan-2009, 11:51 PM
Hi all,
I'm having a problem that don't "catch handled exceptions". The CheckBox that activate this function is marked and i try this simple code:
This simple example have only a Form that contains a TButton and a TMemo. The event OnClick of the button have this code:
procedure Tform1.Button1OnClick(Sender: TObject);
begin
try
strtoint('a'); // EXCEPTION HERE!
except
on e: exception do begin
memo1.lines.add(e.message);
end;
end;
end;
the exception is added to the memo lines, but after, no eurekalog's dialog has been shown.
Someone had the same problem.?!?! :confused:
thanks.
Alex
21-Jan-2009, 08:04 AM
Hello, raiffhigor.
I've just created new empty project, inserted code:
procedure TForm47.FormCreate(Sender: TObject);
begin
try
strtoint('a'); // EXCEPTION HERE!
except
on e: exception do begin
memo1.lines.add(e.message);
end;
end;
end;
Then enabled EL, enabled "Catch handled errors" and rebuilded project.
Everything is working fine.
Please, check:
- There is a ExceptionLog unit into uses clause of your DPR-file (Project/View source).
- EL is successfully processed your exe. I.e. right after compilation you should see a flash of EurekaLog dialog saying about modifing your exe.
- You do not have any exception filters enabled or use EL's event handlers.
- You do have EL enabled. Does it catch unhandled errors? Try to remove try-except block for testing.
- May be you should post a demo to reproduce the problem (all sources + exe)? BTW, what Delphi version do you use?
raiffhigor
21-Jan-2009, 01:12 PM
Hello Gun Smoker,
First, thanks for your help, i didn't remember to post my version delphi, i'm working with Delphi 7 Enterprise Build 8.1, and unhandled exceptions, i'm chatching. I'll put step by step here that was post in the latest reply by you:
1- There is a ExceptionLog unit into uses clause of your DPR-file (Project/View source).
Yes, ExceptionLog is there, it is the first unit in my dpr
2-EL is successfully processed your exe. I.e. right after compilation you should see a flash of EurekaLog dialog saying about modifing your exe.
Yes, a flash of EL after compiling my project is displayed;
3- You do not have any exception filters enabled or use EL's event handlers.
No, i don't have any filter and any EL's event handlers
4- You do have EL enabled. Does it catch unhandled errors? Try to remove try-except block for testing.
Yes, i have EL activated and unhandled exceptions are catched.
5- May be you should post a demo to reproduce the problem (all sources + exe)? BTW, what Delphi version do you use?
Follows here in this reply the source and the exe.
the .exe file contains two button one with hundled exception and another with unhandled exception.
If you can post an example here too, i'll test here.
One more time,
Thanks a lot.
PS: I was using a EL 6.0.6 version and i catch unhandled exceptions. But when i uninstall this version and install 6.0.18, the same not work.
PSS: Sorry if have some mistakes in my english, i'm not very good on it. :o
Karl
21-Jan-2009, 03:58 PM
Hi raiffhigor,
The application you attached is still compiled with EL 6.0.6
I recompiled your project using 6.0.18 and everything works fine here.
Alex
21-Jan-2009, 06:04 PM
Karl, did you checked this in D7?
I've recompiled raiffhigor's example in D2007 and D2009 with EL 6.0.18. Works fine in both cases.
Karl
21-Jan-2009, 06:21 PM
Yes, checked in Delphi 7
raiffhigor
21-Jan-2009, 07:59 PM
Sorry, but did you run the exe file?!?! I think that i compiled with the version 6.0.18 because of the effect. The button that has handled exception, el not chatch. i'll post the same example with version 6.0.6, it works.
- I'm using Delphi 7 Enterprise Build 8.1.
- I don't know if has problem, but i'm using Windows Vista Home Premium.
- In this example i'm using eurekalog 6.0.6.
Thanks for all,
Raiff Higor
raiffhigor
21-Jan-2009, 09:45 PM
Hello guys,
I did some combinations like this:
// i tested in my computer
- Windows Vista + Delphi 7 = didn't work;
// i tested in other computers
- Windows Vista + Delphi 2006 = work;
- Windows XP + Delphi 7 = work;
- Windows XP + Delphi 2006 = work;
i'll install delphi 2006 in my pc to test if it works.
thanks a lot.
Alex
22-Jan-2009, 07:30 AM
Sorry, but did you run the exe file?!?!
Yes, I've run the exe in your demo. It indeed does not work. But if I recompile it - everything starts working.
Have you tried to reinstall EL on your PC?
admin
22-Jan-2009, 08:23 AM
Hi raiffhigor,
Hello guys,
I did some combinations like this:
// i tested in my computer
- Windows Vista + Delphi 7 = didn't work;
// i tested in other computers
- Windows Vista + Delphi 2006 = work;
- Windows XP + Delphi 7 = work;
- Windows XP + Delphi 2006 = work;
i'll install delphi 2006 in my pc to test if it works.
thanks a lot.
try to do this:
1)...Close all opened Delphi/C++Builder instances;
2)...Deinstall all installed EurekaLog versions;
3)...Remove all folders containing ExceptionLog.* or ?ExceptionExpert.* files;
4)...Remove the EurekaLog folder from your Application Data folder (%AppData%)
5)...download and install the latest EurekaLog version;
6)...restart your PC.
I'm waiting to your feedback ASAP, OK? :)
Karl
22-Jan-2009, 12:29 PM
Sorry, but did you run the exe file?!?! I think that i compiled with the version 6.0.18 because of the effect. The button that has handled exception, el not chatch. i'll post the same example with version 6.0.6, it works.
- I'm using Delphi 7 Enterprise Build 8.1.
- I don't know if has problem, but i'm using Windows Vista Home Premium.
- In this example i'm using eurekalog 6.0.6.
Thanks for all,
Raiff Higor
Hi Raiff,
Looking inside the exe you can see the version of EurekaLog used in building it. The application you attached was compiled with 6.0.6. You'll notice there is no prompt for the user to enter additional information, for example, which will appear when built with the latest version.
As suggested by Fabio, try a complete uninstall and then reinstall the latest version as it looks like it's still using the old lib instead of the new one.
Unregistered
22-Jan-2009, 12:59 PM
Yes, I've run the exe in your demo. It indeed does not work. But if I recompile it - everything starts working.
Have you tried to reinstall EL on your PC?
Yes, I reinstalled the EL, uninstalling all files.
Unregistered
22-Jan-2009, 02:10 PM
Hello guys,
In my latest post, i said that i'll install delphi 2006 to test in my pc, i have installed and it works, but in delphi 7 didn't work.
- I uninstalled all EL versions;
- I Install the latest version of eurekalog (6.0.18);
- I tested my project in delphi 7 and didn't work;
- I tested my project in delphi 2006 and it work;
I'll install Delphi 7 in other pc with Vista to do the test, but my pc only works with Vista and D2006. If anyone can test it, i'll thanks a lot.
Raiff Higor.
raiffhigor
22-Jan-2009, 04:46 PM
Hello guys,
//another computer
- Windows Vista Ultimate + Delphi 7 = work
//my computer
- Windows Vista Home Premium + Delphi 7 = didn't work
if anyone have windows Vista Home Premium + delphi 7 to test, i'll thank a lot.
raiff higor.
Karl
22-Jan-2009, 05:03 PM
Hi Raiff,
Tested yesterday on vista home and delphi 7. Works fine. I'm guessing that the problem might possibly be related to permissions when installing, hence the old version being left behind.
Just a note about the two applications you posted. The first one was using the 6.0.18 dialog but the old 6.0.6 debug data was being added. The second application was using the 6.0.6 dialog and 6.0.6 debug data was being added.
raiffhigor
22-Jan-2009, 07:15 PM
Hi Karl,
Wich your sugestion. Wich folder i have to delete...?!?!? Can you send steps to do, like, folders that i have to delete, files that i have to delete, registry... something that i have to do to uninstall EurekaLog 6.0.6. You said that eurekalog dialogs are mixed 6.0.6 with 6.0.18. any sugest to eliminate it.
best regards,
Raiff Higor
Karl
23-Jan-2009, 03:12 PM
Hi Raiff,
The path that EurekaLog is using is stored in the registry at:
HKEY_CURRENT_USER\Software\EurekaLog\AppDir
The debug data that is added to your application should be taken from that folder.
The standard uninstall is:
1)...Close all opened Delphi/C++Builder instances;
2)...Deinstall all installed EurekaLog versions;
3)...Remove all folders containing ExceptionLog.* or ?ExceptionExpert.* files;
4)...Remove the EurekaLog folder from your Application Data folder (%AppData%)
5)...download and install the latest EurekaLog version;
6)...restart your PC.
Karl
23-Jan-2009, 04:35 PM
You can also determine the version from within your code using the GetEurekaLogModuleVersion (http://www.eurekalog.com/docs/index.html?geteurekalogmoduleversionfunction.html) function. It should return 6018.
raiffhigor
28-Jan-2009, 12:52 PM
Hi karl,
i used this method GetEurekaLogModuleVersion, i get 6018 but in the dialog has 6.0.6. I uninstalled my delphi7 and didn't work. I'm using in delphi 2006 and it works.....:confused: version 6018 and dialog 6.0.18... i did all steps that you wrote, and nothing happens. Another sugestion?!
best regards,
Rariff Higor
Karl
30-Jan-2009, 08:27 PM
Hi Raiff,
If it is working on another pc and working in Delphi 2006 but not in Delphi 7 on that particular machine it seems that maybe the path configuration is not set correctly for Delphi 7. It seems odd that it is picking up different versions even after uninstalling.
Could you check the library paths are correct and that the environment variables are set correctly. You could also try copying the EurekaLog dcu's into your project folder, if it works like that then there is a good chance the paths are incorrect or an old version of the libraries is still kicking about on your hard disk.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.