magick++ Image declaration

christophe milard <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
Hi,

I am looking into the imagemagick c++ API.
Magick++ documentation recommends automatic Image variables (i.e. allocated
on the
stack, via declaration of local variables) as the prefered way of creating
Image objects, instead of
explicit allocation (via 'new').

I am planning the use threads and to pass these object between the threads.
the "preference" above worries me...
I would like to pass images pointers, put them in linked queues, sort them
......

for instance if thread A want to pass an image to thread B and then A
terminates (and B proceeds the image), I see a problem if the image should
be on A's stack

How should these kind of things be done?

Any know axemples?

Thanks for helping,

/Christophe milard.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.