Hi I'm dynamically creating a 2D array and I'm trying to write somethin to it but I get a run-time error that memory could not be read. I use the exact same code a few lines before it and it works fine, but this one fails. Here's the code:Any ideas on what's going on and how to get rid of the propblem?Code:Vic **mtxVicValsB; mtxVicValsB = new Vic*[vars.NumScan]; for(i=0; i<vars.NumScan; i++) mtxVicValsB[i] = new Vic[VicSize3]; mtxVicValsB[0][0].Name = "name"; <-- This line gives an access violation error // and Vic is struct Vic { float Value; CString Name; };