System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=mscorlib
StackTrace:
at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
at System.Runtime.InteropServices.Marshal.Copy(IntPtr source, Byte[] destination, Int32 startIndex, Int32 length)
at BlitzBot.BoardScraper.OutputColor(Bitmap bm) in C:\Users\zol\Documents\Visual Studio 2010\Projects\C#\BlitzBot\BlitzBot\BoardScraper.cs:line 69
at BlitzBot.BoardScraper.InitializeBitmap() in C:\Users\zol\Documents\Visual Studio 2010\Projects\C#\BlitzBot\BlitzBot\BoardScraper.cs:line 39
at BlitzBot.BoardScraper..ctor() in C:\Users\zol\Documents\Visual Studio 2010\Projects\C#\BlitzBot\BlitzBot\BoardScraper.cs:line 24
at BlitzBot.MainForm..ctor() in C:\Users\zol\Documents\Visual Studio 2010\Projects\C#\BlitzBot\BlitzBot\MainForm.cs:line 20
at BlitzBot.Program.Main() in C:\Users\zol\Documents\Visual Studio 2010\Projects\C#\BlitzBot\BlitzBot\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
prog.cs(1,14): error CS0116: A namespace can only contain types and namespace declarations
Compilation failed: 1 error(s), 0 warnings