omion
3rd April 2008, 09:53
I'm writing a program that will access multiple parts of one AVS file. Each thread has its own "AVIStreamOpenFromFile" call, and since there is no shared data, I figured that using a single-threaded DLL should work fine. That appears to not be the case, though...
Whenever I use the official single-threaded DLL, the program crashes after a short time. The multi-threaded DLL (from MT) seems to work fine, though. (I'm using the VfW interface, although the direct C-interface had a similar problem...)
Is there any reason that this shouldn't work? Surely, I can access the same DLL from multiple processes at the same time, so why shouldn't I be able to use it multiple times in the same process?
The other possibility is that, since I'm writing my own custom translation to the OCaml language, that code may be doing weird things. I suppose I just want to know if what I'm trying to do should be possible with the standard library.
Whenever I use the official single-threaded DLL, the program crashes after a short time. The multi-threaded DLL (from MT) seems to work fine, though. (I'm using the VfW interface, although the direct C-interface had a similar problem...)
Is there any reason that this shouldn't work? Surely, I can access the same DLL from multiple processes at the same time, so why shouldn't I be able to use it multiple times in the same process?
The other possibility is that, since I'm writing my own custom translation to the OCaml language, that code may be doing weird things. I suppose I just want to know if what I'm trying to do should be possible with the standard library.