Error after calling System.Diagnostics.Process.GetCurrentProcess().StartTime

  • Thread starter Thread starter Matthew Lock
  • Start date Start date
M

Matthew Lock

Hello,
I get some strange behaviour after calling a method on a third party
library when I call:
System.Diagnostics.Process.GetCurrentProcess().StartTime

If I run the following code it works as expected:

try
{
MapInfo.Engine.Session.Current.Catalog.OpenTable(@"C:
\MapApplication\Data\ecw.tab");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}

But if I call:

System.Diagnostics.Process
p=System.Diagnostics.Process.GetCurrentProcess();
string time= p.StartTime.ToShortTimeString();

before the above code I get 2 errors:

Form1: MXWinForm.exe - Unable To Locate Component

This application has failed to start because ncsecwex.dll was not
found. Re-installing the application may fix this problem.


Why would making a call to
System.Diagnostics.Process.GetCurrentProcess().StartTime cause
internal errors to be thrown in my third party library?

Regards,
Matthew Lock
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top