Hi Sang-Eon, On Mon, 7 May 2001 14:00:00 +0900 "Sang-Eon Kim" <sekim@kt.co.kr> wrote concerning ": [ROOT] question on automatically generation of html doc": > Hi all, > I'm a new user of the root. > ... > gamza% cat htmlex.C > { > ... > gHtml.MakeClass("TBRIK"); > ... > root [0] > Processing htmlex.C... > Error: illegal pointer to class object gHtml 0x0 534 FILE:htmlex.C LINE:15 > *** Interpreter error recovered *** You need to instanise a THtml object: root [0] THtml* gHtml = new THtml; root [1] .x htmlex.C That's what "illegal pointer to class object gHtml 0x0" means. The pointer gHtml doesn't point to anything, that is, it's value is 0 (zero), which is not a valid address on the stack. Try with a fresh ROOT root [0] gHtml (class THtml*)0x0 root [1] THtml* gHtml = new THtml; root [2] gHtml (class THtml*)0x87b1488 (the actual number after line 2 may be different). After line 2, gHtml points to the THml object at the address 0x87b1488, which is valid. Yours, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:44 MET