Debugger shows wrong line in .tli file
I'm having some trouble calling a generated COM method.
When I step into what should be the Start() method in a .tli file, it
steps into the Action() method of the same .tli file. Therefore, either
the debugger is confused, or the code is not linked up properly.
Anyway, whatever method that is called is returning an error so I am
trying to figure out why.
Has anyone experienced the Visual .NET debugger stepping into the wrong
location of a .tli file?
The code example below shows what I am seeing.
Debugging steps:
(file.cpp)
m_spSystem->Start(FALSE)
....step in...
(line 389, comip.h)
Interface* operator->() const
return m_pInterface; // pointer not NULL
....step in...
(line 40, Actions.tli)
inline HRESULT _Collection::Action ( const _variant_t & Index ) {
HRESULT _hr = raw_Action(Index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr; <-- STEPS RIGHT TO HERE
}
<-- NO SOURCE TO STEP, SO I STEP OUT AND RETURNS W/ERROR
However, the debugger should be stepping into the following method:
(line 260, Action.tli)
inline HRESULT DSystemEvents::Start ( VARIANT_BOOL State ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY,
NULL,
}
Any help appreciated!
Thanks,
Chris