PDA

View Full Version : V6.5.6 using sndSendInSeparatedThread with esmEmailClient makes app crash


binkle
12-Feb-2010, 09:21 AM
Hi
when using sndSendInSeparatedThread with esmEmailClient my application crashes/exits without giving any error on sending the report:
static class InstallProgram
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(String[] args)
{
EurekaLogSystem.ExceptionHandler.Activate();
//Jam.Utils.Eurekalog.ApplyStandardSettings(Jam.Util s.Constants.AppVarExchangeServerToolbox + Jam.Utils.Constants.EMailAppendix);

EurekaLogOptions options = EurekaLogSystem.ExceptionHandler.CurrentEurekaLogO ptions;
options.EMailSendMode = EmailSendMode.esmEmailClient;
options.EMailAddresses = "est@jam-software.de";

//set common send options
options.CommonSendOptions |= CommonSendOptions.sndSendInSeparatedThread;



string text = null;
text.Clone();//invoke exception for testing

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
InstallForm eSTInstForm = new InstallForm();
eSTInstForm.DeInstallation = args.Length > 0;
Application.Run(eSTInstForm);
}
}

Any thoughts on this?

Boro
12-Feb-2010, 12:59 PM
Hi,

Can you, please, send a test project for this?
The Main() code along isn't enough for me to reproduce the behavior.
Thanks.

binkle
12-Feb-2010, 01:15 PM
Hi,
sorry but you should be able to reproduce this with any windows forms app inserting the code
EurekaLogSystem.ExceptionHandler.Activate();

EurekaLogOptions options = EurekaLogSystem.ExceptionHandler.CurrentEurekaLogO ptions;
options.EMailSendMode = EmailSendMode.esmEmailClient;
options.EMailAddresses = "est@jam-software.de";

//set common send options
options.CommonSendOptions |= CommonSendOptions.sndSendInSeparatedThread;

string text = null;
text.Clone();//invoke exception for testing
into the main method whereas the first line of this code is already created by Eurekalog when enabling it for the project.

Harry

Boro
12-Feb-2010, 01:25 PM
Hi Harry,

I did try it with a winforms app, but I did not get any exceptions.
So, besides the code, I also need the EurekaLog options and project properties in order to be able to simulate the behavior you're having problems with.
The easiest and most complete way to do that is by you sendig a test project.

binkle
12-Feb-2010, 02:01 PM
Hi,
I created a test project for you.
The Project uses the default eurekalog settings, not changes made I did only activate Eurekalog for the project and added the line of code to test.
(I don't like to set setting using the GUI)

I included the methods for testing bug the bug from:http://news.eurekalog.com/showthread.php?t=2615
But as I wrote in my last post there it seems to be the same bug like in this thread.

You can also reproduce the bug of http://news.eurekalog.com/showthread.php?t=2613

With this test project.

Boro
12-Feb-2010, 06:58 PM
Hi,

The bug has been confirmed and fixed.
The fix will be available in the next release.

Thanks for pointing this out.

Biljana
22-Jul-2011, 09:08 AM
Duplicate thread (http://news.eurekalog.com/showthread.php?t=2615), thread is closed.