JMF, DirectShow and COM in Windows 2000

I have a DirectShow-based capture device for the Java Media Framework. My capture device loads a DLL and acceses it through the JNI. This DLL instantiates various DirectShow COM objects. Everything use to work fine...until I had to reinstall my system.

I have reinstalled Windows 2000 from scratch, reinstalled the JDK and Jbuilder 5. Now, on the very first occurance of CoCreateInstance, the call is made but the process never returns. This occurs regardless of what JDK I'm using, 1.3 or the 1.4 beta. I have reinstalled the JDK, JBuilder and the Java Media Framework several times--no luck.

Java is loading the DLL, but freezes on the first CoCreateInstance call.

This used to work. My DLL still works flawlesssly from C. What happened? Why has it stopped working from the JNI? Have I missed something in the system set up? Any clues?

[871 byte] By [jfrankparnel] at [2007-9-26 2:10:07]
# 1
Well, I figured it out for myself. Apparently, the DLL was not getting registered properly. Using regsvr32 under Windows registered the DLL and now it works again. Funny thing though, why did it work under C and not from Java? Whatever...
jfrankparnel at 2007-6-29 9:00:37 > top of Java-index,Security,Cryptography...