Thread safe dll

Everything else that doesn't fall into one of the other PB categories.
RSrole
User
User
Posts: 35
Joined: Fri Apr 29, 2022 8:27 pm

Thread safe dll

Post 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
RSrole
User
User
Posts: 35
Joined: Fri Apr 29, 2022 8:27 pm

Re: Thread safe dll

Post 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.
Post Reply