473,618 Members | 3,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2527
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
2576
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") I want to know in my appl what message to expect from "Task Manager", when user will try to close my appl from the "Windows Task Manager". what message should I get in my appl thank you Pola
14
7979
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 ".load sos" and the command extension of SOS comes up when typing "!help". I assumed that SOS was loaded; however when issuing the command "!Threads". I got the following response "No valid SOS data table found" How can I solve this problem.
0
1518
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 know how to configure VC++ IDE to do remote debugging. I can install 64bit windbg and do debugging on the local machin, as
0
1578
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 problem is that this call is made to a 3rd party library (Quicktime) and the code looks right. Can someone explain in detail what this error is (so that I can have some clue as what work arounds might be possible)? Assuming there is no work around,...
6
1623
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 would give me message that it can't show me codes because only assembly codes are available. Is there any good article on how to debug something like this? Also, I've only being working with C#.net for 3 months and am still not very familiar...
1
1201
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 also want to avoid doing any deserialization/mashalling etc. basically i just like the speed of retrieving cached data from memory from the same appl domain, but i don't want to reload the data when the appl is restarted? is that possible? ...
1
2866
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 give this address to input of !objsize <addr> command in WinDbg ??? and also how to redirect the output of !objsize command to a file... Is there any scipt available in Windbg to do this task??? Plz help me....
1
1683
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 server . plz any body help me CString strURL; CString strPort; CString strPath; CString strAffiliateID; mapURLs.Lookup(_T("DownloadServer"),strURL); mapURLs.Lookup(_T("DownloadServerPort"),strPort);
5
1415
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 with c code? I can compile the code just fine with gcc, so I believe the code is ok, but I get numerous errors with visual studio. I'm using Visual Studio 2005
0
8150
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8650
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8593
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7124
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6098
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2582
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.