I have the following code (fragment below) that worked *perfectly* for the past 8 months. Short of removing it and generating a lot of work for me in the next 48 hours, time I do not have, I need suggestions for debugging this.
hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
// Create instance of engine COM server.
hr = CoCreateInstance(CLSID_EngineData, NULL, CLSCTX_INPROC_SERVER,
IID_IEngineData, (void**) &m_pIEngineData);
Some system specifics:
Target device is an x86 cpu running Windows CE.net 4.1.
I have multiple custom activeX controls in this project, all apartment threaded.
I have a COM dll that has not changed in many months. Code fragment above loads this COM object.
threading is apartment as well.
Execution comes to this code and executes the CoInitializeEx and proceeds to the CoCreateInstance. Attempting to execute the CoCreateInstance (in debug) I receive a dialog: "User breakpoint called from code at 0x1dc6fa46." At this point I'm stuck in assembly code, the call never returns and I have no error code.
Any ideas how to go about diagnosing this? My current thoughts are that I #$% something up on my target device or on my development laptop, but without an error code, I don't know what. I've re-registered everything, so short of just deleting the code (and avoiding the problem), I'm stuck.
This issue is critical as it has brought my progress to a standstill, hence the high point value. I'll throw in some donuts as well.