DSPRelated.com
Forums

dm642lib (EVM642 board), use in multithread environment?

Started by krahvogl July 2, 2007
Dear group,

to anyone who has used DM642 on a PCI card and accessed it from a
Windows PC using dm642_lib (from ValleyTech, part of EVM642 board):
Did you use dm642_lib in a multithread environment? If yes - how?

In my application, the DM642-access is implemented in a Win32-dll.
Several Windows application use this dll to access the DM642 in
parallel. I implemented ressource protection (Mutex...) in my dll but
I am unable to use the dm642_lib functions from several processes.

In the first instance of the dll everything is ok, a call of DM642open
returns a valid DM642-handle. In the second instance, the DM642open
call returns no handle (it returns 0).

When I use the DM642-handle the DM642open call has returned in the
first instance, I got a 'Windows access violation'.

How did you use dm642_lib in order to make it running in a multithread
environment?

best regards,

Thomas