Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / June 2006

Tip: Looking for answers? Try searching our database.

The MyC Project Crashes When Selecting "Properties" in DE Sample

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
42developer42 - 15 Jun 2006 01:00 GMT
I’ve ran into a wall while working on the sample implementation of a debug
engine using ATL COM.  Is there a workaround?  Is this a known issue or did I
perhaps do something incorrect?

The intent of this was to follow the sample closely per Microsoft’s
documentation at :
ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VSSDK.v80/dv_vsdbgsdk/html/9097b71e-1fe7-48f7-bc00-009e25940c24.htm

While following the tutorial, I ran into a few bumps and mitigated as
follows:

1.) The dbgmetric[d].lib libraries were originally compiled with
/Zc:wchar_t-, but as of VC++ 8, the default is to define it. To workaround
this and use the libraries, use Project Properties->Languages->Treat wchar_t
as Native type => No

2.) The include files and external libraries are located in different
folders than specified in the tutorial. The path should look like ". . .
.//Visual Studio 2005
SDK/2006.04/VisualStudioIntegration/Archive/DebuggerSDK/Includes" and ". . .
. //Visual Studio 2005 SDK/2006.04/VisualStudioIntegration/Common/Lib"
In the final step of the sample implementation the compilation of MyCPrj
fails because _vsnwprintf was declared deprecated from VS 7.1 to VS 8.0. This
is yet another piece of the SDK that appears to not have been updated. The
suggestion from the output window is to use _vsnprintf_s instead, however the
function is called in strsafe.h which is not a part of the MyCPrj, rather it
is a part of Microsoft's general "Safer String Handling in C" released in
2002. Since the goal of this project isn't to create a more robust safe
string class in C, rather to create a custom debug engine I'll just turn off
"treat warnings as errors" in the compiler. After doing this, the MyCPrj
compilation succeeded.

3.) At the very end of the sample implementation walk through is an
explanation of how to configure the sample MyC project to target the Text
Interpreter debug engine previously created.  The documentation for this is
located at:
ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VSSDK.v80/dv_vsdbgsdk/html/5aca8b48-f760-4475-a89a-e1cc6c66a4da.htm

After following the instructions step by step, I reach step 18.  Once I
select “Properties” I get an assertion when using the debug build of the MyC
project and an application (Visual Studio) crash when using the release build.

Other than the aforementioned workarounds, I did not deviate from the
instructions given in the sample.  
42developer42 - 16 Jun 2006 22:18 GMT
Hi, is anyone looking into this at MSFT?

> I’ve ran into a wall while working on the sample implementation of a debug
> engine using ATL COM.  Is there a workaround?  Is this a known issue or did I
[quoted text clipped - 40 lines]
> Other than the aforementioned workarounds, I did not deviate from the
> instructions given in the sample.  

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.