Hello,

 Xavier, if you're still reading this, I've got a problem with threading: I
can't open my Junk folder with threading enabled any more, the program crashes
in CopyTree(). The call stack is unhelpful as it happens deep inside recursive
calls to CopyTree() and I even suspect that the stack could be exhausted,
although the numbers don't quite add up: 1Mb of stack should be enough for a
tree which can't be more than 10000 level deep (there are about 11000 messages
in the folder).

 Anyhow, I've decided that instead of rewriting CopyTree() in a non-recursive
way I'd rather get rid of it at all. Indeed, the idea of copying an O(N)
amount of data (where N == number of messages) doesn't appeal to me as I'd
like Mahogany to be scaleable. So I now allocate THREADNODEs everywhere with
cclient fs_get() function which allows me to avoid copying completely.

 Unfortunately, now the program crashes in mail_free_threadnode() which is
almost exactly the same as CopyTree()... I'm probably going to rewrite it in a
non recursive way but in the meanwhile I just wwanted to ask if you have any
idea about what's going on here.

 Thanks!
VZ



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to