Optimization in DLL Breakpoint Problems



Hello All,

I know from some research that this is a common question in Delphi
newsgroups, but I have experienced trouble finding a definitive
solution. I am a Delphi 7 developer and work in DLL's a good bit. As
such, I experience problems with breakpoints that suddenly stop
working fairly often. Among the solutions I have tried, the only one I
have seemed to get results from is turning off Optimization. The thing
that puzzles me is that I can turn off optimization, re-set the
breakpoints and they work. Then..after a single run..if I turn
optimization back on they still seem to work. Does anyone have an
explanation for this or if it is even really a solution to the problem?
.



Relevant Pages

  • Re: Is delphi a good introduction to programming?
    ... > With optimization enabled, I'm pretty sure Delphi would eliminate that ... it was Delphi 5 - things may be better now. ... >> with asm blocks - which renders it useless for inlining fast, ... Shame you can't override that restriction by telling the compiler what you'd ...
    (comp.lang.pascal.delphi.misc)
  • Re: Interface for Compiler Godegeneration Optimization Modules
    ... CodeGear do not have resources to add optimization modules to the ... then be able to help CodeGear improve the Delphi codegen. ... compiler part of the w32 delphi compiler they don't have the resources for, ... Currently i never debug apps with optimization on btw, ...
    (borland.public.delphi.language.basm)
  • Re: Why 64bit Delphi compiler from Borland may be meaningless!
    ... >> Why the big cry for a new Delphi at all? ... For example, the optimization ... > guidelines on the Intel web page state that if you are multiplying ...
    (borland.public.delphi.non-technical)
  • Re: Delphis 2006 debugging abilities are sucking again
    ... or {$OPTIMIZATION OFF} ... within your Delphi help. ... At least witin Delphi 7 these directives do exist. ...
    (alt.comp.lang.borland-delphi)
  • Re: For-to variable goes backwards
    ... If the loop significantly uses the loopvariable, the 9->0 optimization is not done, ... >>> Is there a way to switch this optimization off as long as I am ... >>> debugging my program? ... project) Delphi doesn't force a total rebuild on such switches changes. ...
    (comp.lang.pascal.borland)