I came across with a strange problem.
In the console application I created TH1D object like
TH1D *d1 = new TH1D(“d1”,"",200,-1.,1.);
fill it in the loop and tried to save in the open ROOT file
d1->Write();
In the ROOT 5.10.00 I got the error without any message.
In the ROOT 5.11.06 I got the error with the next message
CustomReAlloc2 passed oldsize 64, Should be 524299
Fatal in : unreasonable size <524299>
What is it mean?
I work with Windows XP+SP2 and Microsoft Visual Studio 7.1
Could you send the shortest possible RUNNING script reproducing this problem?
Are you running the standard root/root.exe?
or is it your own application? In thsi case are you linking with libNew?
I use own application. libNew was not linked. The part of code that generates the error is here
In the last test variant the external loops were commented.
The full code is attached to this message.
The list of linked libraries are here also . Some of them are not necessary but I copy this line from the old project and did not edit it.
If access to MySql database is changed on the simple reading from the file then code works at Windows XP. But it is not an answer. In this case the change could be done without problem but in other cases I must read data from the database. Also why code reads from database and works on the LINUX? In both cases the code read data from the same database MySql 5.022, which works at Windows XP.
There are only two visible differences at the Windows it was necessary to translate TMySQLServer, TMySQLResult and TMySQLRow classes. At the LINUX I translated all ROOT codes as it is described in the documents.
One can simulate access to the database witout problem. The used table had 3 columns that are detector number and two angles (Theta and Phi). The number of rows and detector numbers must be less then 111.