Getting COM Exception in Console Application

Feb 28, 2014 at 3:43 AM
Edited Feb 28, 2014 at 5:58 AM
NOTE: My problems seem to be deeper than this COM Exception. I'll make a separate post to handle the real issue. Sorry for the inconvenience, this post can be deleted.




I am writing an application to detect user inactivity for X amount of time and, if they are inactive, run another program that will start rendering their queue of CAD projects.

When I run the test application (my test, not the provided demo) the DLL throws a COM Exception and does not function. Also, the mouse begins sliding all over the place with an extreme delay.

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in Microsoft.VisualStudio.HostingProcess.Utilities.dll

EDIT: Though no changes were made to the code, I can't recreate the COM Exception. Other problems though, such as input freezing upon execution and no user input being detected, and a delayed mouse persist. If anyone has a fix for this, please let me know! Thanks in advance.