Berin,

> Seen that one too :>.
> 
>  From memory it's something to do with MFC - if you define 
> something as 
> being MFC (and it creates stdafx.??) but you don't link in the MFC 
> libraries, or you don't join in MFC using the shared 
> libraries (been a 
> while, so apologies if that sounded confused)
Yes, you're right. MFC *have to* be linked as shared library if
"Multithreaded DLL" option selected. I prefer static MFC link, because
of smaller deployment binaries size.

However, I've built my app with "Multithreaded DLL" option and still
same errors persists. My app crashes (exe diseapear from the screen,
try/catch block doesn't help) on this line:

delete parser; //delete Xerces

The same thing is when I use Janitor to delete Xerces. I've found only
few XML documents that "causes" this behavior, and they does not contain
anything special (no special characters, size only 10K...). I don't have
any problems with most of other XML documents.

I've found very interesting that since I switced to "Multithreaded DLL"
(/MD) compiler option (from "Multithreaded" - /MT), even signing of some
files (that worked fine before) does not work now. Before, only
verification failed.

I have never belived that one could have such problems. I'm loosing
faith that I'll find solution (what crashes my app?).

> 1.  I had had forgotten about the Janitor and deleted the parser 
> instance previously in the code.
> 
> 2.  When I had deleted something the parser owned, and thus when the 
> parser was deleted it tried to re-delete whatever I had already done.
I've checked and I'm not doing anything of these.

Best regards,
Milan


Reply via email to