Re: VC++, Windbg and appl verifier

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Oleg Starodumov (oleg_staro_at_hotmail.com)
Date: 10/22/04


Date: Fri, 22 Oct 2004 17:57:00 +0300


> I have a heap problem in my com exe server.
> When i use windbg as the compiler in application verifier is windbg started
> and i can press 'g' and the server is running unitil i get the exception.
>
> When i'm using VC.net i get an excpetion in the client which starts the
> server! I have not added the client to appl verifier, so how come that VC is
> launched with the client.exe?
>

Do you mean that the client crashes with an exception before the server
has started under debugger?

If yes, debug the client and see where the exception is thrown.
It can be a bug in the client.

If the server cannot start under debugger, make sure that you enter the full path
to Devenv.exe followed by /debugexe in "Debugger" field in AppVerifier options
for the server executable (better if there are no spaces in the path).

If the server successfully starts under VS.NET debugger, and the client's call to the server
returns 0x80010105 error code, then you should configure VS.NET debugger
(the one that is launched to debug the server) to stop on first chance access violation
exceptions (Debug | Exceptions | Win32 Exceptions | Access violation, select
"When the exception is thrown" - "Break into debugger").

This is because by default the debugger does not stop on first chance access violations,
and the exception thrown by AppVerifier/PageHeap is handled by COM stub
and passed to the client as an error code.

Another way to achieve the same result is described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;198623

> And is it possible to load symbols after VC has started, i.e. like windbg
> .reload?
>

Yes, if symbols are not yet loaded. In Modules window, select the module
and R-Click + Reload Symbols.

Regards,
Oleg



Relevant Pages

  • return from server only works for built-in types
    ... But when I call _r.GetStatisticsthe client fails with the exception shown ... GetStatistics fails when client and server is on different networks. ... Win32 Version: 2.0.50727.832 ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: How to detect if client or server are not responding
    ... you are asking if raising an exception could cause a COM call not ... responds to the server crashing. ... client implemented in an ActiveX plugin DLL running in a browser. ... If a COM service crashes in the middle of a call, it may take up to 6 ...
    (microsoft.public.win32.programmer.ole)
  • Re: JAX-WS: Wie Exceptions behandeln?
    ... SoapFault gemacht aber die Exception auch von "Java" ins Logfile ... Der Server oder der Client? ... Exceptions werden doch nur vom Server erzeugt. ...
    (de.comp.lang.java)
  • WCF communication error - whats the cause?
    ... I have a very simple client - server application using the WCF. ... Communications exception thrown whilst trying to write to remote service. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Passing Referernce Parameter to Remote Component
    ... So you have an MBR object that takes another MBR object from the ... client to server. ... So what type of exception are you getting? ...
    (microsoft.public.dotnet.framework.remoting)