I'm trying to read float values from a text file into a two dimensional array while counting the entries in the x and y directions. What I've got at the moment is
All of it compiles fine, but at the commented line, I get an unhandled exception. VC++ tells me "Unhandled exception at 0x102ddd6f (msvcr100d.dll) in CreateImagev2.exe: 0xC0000005: Access violation writing location 0x00000000."