473,327 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

VC++, Windbg and appl verifier

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?

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

/Tjalve

Nov 17 '05 #1
2 2503
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...b;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


Nov 17 '05 #2
Great thank you!

"Oleg Starodumov" wrote:
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...b;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



Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Pola | last post by:
Please Help I am using VC++ in win 2000 In my appl (Win32 project) I want to control the close operation of the apl (for example if somebody will try to close appl from the "Windows Task Manager")...
14
by: mich | last post by:
Hi I am trying to use Windbg with SOS.dll on VS 2003 by following the article "SOS:It's Not Just an ABBA Song Anymore" at http://msdn.microsoft.com/msdnmag/issues/03/06/Bugslaye I tried the...
0
by: Vijay Chegu | last post by:
Hi I am using vc++ .net 2003 ide with Feb 2003 platform sdk to build 64bit application. I want to use vc++ to debug the app on 64bit machine. As we do not have 64bit VC++, I would like to...
0
by: + Kennedy Kok + | last post by:
I ran my C# application under Application Verifier 2.50 with the test for Handles checked. My application fails - and application verifier reports that that i am passing an invalid handle. The...
6
by: Alpha | last post by:
Hi, I'm fixing a bug in an application and need to step thru the appl to find where it's occuring. The main project includs 33 other projects each having a .resx file in it. When I step through it...
1
by: tin | last post by:
hi, i need to cache data in memory for a web appl, which takes up to 1 GB ram. and i don't want it to load everytime the appl restart (changing other code files/replacing other dll etc). and i...
1
by: conckrish | last post by:
Hi All, Can anyone tell me how to give the input(object address) to !objsize <address> command in WinDbg .. I have a list of object addresses in a file which is stored in local drive.. How to...
1
by: agneya | last post by:
Hi this is krishna I have two download servers . If one server is busy or not find then I have to connect alternate download server. already i have example code using this we can connect download...
5
by: Zootal | last post by:
I have some c code that I would like to compile with visual studio, and retain c compatibility. IOW, converting it to c++ is not an option. Is there a way to configure the project to be compatible...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.