Exception in Delphi 7 IDE when application executes Abort

contains all delphi packages mentioned below
Post Reply
PavKa
Posts: 12
Joined: Wed May 05, 2004 5:46 pm
Contact:

Exception in Delphi 7 IDE when application executes Abort

Post by PavKa »

Enviroment
- Delphi 7 (with update)
- MadExcept 2.7g

Problem:
An exception happens when application is running and executes Abort procedure.

To Reproduce:
1. Create simple one form project;
2. Drop Button on the form create click eventhandler and type Abort in it;
3. Turn on Madexcept (handle exeptions, append map file)
4. Uncheck "Optimization" in Project->Compiler options
5. Build and run Application, click the button.
6. There should be an exception (Project PPPPPP.exe raised exception class EAccessViolation with message 'Access violation at address 00425FB8 in module 'PPPPPP.exe'. Read of address 00000008'.)

If "Optimization" is checked then there is no exception

Please advise...
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Doesn't happen for me with newest beta build. Could you please retest with that build?

http://madshi.net/madCollectionBeta.exe (2.7h beta 7)

Thanks...
smike
Posts: 1
Joined: Fri Apr 22, 2005 3:40 pm

The same problem for beta

Post by smike »

Exception is reproducible:
I have installed:
- Delphi 7;
- madBasic, madDisAsm, madExcept from madCollectionBeta (2.7h beta 7)
- Windows XP Professional SP2

Way to reproduce:
- Create the simplest project - one Form and one Button on it
- Place only one line ‘Abort;’ to Button1Click notify event.
- Put checkmark on ‘handle exceptions’ line for ‘madExcept settings …’ menu item of the Project menu;
- Remove checkmark form the line ‘Code generation/Optimization’ on Project Options Form – Compiler Tab;
- Build the Projects;
- Run project from the Delphi;
- Press the Button1 - Delphi will stop with Exception:

Project Test1.exe raised exception class EAccessViolation with message ‘Access Violation at address 0042290A in module ‘Test1.exe’. Read of address 00000008.’ Process stopped. Use Step or Run to continue.

The Exception can be eliminated with:
- excluding the madExcept from the project;
- turning on Compiler Optimization option;
- Using own MyAbort method the exact copy of Abort method from the SysUtils.pas
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I've now tried exactly that, but on my PC D7 doesn't complain. There's no exception for me.

Are you using D7 UpdatePack 1? I'm running D7 without UpdatePack 1. Maybe that's the difference?
PavKa
Posts: 12
Joined: Wed May 05, 2004 5:46 pm
Contact:

Post by PavKa »

Yes, we use Delphi 7 with update pack 1 and this is our work enviroment.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Finally I was able to reproduce the problem with madExcept 2.7g. But the problem definately went away for me with madExcept 2.7h beta 7.

Are you totally sure that the problem is still there with 2.7h beta 7? Could you please recheck this? Please make sure that you recompile the whole project. Please also make sure that no outdated madExcept.pas/dcu or madExcept_.bpl files are lying around on your harddisk, anywhere.

Thank you.
PavKa
Posts: 12
Joined: Wed May 05, 2004 5:46 pm
Contact:

Post by PavKa »

This annoying exception has gone after proper installattion of 2.7h beta.

Thank you
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Ok, thanks for the feedback.
johndoe1960
Posts: 1
Joined: Wed Apr 05, 2006 11:48 am
Contact:

Business Help

Post by johndoe1960 »

I am newbie and asking for advice. I applied as recruiter manager at JobQueen, they promise to pay $87,000.00/year. I would like to know how can I get quality sales reps in China. So if you want to help me out please contact me direct at my email: kimwongshu@yahoo.com
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Business Help

Post by madshi »

johndoe1960 wrote:I am newbie and asking for advice. I applied as recruiter manager at JobQueen, they promise to pay $87,000.00/year. I would like to know how can I get quality sales reps in China. So if you want to help me out please contact me direct at my email: kimwongshu@yahoo.com
The guys you'll find at this forum are programmers, and I think most programmers are rather bad sales reps. So I fear this is not the ideal place to ask.
Post Reply