Forum Discussion

dodes_po's avatar
dodes_po
Occasional Contributor
15 years ago

Visual C++ Open Application Access violation

Hi,

I'm trying trial version of TestComplete. I have C++ application which is compiled as Open Application as suggested by manual with debug info, RTTI, etc. When I then run application from VS and click at Object Browser in TC I've got Access violation reading location 0xXXXXXX. When I run the application without debugger attached (Not from VS) and refresh Object Browser in TC I see my app but WITHOUT the symbol that signals if the application is opened (Open Application).



Someone knows what could be wrong?



I'm using VS 2010, Vista 32 bit. Here is stack where the exception occurs:



>   kernel32.dll!_IsBadReadPtr@8()  + 0x3c bytes   

     kernel32.dll!_IsBadCodePtr@4()  + 0xf bytes   

     tcDelphiHook.dll!111839bf()    

     [Frames below may be incorrect and/or missing, no symbols loaded for tcDelphiHook.dll]   

     tcTextSpy.dll!1139c82d()    

     tcTextSpy.dll!1139c5f4()    

     tcTextSpy.dll!113cf72e()    

     tcTextSpy.dll!1139c995()    

     tcDelphiHook.dll!111d70ce()    

     tcDelphiHook.dll!111815e7()    

     tcDelphiHook.dll!11168c37()    

     tcDelphiHook.dll!1116603d()    

     tcDelphiHook.dll!11167904()    

     tcDelphiHook.dll!1116612b()    

     tcOpenAppHook.dll!127f807e()    

     tcOpenAppHook.dll!127f84e8()    

     tcOpenAppHook.dll!127f8190()    

     oleaut32.dll!_DispCallFunc@32()  + 0xb2 bytes   

     oleaut32.dll!CTypeInfo2::Invoke()  + 0x1b1 bytes   

     oleaut32.dll!_DispInvoke@32()  + 0x23 bytes   

     tcOpenAppHook.dll!127dde1b()    

     oleaut32.dll!_IDispatch_Invoke_Stub@48()  + 0x52 bytes   

     oleaut32.dll!_IDispatch_RemoteInvoke_Thunk@4()  + 0x5b bytes   

     rpcrt4.dll!7758fb31()    

     rpcrt4.dll!77525599()    

     rpcrt4.dll!77526d4a()    

     rpcrt4.dll!77526ccc()    

     rpcrt4.dll!775265b2()    

     rpcrt4.dll!775250ea()    

     rpcrt4.dll!7752788e()    

     rpcrt4.dll!77530573()    

     rpcrt4.dll!7753011c()    

     rpcrt4.dll!775300e3()    

     rpcrt4.dll!77530166()    

     kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes   

     ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes   

     ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes 



Thanks



Dodes