this is the error i got when compiling visual c++ 2010 , with ogre library."Unhandled exception at 0x552bee58 (msvcr90d.dll) in BasicTutorial05.exe: 0xC0000005: Access violation reading location 0x6766632e."
From the error, it looks like a segmentation fault. Have you tried debugging it? When the program crashes, the debugger should automatically stop and show you where you are in your code, so that you know what is causing it.
There isn't exactly much we can do with the amount of information you have given us, though.