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 / Languages / Managed C++ / October 2007

Tip: Looking for answers? Try searching our database.

How are we supposed to remote debug our mixed application?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BWB - 29 Oct 2007 17:42 GMT
We have a mixed application that includes managed and unmanaged code.   Until
recently we've been able to remote debug by disabling the security policy to
get the MFC managed dlls to load properly over the network.  However,  we are
now using classes in the system.data.dll assembly which according to
connect.microsoft.com  is not allowed to run with the security policy
disabled.  Here is the quote from them:

In the 2.0 version of .NET, you can no longer turn off CAS policy checking
on     assemblies with code that can't be verified. This includes
System.Data.dll. Please note that the performance gain in turning off policy
checking is much smaller in 2.0 than in 1.1, so if you are using caspol to
increase compiler performance, that should no longer be needed.

Our only option is to now copy the mfc debug dlls manually or create a
script to install them and disregard the non-redistributable licence.  Please
help us overcome this issue.

Brandon
Ben Voigt [C++ MVP] - 29 Oct 2007 18:40 GMT
> We have a mixed application that includes managed and unmanaged code.
> Until
[quoted text clipped - 17 lines]
> Please
> help us overcome this issue.

IANAL, but I think the license doesn't present a problem.

You cannot redistribute the debug dlls, but Visual Studio (and therefore the
debug MFC dlls) are licensed per-developer, not per-machine.  So you can
install Visual Studio or any portion thereof on multiple machines, as long
as they are only used by developers who already have a license.

> Brandon
BWB - 29 Oct 2007 19:46 GMT
That's fine for our lab environment but what if we want to remote debug a
problem on a field machine.  

We develop an embedded application that runs on dedicated hardware.  Our
users are all internal but it would be very painful to be forced to insall
Visual Studio on over 120 target systems just so we can debug a failure.

> > We have a mixed application that includes managed and unmanaged code.
> > Until
[quoted text clipped - 26 lines]
>
> > Brandon
Ben Voigt [C++ MVP] - 29 Oct 2007 23:38 GMT
> That's fine for our lab environment but what if we want to remote debug a
> problem on a field machine.
>
> We develop an embedded application that runs on dedicated hardware.  Our
> users are all internal but it would be very painful to be forced to insall
> Visual Studio on over 120 target systems just so we can debug a failure.

If you have a license for Visual Studio, I don't see why you can't install
just the pieces you need, in this case the DLLs.

You can also debug without the MFC debug DLLs.  There are three independent
settings:

MFC DLLs are debug or release
compiler optimizations are off or on
debug symbols are generated or not

The default project settings use all the first alternatives for Debug and
all the second alternatives for Release, but for example generating debug
symbols for an optimized build using the release MFC DLLs is very possible.

>> > We have a mixed application that includes managed and unmanaged code.
>> > Until
[quoted text clipped - 32 lines]
>>
>> > Brandon
BWB - 29 Oct 2007 23:46 GMT
Ben,

Thanks for your response.  I guess we could just install the dlls on the
target machines.  Do you have any tips on how to install them into the SxS
folder?  Can they just be copied there?  Do they need a special manifest?

Brandon

> > That's fine for our lab environment but what if we want to remote debug a
> > problem on a field machine.
[quoted text clipped - 53 lines]
> >>
> >> > Brandon

Rate this thread:







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.