K
Kerry Brown
Using Microsoft Visual C# 2005 Express [2.0.50215]
With XP Pro
Console.Clear();
used as per the the sample at
http://msdn2.microsoft.com/library/209kyy3d(en-us,vs.80).aspx
is throwing an exception :
System.IO.IOException was unhandled
Message="The handle is invalid.\r\n"
Source="mscorlib"
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean&
succeeded)
at System.Console.GetBufferInfo()
at System.Console.Clear()
at TestClear.Program.Main(String[] args) in
C:\VCSharp\kwb_testing\TestClear\TestClear\Program.cs:line 34
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
... Can anyone throw some light on this ??
Regards
Kerry
With XP Pro
Console.Clear();
used as per the the sample at
http://msdn2.microsoft.com/library/209kyy3d(en-us,vs.80).aspx
is throwing an exception :
System.IO.IOException was unhandled
Message="The handle is invalid.\r\n"
Source="mscorlib"
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean&
succeeded)
at System.Console.GetBufferInfo()
at System.Console.Clear()
at TestClear.Program.Main(String[] args) in
C:\VCSharp\kwb_testing\TestClear\TestClear\Program.cs:line 34
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
... Can anyone throw some light on this ??
Regards
Kerry