Exception in Delphi 7 IDE when application executes Abort
Exception in Delphi 7 IDE when application executes Abort
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...
- 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...
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...
http://madshi.net/madCollectionBeta.exe (2.7h beta 7)
Thanks...
The same problem for beta
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
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
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.
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.
-
- Posts: 1
- Joined: Wed Apr 05, 2006 11:48 am
- Contact:
Business Help
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
Re: Business Help
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.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