I should be more specific. I mean the app crashes on the line:
Dim op As System.Diagnostics.Process =
System.Diagnostics.Process.GetCurrentProcess()
//BUG line below
MsgBox(op.Threads.Count)
You haven't provided enough information for anyone to ascertain what the
problem might be. Is there an exception thrown? What does it say. Is there
anything in the event log? What output are you expecting that you are not
getting?
> I should be more specific. I mean the app crashes on the line:
>
[quoted text clipped - 33 lines]
> > MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
> > http://www.kema.at
Michael Giagnocavo [MVP] - 16 Oct 2003 18:09 GMT
In the dotnet.framework group he posted a full exception / stack trace.
-mike
MVP
> You haven't provided enough information for anyone to ascertain what the
> problem might be. Is there an exception thrown? What does it say. Is there
[quoted text clipped - 42 lines]
> > > MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
> > > http://www.kema.at
Shashank Welankar - 17 Oct 2003 07:02 GMT
This is the error we get...Its a windows application
Its on .NET version 1.1.4322.573, Windows 2000 Server machine
Hardware is
2 x 1GHz CPU
1GB RAM
2 x 18 GB HD
Windows 2000 server sp4 with current HotFixes >>MSSQL 2000 SP3a with
current HotFixes
System.InvalidOperationException: Couldn''t get process information from
remote machine. ---> System.ArgumentOutOfRangeException: Ticks must be
between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks
at System.DateTime..ctor(Int64 ticks)
at System.DateTime.Subtract(TimeSpan value)
at System.Diagnostics.NtProcessManager.GetThreadInfo(PERF_OBJECT_TYPE
type, IntPtr instancePtr, PERF_COUNTER_DEFINITION[] counters)
at
System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLi
b
library, Int32 processIndex, Int32 threadIndex, IntPtr dataBlockPtr)
at
System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLi
b
library)
--- End of inner exception stack trace ---
at
System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLi
b
library)
at System.Diagnostics.NtProcessManager.GetProcessInfos(String
machineName, Boolean isRemoteMachine)
at System.Diagnostics.ProcessManager.GetProcessInfos(String
machineName)
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_Threads()
This is the code
Dim op As System.Diagnostics.Process =
System.Diagnostics.Process.GetCurrentProcess()
MsgBox(op.Threads.Count)
Thanks,
Shashank
> You haven't provided enough information for anyone to ascertain what the
> problem might be. Is there an exception thrown? What does it say. Is there
[quoted text clipped - 42 lines]
> > > MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
> > > http://www.kema.at