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
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