   Program doesn't work after Release compilation
  Hi,what could be the problem, that when I compile using release mode in compiler, window appears and shows some text with rotating cube, but when I go to Release folder and open executable, it shows only empty window.The cube has four textures. I put them from DirectX (that's my programs name) folder to Release manually.I use Multi-threaded (/MT) runtime library.I also get some output from debug:First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.First-chance exception at 0x003f7147 in DirectX.exe: 0xC0000005: Access violation reading location 0x00000028.The thread 'Win32 Thread' (0x10ac) has exited with code 0 (0x0).The thread 'Win32 Thread' (0x1334) has exited with code 0 (0x0).'DirectX.exe': Unloaded 'C:\Windows\SysWOW64\atiumdva.dll''DirectX.exe': Unloaded 'C:\Windows\SysWOW64\atiumdag.dll'The thread 'Win32 Thread' (0x16fc) has exited with code 0 (0x0).The thread 'Win32 Thread' (0x161c) has exited with code 0 (0x0).The thread 'Win32 Thread' (0x10a4) has exited with code 0 (0x0).The program '[5080] DirectX.exe: Native' has exited with code 0 (0x0).Any ideas? Are there any ways to detect the problem manually?Thank you.   
  Probably a 'working directory' issue.Make sure you have error checking in place everywhere you're loading resources from disk so that if they can't be found for whatever reason, you'll know. I suspect that once you get that in place, you'll find that the files aren't being found when you run the executable from the desktop. (The IDE is probably setting the working directory to your project directory - or something like that - when you run the app, but when you run the app from the desktop the working directory is instead set to the parent folder of the executable.)   ;  Thank you for the reply. Silly me, forgot to add Cube.X into directory :DBut why do I get those exceptions?   ;  What does your code do if it fails to load cube.x? Does it continue on anyway, calling invalid DX function?   ;  Yes, it did called other functions, but since it was release compilation I didn't get any errors, I do get unhandled exception just after loading cube function (cube is removed from compile directory) in debug mode though. Everything works normally, but why do I get those unhandled exceptions (in show output from debug) and how should I track who is causing them? Or should I just don't mind them?EDIT: I'm creating this app in windows 7 (using DirectX 9), but I can't make it work on XP. Is it because my windows are 64 bits? Or maybe something else? If I recall correctly, it worked before with other program I made...[Edited by - Marusu on May 3, 2010 12:05:40 PM];  While compiling release version, I use Multi Threaded /MT runtime library on windows 7 64-bit. The problem is, it doesn't work on XP SP3 32 bit, what might be wrong? When it is started it just crashes.   