473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error after calling System.Diagnostics.Process.GetCurrentProcess().Sta rtTime

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

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().Sta rtTime cause
internal errors to be thrown in my third party library?

Regards,
Matthew Lock

Feb 21 '07 #1
1 4962
You should probably take this up with the vendor of the 3rd party control.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Matthew Lock" wrote:
Hello,
I get some strange behaviour after calling a method on a third party
library when I call:
System.Diagnostics.Process.GetCurrentProcess().Sta rtTime

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().Sta rtTime cause
internal errors to be thrown in my third party library?

Regards,
Matthew Lock

Feb 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan McGuffin | last post by:
I am trying to develop some vb.net code that will will store 1 or more processes in an array of processes, then loop through the array determining when each one has exited. Upon each one exiting, I...
4
by: ron | last post by:
Hi, I have class object that i serialize using the System.Xml.Serialization class. Intermittently the object is not getting serialized correctly, using System.Xml.Serialization classes....
0
by: awsok fakry via .NET 247 | last post by:
Hi All, I am trying to open a new instance of IE at the start of my C# application. When user press Start Recording... My applicaiton will close that specific instance of IE and Open a fresh IE,...
1
by: TD | last post by:
I'm using iText in an app to create and print documents to network printers. I launch acrobat via the command line as shown on this page... ...
8
by: trialproduct2004 | last post by:
Hi all. I am having application in vb.net. I am having module and one form. From module i am opening form. On main itself i am checking whether another instance of application is running or...
2
by: shivaranjani.s.adimulam | last post by:
Hi, I have a .NET application where I want to restore the previos application if it is already running and in minimized state. The code I added is working fine in the case if the previous...
1
by: VJ | last post by:
I get the below error, System.InvalidOperationException: Process performance counter is disabled, so the requested operation cannot be performed. at...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
2
by: Macca | last post by:
Hi, I would like to get the memory usage of the process my app is running in so i can monitor levels of memory during runtime. I've been told I can use the System.Diagnostics.Process class to do...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.