I received the following exception when calling GetRunningTasks:
"The function attempted to use a name that is reserved for use by another transaction. (Exception from HRESULT: 0x80071A90)"
Here is the call stack:
at Microsoft.Win32.TaskScheduler.V2Interop.TaskSchedulerClass.GetRunningTasks(Int32 flags)
at Microsoft.Win32.TaskScheduler.TaskService.GetRunningTasks(Boolean includeHidden) in TaskService.cs:line 113
Section of code (line 113 is the return statement):
```
public RunningTaskCollection GetRunningTasks(bool includeHidden)
{
return v2 ? new RunningTaskCollection(this, v2TaskService.GetRunningTasks(includeHidden ? 1 : 0)) : new RunningTaskCollection(this);
}
```
The next time I called GetRunningTasks it succeeded but I'm concerned this exception is going to happen again.
Thanks,
Michael DePouw
Comments: ** Comment from web user: spottedmahn **
"The function attempted to use a name that is reserved for use by another transaction. (Exception from HRESULT: 0x80071A90)"
Here is the call stack:
at Microsoft.Win32.TaskScheduler.V2Interop.TaskSchedulerClass.GetRunningTasks(Int32 flags)
at Microsoft.Win32.TaskScheduler.TaskService.GetRunningTasks(Boolean includeHidden) in TaskService.cs:line 113
Section of code (line 113 is the return statement):
```
public RunningTaskCollection GetRunningTasks(bool includeHidden)
{
return v2 ? new RunningTaskCollection(this, v2TaskService.GetRunningTasks(includeHidden ? 1 : 0)) : new RunningTaskCollection(this);
}
```
The next time I called GetRunningTasks it succeeded but I'm concerned this exception is going to happen again.
Thanks,
Michael DePouw
Comments: ** Comment from web user: spottedmahn **
Thanks @dahall! That's great news. Thanks for following up on the matter.
Regards,
Mike DePouw