SDK Samples & OptiShow Crash/Abort

Post Reply
ThePengoose
Posts: 16
Joined: Thu Mar 18, 2010 6:19 pm

SDK Samples & OptiShow Crash/Abort

Post by ThePengoose »

I just installed the SDK and drivers. It seems that the only application that works is the Camera Library Sample. This app runs and shows a live fee however OptiShow crashes when clicking on the "OptiTrack Camera" checkbox.

I tried rebuilding the program and it compiles fine however it does the same thing. I actually have to "step into" the program when debugging because if I just do a straight "run" it launches and crashes/quits with no call stack or ways to trace the problem. I was able to finally fine the point of failure which is in winfrm.cpp in the function "void CFrameWnd::BringToTop(int nCmdShow)"

I have tried compiled and ran each of the Microsoft SDK DirectShow samples, and each of them crash in the same manner, pretty much as soon as the window initializes.

Any suggestions here?
morgan
NaturalPoint Employee
NaturalPoint Employee
Posts: 199
Joined: Tue Jun 24, 2008 2:01 pm
Location: Corvallis, OR, USA
Contact:

Re: SDK Samples & OptiShow Crash/Abort

Post by morgan »

The DirectShow SDK can be sensitive to the version of Visual Studio you are building with. Can I ask which version of VS you are using, and which version of the Windows SDK you are using for DirectShow? Also, is this on XP Vista or 7, x86 or x64?

Also, when you say the DirectShow samples also crash, do you mean like AMCAp with an OptiTrack camera? Does it crash when used with a different type of camera?

thanks
ThePengoose
Posts: 16
Joined: Thu Mar 18, 2010 6:19 pm

Re: SDK Samples & OptiShow Crash/Abort

Post by ThePengoose »

I am compiling with VS2008 on XP SP3 32-bit, I was linking in with the latest Windows SDK (think 7.1) however I noticed that I was linking with DX9 SDK which also has a version of DirectShow.

The application ran fine in Debug mode and I was using code pretty much from the Camera SDK tutorial files. Everything ran perfect. It also compiled fine in release mode but just keeps crashing on the second call to the cameras which is probably the attempt to get the camera. I say probably because when a camera is not plugged, in the app doesnt crash and continually calls AreCameraInitialized and then GetCamera(iID), which returns NULL. When a camera is attached it crashes immediately.

If I run any of the DS samples such as AMCap or PlayCap they all crash immediately after launch in the same manner. A logitech webcam works fine. The Optishow app crashes upon clicking the camera name checkbox.

In fact the only samples I could get to work were the 6-7 Camera SDK examples which were built in VS2005. I started them in VS2008 and they seemed to work fine...

Kind of at a loss.
Post Reply