EurekaLog newsgroups
Go Back   EurekaLog newsgroups > Support > General
Reply
 
Thread Tools Display Modes
  #1  
Old 07-Nov-2011, 08:54 AM
koen koen is offline
Junior Member
 
Join Date: Nov 2011
Posts: 2
Default Adding eurekalog data via Commandline for C++builder in Rad Studio 2007

Hi,

I am trying out Eurekalog, and have the following problem (I don't know if what I want is possible):

-In my project, eurekalog is disabled
-The project is compiled using msbuild
-After building the project, I execute emake to add eurekalog to the project:

emake --el_alter_exe"C:\full_path_to_cbproj\project.cbproj;c:\full_path_to_exe\project.exe" --el_config"c:\full_path_to_enabled_config.eof"
When doing this, the eurekalog info is not added to the project. Is this wanted behaviour? If so, how can I add eurekalog info, while in the project-file eurekalog is diabled?
Reply With Quote
  #2  
Old 07-Nov-2011, 11:21 PM
Alex Alex is offline
Support Team
 
Join Date: Jan 2009
Location: Russia
Posts: 1,378
Send a message via ICQ to Alex
Default

Hi,

Basically, there should be no restriction on your desired scenario. It's possible.

1. Is EurekaLog enabled in .eof file?
2. How do you detect that EurekaLog information is not injected? What is emake output?
3. Is ExceptionLog unit connected to project?
__________________
Best regards...

Alexander - EurekaLog Developer Team
Reply With Quote
  #3  
Old 08-Nov-2011, 07:14 AM
koen koen is offline
Junior Member
 
Join Date: Nov 2011
Posts: 2
Default

Quote:
Originally Posted by Alex View Post
1. Is EurekaLog enabled in .eof file?
Yes
Quote:
Originally Posted by Alex View Post
2. How do you detect that EurekaLog information is not injected? What is emake output?
Emake succeeds, but when an uncatched exception is thrown, the eurekalog handling is not launched. When I enable Eurekalog in the project itself, then the eurekalog handling is launched.
Quote:
Originally Posted by Alex View Post
3. Is ExceptionLog unit connected to project?
No. We have a lot of project files, and I am looking for adding eurekalog without having to change a lot. Can I add ExceptionLog to project files via the command line?
Reply With Quote
  #4  
Old 10-Nov-2011, 06:33 AM
Alex Alex is offline
Support Team
 
Join Date: Jan 2009
Location: Russia
Posts: 1,378
Send a message via ICQ to Alex
Default

Hi,

Quote:
Originally Posted by koen View Post
Emake succeeds
But that means that information was successfully added.

Quote:
Originally Posted by koen View Post
Quote:
Originally Posted by Alex View Post
3. Is ExceptionLog unit connected to project?
No.
In that case you don't have EurekaLog in your project - that's why it doesn't work

You must include ExceptionLog in your project.

Delphi and C++ Builder doesn't provide any way for altering units lists in project via command-line, so there is no way to do this via command-line. I don't know for C++ Builder, but for Delphi you can try to use conditional compilation - wrap "uses ExceptionLog" into {$IFDEF}'s.
__________________
Best regards...

Alexander - EurekaLog Developer Team
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:46 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © EurekaLab s.a.s. - VAT ID: IT05554520824