views:

39

answers:

1

I want to write a console application in Visual Studio 2008 that inputs a 3.5 GB array (file), and just adds one to each element of the array. I have it configured for release and x64. I set up a project using the CLR console application project type. I running on Vista and have 8 GB of memory.

When I run the program, it is giving me this error:

An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in does_it_work_2.exe

Additional information: External component has thrown an exception.

Have I configured anything wrong, why is it not working?

A: 

Because Visual Studio is a 32 bit application ;) Debugger = 32 bit, IIRC, not 64 bit ;)

TomTom
I've launched the executable directly, and now it works for a while, then says it has stopped working. I'm not getting the error message anymore, but it's just shutting down after about a minute or so.
robert
Then start debugging (add error handlers ad see what happens there).
TomTom
How do I debug the 64 bit app, given the debugger is 32 bit?
robert
One look into google let me after 10 seconds to that page: http://msdn.microsoft.com/en-us/library/ms184681.aspx
TomTom