Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- try
- {
- StackOverflow();
- //AccessViolation();
- }
- catch
- {
- Console.WriteLine("Caught.");
- }
- }
- private static void StackOverflow()
- {
- StackOverflow();
- }
- private static unsafe void AccessViolation()
- {
- byte b = *(byte*) (8762765876);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement