Hi Klass Thanks for your comments, however it appears that neither CCP4_PARSER_MAXLINELENGTH nor CCP4_PARSER_MAXFILENAMELENGTH are actually used in the CCP4 parser code now. I think that they were left over from the initial implementation (I will clear them out for future releases), and my understanding is that the core parser library now allocates sufficient memory to accommodate the lines that are passed in from the calling subprogram.
The problem with long file names has been reported to us at CCP4 independently and is being investigated, but I don't know the current status. So I'll ask the appropriate person to get in touch with you. Best wishes Peter Klaas Decanniere wrote: > For a project with lots of data collected and therefore long file names to > remember which is which, we keep running into > >>>>>>> CCP4 library signal ccp4_parser:Line is longer than allocated > length, so > truncated (Success) > raised in ccp4_parser <<<<<< > > and then a bit later on: > > has failed with error message > Last system error message: Permission denied > Scala: Open failed: File: ROGUEPLOT > > which is the bit that got truncated. > > Can I just change this in $CCP4/include/ccp4/ccp4_parser.h and > recompile? > > I currently have > > #define CCP4_PARSER_MAXLINELENGTH 200 > #define CCP4_PARSER_MAXFILENAMELENGTH 200 > > Is there any reason no to set these to, say, 32768? > > thanks for your help, > > Klaas Decanniere -- ___________________________________________________ Peter J Briggs, [EMAIL PROTECTED] Tel: +44 1925 603826 CCP4, [EMAIL PROTECTED] Fax: +44 1925 603825 http://www.ccp4.ac.uk/ Daresbury Laboratory, Daresbury, Warrington WA4 4AD