Hi Rooters,
I got a strange error when tried to use MySQL
Database and TTree in the same interactive session
on Windows.
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 3.02/03 5 November 2001 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
Compiled for win32.
CINT/ROOT C/C++ Interpreter version 5.15.17, Oct 25 2001
root [0] s1=TSQLServer::Connect("mysql://mycomp/mydata","uname","password");
root [1] s1
(class TSQLServer*)0x13d6768
root [2] TFile Fout("calibr.root","UPDATE")
<CustomReAlloc2>: passed oldsize 64, should be 393225
Fatal in <CustomReAlloc2>: unreasonable size (393225)
aborting
Warning in <TWinNTSystem::StackTrace>: this method must be overridden!
Error: C++ exception caught FILE:E:\Temp\Daniel\13 LINE:1
*** Interpreter error recovered ***
The main code includes only the next text and files
of TMySQL classes
#include "TROOT.h"
#include "TRint.h"
TROOT root("rint", "The ROOT Interactive Interface");
int main(int argc, char **argv)
{
TRint *app = new TRint("App",&argc,argv,0,0);
app->Run();
return 0;
}
Code works without problem separately with database
and TTree but what is a problem when I use both classes?
Andrei Daniel
----------------------------------------------
Andrei Daniel
FLNR, JINR, Dubna 141980 Russia
e-mail: daniel@jinr.ru
tel: 7 (09621) 64568 fax: 7 (09621) 65083
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET