473,698 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

_asm { int 3 } doesnt work with VS2005 and VS6 on same machine

I have a TSP (Telephony Service Provider) that I've developed with VS6.
It's a C/C++ DLL that gets loaded by a svchost and accessed by TAPI based
applications. My problem is that on the Windows XP machine that I have the
application on I can no longer break into the debugger using an "_asm { int
3 }". This code worked until I installed Visual Studio .Net. The system
I'm running this on has both Visual Studio 6 and VS 2005 running on it. I
have some registry scripts that I use to switch my default debugger between
the 2 when necessary. I have other machines with just VS 6 on them that
this technique works fine on, but a problem I'm trying to debug is on this
dual environment machine.

Anyone have any suggestions ?

Dave

Aug 8 '06 #1
5 2048
Hi Dave,
>My problem is that on the Windows XP machine that I have
the application on I can no longer break into the debugger
using an "_asm { int 3 }". This code worked until I installed
Visual Studio .Net. The system I'm running this on has both
Visual Studio 6 and VS 2005 running on it.
_asm { int 3 } should works well with VS2005 on a XP machine. I have
performed some tests on this issue, my test machine also installed the VC6
and VS2003, there is no problem on my side.

In order to dig into this problem, would you please provide more
information on this issue?

Generally, the _asm { int 3 } will cause an unhandled Win32 exception, does
that exception occur while you test the program? If the exception occurred,
the system will prompt a dialog window for you to choose the debugger to
debug the program? Do these behaviors happen in your machine? If you not,
what happens on your side?

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 9 '06 #2
Gary Chang,

Let me give you a few more details. The software I'm debugging is a TSP
(Telephony Service Provider). A TSP is a DLL that resides within the
context of a svchost. The particular svchost that my DLL resides in, is in
the SYSTEM user context. This mean's I will either need to reconfigure my
XP to run the telephony services within the logged in user context or not
use the asm int 3 technique at all anymore and just attach the debugger to
the svchost that the telephony services are running under. My guess is that
the asm int 3 is popping up the debugger exception to the system user
login. Is this correct ?

Thanks
Dave

""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:up******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi Dave,
My problem is that on the Windows XP machine that I have
the application on I can no longer break into the debugger
using an "_asm { int 3 }". This code worked until I installed
Visual Studio .Net. The system I'm running this on has both
Visual Studio 6 and VS 2005 running on it.

_asm { int 3 } should works well with VS2005 on a XP machine. I have
performed some tests on this issue, my test machine also installed the VC6
and VS2003, there is no problem on my side.

In order to dig into this problem, would you please provide more
information on this issue?

Generally, the _asm { int 3 } will cause an unhandled Win32 exception,
does
that exception occur while you test the program? If the exception
occurred,
the system will prompt a dialog window for you to choose the debugger to
debug the program? Do these behaviors happen in your machine? If you not,
what happens on your side?

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.
>

Aug 9 '06 #3
Hi Dave,
>My guess is that the asm int 3 is popping up the debugger
exception to the system user login. Is this correct ?
yes, you are right. I am afraid I missed the point that your DLL is loaded
by a service process. In this scenario, if no debugger has already been
attached to that process, the INT 3 will throw an unhandled Win32 exception
and invode the debugger of the system logon session, which is invisible to
the current user.

I suggest you can attach your VC6 or VS2003 debugger to that service
process before the INT 3 occurs, it should work.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 10 '06 #4
Gary,

Already figured that out, but thanks for your response.

Dave

""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:CA******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi Dave,
My guess is that the asm int 3 is popping up the debugger
exception to the system user login. Is this correct ?

yes, you are right. I am afraid I missed the point that your DLL is loaded
by a service process. In this scenario, if no debugger has already been
attached to that process, the INT 3 will throw an unhandled Win32
exception
and invode the debugger of the system logon session, which is invisible to
the current user.

I suggest you can attach your VC6 or VS2003 debugger to that service
process before the INT 3 occurs, it should work.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.
>

Aug 10 '06 #5
You are very welcome, Dave. :)

Good Luck

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 11 '06 #6

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

Similar topics

3
4837
by: Saurabh Aggrawal | last post by:
Hi, if (iter->m_name.compare(pstrName) == 0) { // Provide our object. *ppunkItem = iter->m_pUnknown; // Addref our object... iter->m_pUnknown->AddRef(); break; }
3
1793
by: Darrin | last post by:
Hello, I see that VS2005 and the new framework 2.0 is out to the public now. Wondering about some things. When you install the new framework 2.0 can a person still use visual studio 2003 or do you need to use Visual Studio 2005? If you can use the new framework 2.0 with VS2003 are there any benifits?
9
1694
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used mscorfg.msc to set permissions as follows: Machine | Code Groups | All_Code | LocalIntranetZone | Copy of DataShare file://\\Jgsvr\DataShare\*.
3
5049
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from the network share. It loads in VS2005 fine, and I can edit and save code changes etc, but when I try and Build the solution, I get the following error... An error occured loading a configuration file: Failed to start monitoring
2
11427
by: rcp | last post by:
Hi all, I've read all posts from all existing threads and none of them worked to solve my problem, although its exactly the same. I'll try to explain my case and see if a kind soul could help me out: I've a win32 service in C# on a client machine A, which accesses a WS (C#) on a server machine B (hosted on an IIS) Case 1: If I try to add the WSDL for the WS through VS2005, the 'Discovery
5
9620
by: MichiMichi | last post by:
When using Server.MapPath on IIS 5 on my localhost everything works well. All of the following commands are executed without any error Response.Write(Server.MapPath("/app_test") & "<br>") Response.Write(Server.MapPath("app_test") & "<br>") Response.Write(Server.MapPath("~") & "<br>") However, running the first statement on via the internal Visual Studio 2005 Server I receive an error for
1
1247
by: RavindraB | last post by:
Hi, We have a c++ web application which is built in VS2002. after buit we port all exe and dll to IIS on other machine its is working fine. Now we migrated application to VS2005. The DLL’s and Exe’s (build in VS 2005 environment) are working fine on local Win 2K server, which has VS2005 installed. The .Net Framework 2.0 is available on this machine. When we put same Dll’s and Exe’s on other Win2k server machine (which has NOT VS2005...
2
1928
by: =?Utf-8?B?UmljaA==?= | last post by:
On my development machine where I have Visual Studio 2005 loaded, I have an app that uses the Report control. I can view data in report format with the Report control -- the data renders OK in the Report control. My problem is in rendering the report from the rdlc file for printing to a line printer. Following the example from MSDN Help at http://msdn2.microsoft.com/en-us/library/ms252172(VS.80).aspx I can print the rdlc report...
9
1697
by: AGP | last post by:
I've been scratching my head for weeks to understand why some code doesnt work for me. here is what i have: dim sVal as string = "13.2401516" dim x as double x = sVal debug.writeline ( x)
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
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
9157
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
9026
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
8893
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,...
1
6518
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...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
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
3
2001
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.