WARNING - DO NOT RUN CODE WITHOUT READING FIRST- MAY CRASH YOUR PC.
I have a program that converts csv files into XML files, this process runs on its own machine which has plenty (6gb) of ram. Part of the process is to read the entire contents of the CSV file into RAM.
Typically the CSV files are no more then 20-40kb in size.
A new file type has been added to the system and it is about half a gig in size. Now I know there are better ways to handle this file, and I've already addressed that. I just wanted to give some background on HOW I found the problem.
If you create a new c# console app (vs2008 or vs2010) and paste in the code below on a 64bit Vista or Windows 7 pc, You may crash (total lock up) your PC. If you specify the processor to be x86 it runs fine...
Can someone explain this behaviour? I've tried three separate dev machines with the same results, but have no more to try.
Please take care, as the only way I have found to recover from this is to power off....