Multi-threaded

Ruben Thijssen <[email protected]> Fri, 11 Jun 2010 14:06:34 +0200
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Hi there,

A small question about libmagic. I am creating a c# wrapper and when I run the application single threaded libmagic doesn't have a problem with it. But when I turn to multithreaded I get AccessViolation exceptions. This exception occurs because the magic_t pointer in all threads point to the same address. What am I doing wrong? Or is libcurl not threadsafe?

Thanks in advance,
Ruben.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo