-----BEGIN PGP SIGNED MESSAGE-----

Helo,

On Thursday 11 March 2004 18:36, Vladimir Marek wrote:
> Tels wrote:

> The object is message sent over network. Actual sending does C++ library
> which has own thread for sending the message, and which frees the object
> when it is sent. When I pass the object to the sending function, perl
> does not know that message (created in perl by 'new') is allready
> destroyed in C++ library. On the other hand, When I create message in
> perl, it does not automatically mean it will be sent over the network,
> so sometimes is calling 'delete' needed.

Ok, I guess you mean you cannot stop the other thread from freeing the 
object and so sometimes it is freed, and sometimes not.

You solution looks optimal then :)

Cheers,

Tels


- -- 
 Signed on Thu Mar 11 18:54:31 2004 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Now, admittedly, it's critical software. This is the 'let's go kill
 people' software." -- Mark A. Welsh III

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBQFCn2XcLPEOTuEwVAQHxewf+L9wYNZGLnEWww+643o6Oe8vjqFovJkwT
jgVE61cSTqjwO9M6+vzghKaQhXlIv45Myv+RVnrX4MOHiMlmCQOexQAcB6sBMsTX
nN7X8MO0q3zN3A/c3vCgmiYT1Z5dSuCWxTUD2rJfDFZ1NCcC0ZLNwSz3jfCtG7o4
rJSaeMJfelxqNRQ0iE5zuOm2VhqIxDupI1TCtbaukyIrBaEdWQzR1cFNhnZ1+/Tj
TyZaQTw1axOvacCAbYfUXCKPPlT+qbK1Zh+WIiEtn1uVOriZsRuMCcDs+7d3/fn7
vtatrCUkCGTJTdsNgnYRW5wGZsNtdEYyGbPaczdebFDBD3xNHpGNig==
=1h/L
-----END PGP SIGNATURE-----

Reply via email to