PDA

View Full Version : Variables


Ed..
22-Sep-2008, 07:00 PM
I'm trying to use variables when sending email using the SMTP server. I'm using the following settings:

------------------------
Subject:%_ExceptModuleName% %_ExceptModuleVer% %_ExceptMsg%
Message:
%_ExceptModuleName%
%_ExceptModuleVer%
%_ExceptMsg%

%_ExceptModuleName% %_ExceptModuleVer% %_ExceptMsg%
------------------------

The resulting email is:
------------------------
Subject: splitter.exe %_ExceptModuleVer% Floating point division by zero.
Message:
splitter.exe
0.1.22.218
Floating point division by zero.

splitter.exe %_ExceptModuleVer% Floating point division by zero.
------------------------

A few things to note here regarding the %_ExceptModuleVer% variable:
1) The %_ExceptModuleVer% variable IS NOT expanded in the subject line.
2) The FIRST instance of %_ExceptModuleVer% in the message IS expanded.
3) The SECOND instance of %_ExceptModuleVer% in the message IS NOT expanded.

The third item might be caused by the EurekaLog Options dialog wordwrapping the input box to look as follows:

--------------------
%_ExceptModuleName%
%_ExceptModuleVer%
%_ExceptMsg%

%_ExceptModuleName% %
_ExceptModuleVer% %_ExceptMsg%
--------------------

I believe the same problem occurs with the %_MainModuleVer% variable.

Ed.

admin
23-Sep-2008, 08:52 AM
Hi,

I have just released the version 6.0.17 RC 3 that fixed this issue.

Test it and tell back to me your results, OK? :)

Ed..
23-Sep-2008, 11:01 PM
Will do. Where can I download 6.0.17 RC 3? I don't see it on the Download page.

Thanks.

admin
26-Sep-2008, 04:16 PM
Hi,

excuse me the URL is:

http://www.eurekalog.com/files/EurekaLog6-Trial-Beta.exe

Ed..
30-Sep-2008, 07:58 PM
That did the trick. Both %_ExceptModuleVer% and %_MainModuleVer% expand correctly - both in the subject line and in the body.

Thanks,

Ed.

admin
01-Oct-2008, 07:23 AM
Hi,

you're welcome! :)

Unregistered
07-Oct-2008, 06:22 PM
I'm also finding that %_BugReport% isn't expanded in the body of the email.

admin
07-Oct-2008, 06:34 PM
HI,

also with the last 6.0.17 RC 8 version?

Ed..
07-Oct-2008, 07:39 PM
Yes, I just checked it with 6.0.17 RC 8, and the issue is still there.

admin
08-Oct-2008, 11:06 AM
Hi,

I'm sorry but with the last release I cannot reproduce it.

Can you send to me a little source demo able to reproduced it, please?

Ed..
08-Oct-2008, 05:19 PM
The demo app I created actually works just fine. They're using the same EurekaLog options (I exported/imported the options to make sure) so I'm not sure what the difference is. I'll explore some more and let you know what I find out.

admin
08-Oct-2008, 05:43 PM
Hi,

OK, I'm waiting for.

Ed..
08-Oct-2008, 06:58 PM
Ok, I found the problem. According to http://msdn.microsoft.com/en-us/library/ms686206(VS.85).aspx: "The total size of the environment block for a process may not exceed 32,767 characters."

In my demo app the length of _BugReport is 31,877 characters so it is just able to fit within the limits. The _BugReport for the real app is 50,480 characters so the SetEnviornmentVariableA('_bugReport',...) line in ExceptionLog.SetEnvVariables fails.

admin
08-Oct-2008, 07:13 PM
Hi,

OK I understand! :)