View Full Version : Incorrect parsing dpr file. EurekaLog 6.0.20
Andrey N.
07-Aug-2009, 01:50 PM
When dpr file is not quite simple and uses a compiler directive, the procedure of the module EBaseModule.pas responsible for adding ExceptionLog mistakenly adds not there. See examle.
Depending on the directives of the compiler compiles the program or dll or exe and as shown in the code already contains ExceptionLog, but still adds EurekaLog "Uses ExceptionLog;" and does so correctly.
If it possible to disable the modification of source code?
{$IFDEF ComplerProgramm}
program prog; //work test
{$ELSE}
library prog;
{$ENDIF}
uses
FastMM4,
{$IFDEF DebugVersion}ExceptionLog,{$ENDIF}
Alex
07-Aug-2009, 02:55 PM
Hi,
No, that is not possible, but I think that there can be a solution if we use compiler assistance. We can try to solve this issue.
I'll keep you updated.
Kevin G. McCoy
07-Aug-2009, 03:50 PM
Andrey,
If you are using a recent Delphi version, then you can have multiple
DPRs in a program group in the IDE. I don't remember if D7 can do
project groups, but I am pretty sure >= D2005 can.
Make one DPR with settings for making a DLL, another for your
stand-alone EXE.
I do this a lot with IntraWeb programs that make a web server DLL and
also a stand-alone EXE test web server.
If you do a "build" of the IDE group, both projects are built, and you
get a fresh EXE and DLL. You can also just compile the active project to make just the DLL or EXE.
That way you don't need $IFDEFs
Best regards,
Kevin G. McCoy
Andrey N. wrote:
When dpr file is not quite simple and uses a compiler directive, the procedure of the module EBaseModule.pas responsible for adding ExceptionLog mistakenly adds not there. See examle.
Depending on the directives of the compiler compiles the program or dll or exe and as shown in the code already contains ExceptionLog, but still adds EurekaLog "Uses ExceptionLog;" and does so correctly.
If it possible to disable the modification of source code?
{$IFDEF ComplerProgramm}
program prog; //work test {$ELSE} library prog;
{$ENDIF}
uses
FastMM4,
{$IFDEF DebugVersion}ExceptionLog,{$ENDIF}
Alex
28-Sep-2009, 06:32 PM
Hi,
Kevin, thanks again on valuable information!
Andrey, were you able to workaround this issue?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.