Page 1 of 1

Thread safe dll

Posted: Mon May 09, 2022 7:25 pm
by RSrole
I've written some code to use LibVlc as a back end for a video player. I've got the compiler set to Thread Safe Executable and all runs well. LibVlc requires that. But when I compile as a dll and call exported functions from C#, there are some functions that hang!

So the question is: When compiling as a dll, am is it thread safe? If not, how do I make that happen.

TIA,
Russ

Re: Thread safe dll

Posted: Mon May 09, 2022 8:49 pm
by RSrole
So I discovered that the hang was dependent on which clip I was loading. It doesn't seem to matter if it's the purebasic exe, but in the dll it does. So probably not a thread safe thing at all.