(1) start visual studio 2010, then create a regular and empty c++ project (project name “test”) using ROOT histogram class (TH1F).
(2) add a c++ file, “main.cpp”, for example,
after succesful compile and link, run this project, we have
" an unhandled exception at 0x0f58f50c (libCore.dll) in test4.exe: 0xC0000005: An access violation occurred while reading location 0x00000000"
I don’t have any Visual Studio 2010 since quite some time, but there should be no problem, as long as you build with the same compiler/linker flags than ROOT itself…