Re: Multi-threaded

Ruben Thijssen <[email protected]> Mon, 14 Jun 2010 13:03:07 +0200
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
From: Ruben Thijssen
Sent: vrijdag 11 juni 2010 14:07
To: [email protected]
Subject: Multi-threaded

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.

Hi there,

I found the solution to my problem. The error was not in magiclib.

Thanks,
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