Hello,
i have a problem with root, probably it is total stupid, but I hope somebody can help me here.
I am writing a simple data acquisition software in Visual Studio 2010 using the root framework.
For the acquired data I use TArrays, everything works nice until i try to close the program. When i delete the first TArray, the software crashes with a error: Access violation reading location 0x30b812b4.
Okay looks like a pointer went wrong.
Very strange is that exactly the same error happens for this minimal code:
#include "TArrayI.h"
#include "Riostream.h"
int main()
{
TArrayI* test= new TArrayI(100);
std::cout<<"Generate"<<endl;
delete test; //<< error happens here
std::cout<<"Delete"<<endl;
test=NULL;
return 0;
}
Does anybody know where the error could be?
And I tried the same code with the histogram class; than it works.