Hi, I'm learning DCOM and I need to debug a class that I have created, how can I do this?
+1
A:
Write a simplest client that does CoInitialize(), then CoCreateInstance().
Insert delays (call to Sleep() for example) into DllGetClassObject() of your server - with ATL you have the full source.
After the client calls CoCreateInstance() attach the debugger to the server host process.
sharptooth
2009-03-30 14:58:54
+1
A:
I think DebugBreak could be of great help for this. You just need to add a conditional compilation line in the debug build to allow execution of this line and the debugger will start. The other way is attaching the debugger to the process and set a breakpoint in the process..
Eugenio Miró
2009-03-30 18:26:49
try this tool too ATLTraceTool : http://msdn.microsoft.com/en-us/library/khbh432d(VS.80).aspx
lsalamon
2009-03-31 13:00:53