--- "Jason E. Stewart" <[EMAIL PROTECTED]> wrote: > "Rhys Black" <[EMAIL PROTECTED]> writes: > > > char *p = s.transcode(); > > target << p; > > return target; > > delete [] p; > > } > > > > I copied this code from the DOMPrint example. The > > error seems to be in deleting variable p. I think > the > > problem is that variable p does not need to be > > deleted, seeing as how it was not new-ed onto the > > stack. > > Not true, transcode() allocates memory and it is up > to the caller to > free it. > > jas. ah - thanks!
I'll look into the code for transcode(), but my compiler BCB5 throws an error message at run time that interrupts execution at the line deleting pointer p. When that line is deleted, there is no problem. Any thoughts? ~Rhys Black __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
