View Full Version : demoapp (C++) crashing

June 11, 2003, 12:30:25
I am working with the DFG/1394-1 Video to Firewire device and the accompanying C++ code. I am trying to modify the code of the demoapp to (among other things) save the images as jpgs.

However, the real problem occurs when the program tries to open a file dialog (such as when selecting to save an image). The program hangs and eventually Windows has to force quit. This occurs not only with the modified code, but also with the .exe files included on the product CD.

Has this issue been encountered before and is there a solution?

Stefan Geissler
June 12, 2003, 08:31:19
If the classlib is used together with an 3rd party ActiveX Control like the calendar control, the application will not start and the log shows a RPC_E_CHANGED_`MOD`E ($80010106) error.

There is a workaround available. Insert in one of the cpp files (i.e the app file) following lines of code:

struct static_init
static_init() { CoUninitialize(); OleInitialize( 0 ); }

#pragma init_seg( user )
static_init sys_init;

This is all to to.