Make sure you're linking your release build against the release build of
the parser, and your debug build against the debug version of the parser.
The debug version of the parse .lib will have a "D" as the last character
of the name, i.e. xerces-c_1D.lib.

Also, just for completeness, it's:

   delete [] temp;

It's doesn't matter in VC6, but it could matter in the future, and it
certainly matters on other platforms.

Dave



                                                                                       
                  
                      "Joe Marini"                                                     
                  
                      <joe@presidiosof         To:      <[EMAIL PROTECTED]>  
                  
                      tware.com>               cc:      (bcc: David N 
Bertoni/CAM/Lotus)                 
                                               Subject: Re: transcode() issue still 
happening            
                      10/18/2001 07:41                                                 
                  
                      PM                                                               
                  
                      Please respond                                                   
                  
                      to xerces-c-dev                                                  
                  
                                                                                       
                  
                                                                                       
                  



For some reason, it still happens.

I can get it to reproduce with just a few lines:

   DOMString nodeValue("some value");
   char *temp = nodeValue.transcode();
   delete temp;

I triple-checked my build settings, and according to the VC project
settings
dialog, I'm linking to the Multithreaded DLL for the runtime.

Joe

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 3:43 PM
Subject: Re: transcode() issue still happening


>
> You should double-check your settings for all configurations, then do a
> clean re-build, just to be sure.  Unless you're corrupting the pointer
> value in your code, the switch to the mutlithreaded DLL run-times should
> fix the problem.
>
> Dave
>
>
>
>
>                     "Joe Marini"
>                     <joe@presidiosof        To:
<[EMAIL PROTECTED]>
>                     tware.com>              cc:     (bcc: David N
Bertoni/CAM/Lotus)
>                                             Subject:     transcode()
issue
still happening
>                     10/18/2001 05:09
>                     PM
>                     Please respond
>                     to xerces-c-dev
>
>
>
>
>
> After reading the FAQ, I double-checked my project settings to make sure
> I'm
> linking against the Multithreaded DLL version of the C runtime, but I'm
> still getting assertions when trying to delete the string pointer
returned
> by DOMString.transcode().
>
> Is this a known issue?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to