Revised from previous question
Note:
- Pass BSTR variable to COM method, HRESULT return is
8000FFFF
- Previous calls with interface pointer, was successful: HRESULT is
0
- Execution, inside Visual Studio succeeds, outside fails - release and debug
Illustration:
BSTR raw_sim_Open = SysAllocString (L"c:\\example.S8");
hresult = pis8->raw_Open (raw_sim_Open); //0x8000FFFF returned
Edit - WinDbg:
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=003a5be8 ebx=00009000 ecx=003a0208 edx=77606e00 esi=0012ec90 edi=00191b14
eip=003a0283 esp=0012ec34 ebp=0012ecb4 iopl=0 nv up ei ng nz ac pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010296
Missing image name, possible paged-out or corrupt data.
Missing image name, possible paged-out or corrupt data.
<Unloaded_PI32.dll>+0x3a0282:
003a0283 0080023a0088 add byte ptr [eax-77FFC5FEh],al ds:0023:883a95ea=??