Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Access violation in threadScanAll

Moderators: kris

Posted: 12/17/08 10:59:21 Modified: 12/17/08 11:08:23

Hello,

I'm using Tango in multithreaded environment together FMOD. At some point I get access violation in thread_ScanAll. I suppose it is called by the GC. My guess is it fails to cope with the threads created by FMOD, i.e threads created in C. Could this be the case or any other ideas?

Here is what ddbg says:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at _thread_scanAll (0x00449370) thread(3232) ->us #0 _thread_scanAll () from Thread

Thanks, bobef

Author Message

Posted: 12/17/08 17:06:50

there is supposedly a function to add C threads, somewhere in the Thread module

Posted: 12/18/08 10:36:35

Ah, thanks. I guess it is thread_attachThis. It works when I use it.

Posted: 12/18/08 17:34:45

good stuff