Hack Forums
[C#] Error with running forms on a console application (Vanilla Rat) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Error with running forms on a console application (Vanilla Rat) (/showthread.php?tid=5961454)



Error with running forms on a console application (Vanilla Rat) - VelvetCoding - Apr 17, 2019

While I am having success with the release of Vanilla Rat, a new issue has appeared that involves using forms on consoles. I have gotten the chat function on my RAT to work, however there is an issue with it. Here is how to reproduce this error:
1. Download the release from the GitHub page (since I can't post links, just search VanillaRat on GitHub to find the repo)
2. Build a client and open the chat
3. Close the chat
4. Open either hardware usage viewer, or remote desktop viewer.
An system error should appear saying "A new guard page for the stack could not be created.", the application then crashes.

I figure this is an issue with how I setup threading, however, I can not find anything on this issue. Any ideas? (I will make sure to add you to contributors section on GitHub)
🤝


RE: Error with running forms on a console application (Vanilla Rat) - SIM-3991524 - Apr 17, 2019

1. In the solution explorer, right click VanillaRatStub and select Properties
2. Set 'Output type:' to 'Windows Application'
3. Change 'Debug' to 'Release'
4. Build > Rebuild Solution
5. copy the stub to the rat's dir
Code
cp VanillaRatStub\bin\Release\VanillaRatStub.exe VanillaRat\bin\Release
6. Start the VanillaRat project

No console window will pop-up no