Multi-thread sample - WeOnlyDo Discussion board

Multi-thread sample (General questions)

by Alvin, Friday, February 08, 2008, 23:34 (6132 days ago)

Hello,
Is the FtpDlx multi-thread safe ?
I am looking for a multi-thread sample for FtpDLX.
I cannot find any sample under VC folder.
I have followed the sample under VCATLConsoleApp
to make multi-thread, inside each thread i Create Instance for IwodFtpDLXComPtr and a new object for wFtpEvents,
every thing seem working greate except when i do
delete pwEvents; give me access violation only of the second thread.
Please help ?


Re: Multi-thread sample

by wodDamir, Saturday, February 09, 2008, 00:01 (6132 days ago) @ Alvin

Hi Alvin,

Yes, the component can be used for multi-threaded apps. Just keep it apartment threaded.

As for the problem you're experiencing with Access violation, I can't really tell what could be wrong without seeing the actual code.

If you wish, you can send us the code to [mail=techsupport@weonlydo.com]techsupport@weonlydo.com[/mail] and we'll check it out.

Regards,
Damba

Re: Multi-thread sample

by r0m1k, Tuesday, February 26, 2008, 15:02 (6115 days ago) @ wodDamir

Hi,
wodDamir, seem I too have problem with multithreaded crashing. And I send e-mail to techsuppor@weonlydo.com.
I spent two days to trying fix this bug in my own code :(

P.S. My version of component 2.8.0.408.

Thanks, Roman