This project is read-only.

unsafe code error

Jun 9, 2012 at 2:08 AM

When I added some unsafe code(public static unsafe void) and enabled unsafe code, Visual Studio 2008 says that a IOException was unhandled, and Cosmos.iso  is being used by another process. The unsafe code is a new VGAScreen, and a new memory reader/writer.

I used *(byte*)index = val to write to the memory, and return *(byte*)index to read it. Can anybody help?

Jun 9, 2012 at 2:30 PM
On 6/8/2012 9:08 PM, jpal wrote:
> When I added some unsafe code(public static unsafe void) and enabled
> unsafe code, Visual Studio 2008 says that a IOException was unhandled,
> and Cosmos.iso is being used by another process. The unsafe code is a
> new VGAScreen, and a new memory reader/writer.
>
> I used *(byte*)index = val to write to the memory, and return
> *(byte*)index to read it. Can anybody help?

These two issues are unrelated.
Jun 9, 2012 at 3:24 PM

The iso was mounted. But *(byte*)(8*1024*1024) = 0xFF;return *(byte*)(8*1024*1024) does not return 255

Jun 11, 2012 at 7:52 AM

Why are you using Visual Studio 2008? The latest version requires Visual Studio 2010.