Re: [libxml++] delete access violation



Are you under windows ?

Normally, on unix, it does not cause problem to have a new/delete in any combination of exe/dll.

 

Laurent Marzullo
New Convergence Program
Core Solution Delivery & Industrialization 
Tel:  +33 (0) 1 44 44 55 54 
Site: Losserand - Office n° 1059

lmarzullo externe orange-ftgroup com


De : libxmlplusplus-general-bounces lists sourceforge net [mailto:libxmlplusplus-general-bounces lists sourceforge net] De la part de Fabian Jacquet
Envoyé : vendredi 22 juin 2007 14:05
À : libxmlplusplus-general lists sourceforge net
Objet : Re: [libxml++] delete access violation

 

It seams to be a context problem.
If I add a method "Create" in the dll which returns a pointer to "Document", I can delete it in the exe.
So I MUST do the new in the dll context.

Is there a solution to avoid this? Maybe a compilation option to allow the "new" in the exe context, or use of DLLExport, ...

I'm not a very good c++ developer and those dll concept are outside my understanding.
But I'm interesting to discover ;-)

2007/6/21, Fabian Jacquet < fabian jacquet gmail com>:

Hi,

Is it normal I have an access violation error when I delete an XML document?

xmlpp::Document* d;
d = new xmlpp::Document();
delete d;

 

*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration.
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]