R
Rob R. Ainscough
Situation:
..NET 2.0 based Windows Service
Have a timer event in the service
Private WithEvents ServiceTimer As New System.Timers.Timer(30000)
Private Sub Check_Updates(ByVal sender As Object, _
ByVal e As System.Timers.ElapsedEventArgs)
Handles ServiceTimer.Elapsed
Shell("C:\WINDOWS\SYSTEM32\NOTEPAD.EXE", AppWinStyle.MaximizedFocus,
True, -1)
End Sub
Start the service, no errors are triggered and in 30 seconds NOTEPAD.EXE
appears in Task Manager Processes tab but not in Applications tab and there
is NOTHING displayed on my screen anywhere.
I've tried using Diagnostic.Process approach also, same results. Also tried
waitonexit, timeout values, and nothing will permit my shelled process
(NOTEPAD) to show it's interface yet it appears as a running process in Task
Manager?
Any suggestion as to this pretty serious flaw in .NET 2.0? Someone care to
duplicate this and confirm my results?
Rob
..NET 2.0 based Windows Service
Have a timer event in the service
Private WithEvents ServiceTimer As New System.Timers.Timer(30000)
Private Sub Check_Updates(ByVal sender As Object, _
ByVal e As System.Timers.ElapsedEventArgs)
Handles ServiceTimer.Elapsed
Shell("C:\WINDOWS\SYSTEM32\NOTEPAD.EXE", AppWinStyle.MaximizedFocus,
True, -1)
End Sub
Start the service, no errors are triggered and in 30 seconds NOTEPAD.EXE
appears in Task Manager Processes tab but not in Applications tab and there
is NOTHING displayed on my screen anywhere.
I've tried using Diagnostic.Process approach also, same results. Also tried
waitonexit, timeout values, and nothing will permit my shelled process
(NOTEPAD) to show it's interface yet it appears as a running process in Task
Manager?
Any suggestion as to this pretty serious flaw in .NET 2.0? Someone care to
duplicate this and confirm my results?
Rob