(apparently this message didn't go through the mailing list ... I'm sending it again. Sorry if it get's twice somehow)
Dear ROOT developers,
A very simple question. I have a pice of code that I'm trying to compile with MVS 8 SP1 (Microsoft Visual Studio C++). And it is surprinsingly not working. Here the code ( very simple, please read it :) ):
#include "stdafx.h"
#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>
int _tmain(int argc, _TCHAR* argv[])
{
int *b = new int[1024];
TFile * myfile = new TFile("c:\\fileTest.root", "RECREATE"); TTree * mytree = new TTree("MPXTree","Medi/TimePix data"); Int_t i1 = 0; mytree->Branch("i1", &i1, "i1/I"); mytree->Fill(); mytree->Write(); myfile->Close(); return 0;
and, at run time, it crashes saying:
<CustomReAlloc2>: passed oldsize 64, should be 524299 Fatal in <CustomReAlloc2>: unreasonable size (524299) aborting
very weird ... I'm not able to allocate anything before my calls to ROOT objects. The same behavior is obtained when you use debug libraries or release libraries. I'm using this ROOT version for linux
Windows/NT/w2000 with VC++ 8.0, compiled with debug info, version 5.16/00 (good old tar file) (92.6 MB).
thanks a lot :)
John Idarraga
UMontreal
Received on Wed Oct 10 2007 - 13:47:46 CEST
This archive was generated by hypermail 2.2.0 : Wed Oct 10 2007 - 17:50:01 CEST