RE: [ROOT] rootcint crashes with access violation on Windows

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Jul 28 2003 - 17:04:19 MEST


Hi Pere,

What happens is that tmpnam is used to generate a temporary file name.  For
some reasons and windows it return \something. which means that it is in the
root directory of the current drive.
It also happens that you do not have write access to this root directory.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Pere Mato Vila
Sent: Monday, July 28, 2003 9:28 AM
To: Roottalk
Subject: [ROOT] rootcint crashes with access violation on Windows


Dear rooters,

  I have had crashes of rootcint time to time but today I was able to
reproduce it just by changing the current directory. I am using version
v3.05.06 on windows.

E:\cern.ch\user\m\mato\w0\GAUDI_v12r1\GaudiRootDb\v9r2\dict> rootcint -f
..\dict\TBlobDict.cpp -c ..
\src\TBlob.h ..\src\LinkDef.h
Error: rootcint: failed to open \s1gc. in main
And it pops-up a window saying: The instruction at"0x7c014432"
referenced memory at "0x0000000C". The memory could not be "read"

If I change my current directory using another drive letter but pointing
to the exact same place in the remote file system (AFS) the command
works and produces the required files.

H:\w0\GAUDI_v12r1\GaudiRootDb\v9r2\cmt> rootcint -f
..\dict\TBlobDict.cpp -c ..\src\TBlob.h ..\src\L
inkDef.h

  The failing execution produces the good TBlobDict.h but the
TBlobDict.cpp contains only the CINT part and not the ROOT part.

  The only difference between the two executions is the length of the
current directory path as far I can see.


------------------------------------------------------------
Pere Mato  CERN, EP Division, CH 1211 Geneva 23, Switzerland
           e-mail: Pere.Mato@cern.ch    tel: +41 22 76 78696
           fax:  +41 22 76 79425        gsm: +41 79 20 10855



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET