Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access violation when target is a managed console application #7

Open
GoogleCodeExporter opened this issue Dec 17, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

When the target is a console application developed in for example C#, an 
AccessViolationException occurs almost instantly.

Original issue reported on code.google.com by [email protected] on 12 Nov 2009 at 3:14

@GoogleCodeExporter
Copy link
Author

This exception only occurs if the wrapper console window is not hidden on 
process 
creation.
In the svn code the window is always hidden.

For testing, comment out the following line:
line279 of VirtualizedProcess.cs
-> ProcessHelper.SetWindowState(_process.MainWindowHandle, 
WindowShowStyle.Hide);
And set the ProcessStartInfo's CreateNoWindow property to false in line 249
(lines as seen in revision 162)

If the window is hidden then the wrapper process' cpu usage is 0%, while no 
output 
can be detected (messages, exceptions, ...)

Original comment by [email protected] on 12 Nov 2009 at 5:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant