SEG in THtml::MakeClass()

From: Patrick Decowski (decowski@mit.edu)
Date: Mon Jun 02 1997 - 20:25:36 MEST


dear rootdevs,

when generating HTML files it seems that THtml::MakeClass() generates a
SEG when it cannot find the implementation file source (because the
source path wasn't set properly in Root.Html.SourceDir). here is the code
from THtml::MakeClass():

 ...
        Char_t *htmlFile = GetHtmlFileName( classPtr );
        if( !strncmp( htmlFile, "http://", 7 )) htmlFile = NULL;
        if( htmlFile ) {
 ...

THtml::GetHtmlFileName() returns a NULL when it can't find the file. so
the strncmp() also needs to be protected from testing a NULL pointer.

by the way, this also seems to be the reason why THtml::MakeAll() gives a
SEG - it can't find the Root source code. THtml::MakeAll() should just
loop over all classes and skip the ones it can't find the source code to.

related question: why is gHtml only initialized when one constructs a
THtml object anyway? 

		regards,

			patrick decowski.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET