EDN Admin
Well-known member
Good Morning, Gurus !
I am seeking advice on setting breakpoints in C# code in a COMServer DLL which is called by native C++ via Interop.
I have a breakpoint set at the C++ statement which calls a C# function in the COMServer DLL, but unlike other DLLs, stepping into (i.e. F11) the statement does not take me into the DLL code. Rather, I Step Into an Interface* function in "comip.h" and
then return to the native C++ caller to continue stepping through the client code.
The thing of it is, though, that the program actually DID call the C# function .... its just that the debugger didnt show me that. How do I know that the call was made successfully ? Because the C# function correctly
displayed the string provided by the native C++ caller.
Bottom line: The call was made and the argument passed correctly, but the debugger refused to show me that call taking place. What can I do to persuade the debugger to follow that call into the DLL ?
Thanks for your help, Gurus.
View the full article
I am seeking advice on setting breakpoints in C# code in a COMServer DLL which is called by native C++ via Interop.
I have a breakpoint set at the C++ statement which calls a C# function in the COMServer DLL, but unlike other DLLs, stepping into (i.e. F11) the statement does not take me into the DLL code. Rather, I Step Into an Interface* function in "comip.h" and
then return to the native C++ caller to continue stepping through the client code.
The thing of it is, though, that the program actually DID call the C# function .... its just that the debugger didnt show me that. How do I know that the call was made successfully ? Because the C# function correctly
displayed the string provided by the native C++ caller.
Bottom line: The call was made and the argument passed correctly, but the debugger refused to show me that call taking place. What can I do to persuade the debugger to follow that call into the DLL ?
Thanks for your help, Gurus.
View the full article