Are you under windows ?
Normally, on unix, it does not cause problem to have a new/delete in any
combination of exe/dll=2E
=20
Laurent Marzullo
New Convergence Program
Core Solution Delivery & Industrialization=20
Tel: +33 (0) 1 44 44 55 54=20
Site: Losserand - Office n=B0 1059
lmarzullo=2Eexterne@orange-ftgroup=2Ecom
_____ =20
De : libxmlplusplus-general-bounces@lists=2Esourceforge=2Enet
[mailto:libxmlplusplus-general-bounces@lists=2Esourceforge=2Enet] De la=
part de
Fabian Jacquet
Envoy=E9 : vendredi 22 juin 2007 14:05
=C0 : libxmlplusplus-general@lists=2Esourceforge=2Enet
Objet : Re: [libxml++] delete access violation
=20
It seams to be a context problem=2E
If I add a method "Create" in the dll which returns a pointer to=
"Document",
I can delete it in the exe=2E
So I MUST do the new in the dll context=2E
Is there a solution to avoid this? Maybe a compilation option to allow the
"new" in the exe context, or use of DLLExport, =2E=2E=2E=20
I'm not a very good c++ developer and those dll concept are outside my
understanding=2E
But I'm interesting to discover ;-)
2007/6/21, Fabian Jacquet < fabian=2Ejacquet@gmail=2Ecom
<mailto:fabian=2Ejacquet@gmail=2Ecom> >:
Hi,
Is it normal I have an access violation error when I delete an XML=
document?
xmlpp::Document* d;
d =3D new xmlpp::Document();
delete d;
=20
*********************************
This message and any attachments (the "message") are confidential and=
intended solely for the addressees=2E=20
Any unauthorised use or dissemination is prohibited=2E
Messages are susceptible to alteration=2E=20
France Telecom Group shall not be liable for the message if altered,=
changed or falsified=2E
If you are not the intended addressee of this message, please cancel it=
immediately and inform the sender=2E
******************************** |