Hey Zhimin,

2008/8/29 zhimin song <[EMAIL PROTECTED]>:
>          I found a resource waste when using something like Attachments(
> examples/composer/AttachmentEdit),
> that is , if the user closes the viewer after uploading files, but he really
> just want to test, not to "send a
> mail", I think AttachmentEdit::~AttachmentEdit() could not do unlink in this
> situation, so it need a flag to
> test the user action, and then unlink the tmp also.
>       Right?

I don't see the problem, though. There is a flag (taken_) that is used
to keep track of whether the uploaded spool file should be deleted. By
default, it is false, and the file is deleted in the destructor. It is
set to true when you retrieve the Attachment using the attachment()
method.

In your case, it would be deleted from the destructor ?

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to