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++ / November 2006

Tip: Looking for answers? Try searching our database.

Cannot run exe to debug DLL in VS.NET 2003 - Unable to start debugging. Unable to start program. - Why???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Rock - 01 Nov 2006 14:33 GMT
Hello,

I'm using an executable (for which I do not have the source code nor the pdb
file) as the startup application to load a DLL I'm writing and need to
debug. If I try to debug the DLL I immediately get the error "Unable to
start debugging. Unable to start program XXX.exe". If I do "Start without
debugging" my startup application gets correctly executed. Is this problem
due to the fact I'm missing the debugging information for the exe??? The
VS.NET 2003 debugger seems to work fine (if I create for example a console
application I can debugging it without any issues). I also tried using
VS.NET 2005 and everything works as expected apart an initial notice that
the IDE could not find the debugging information for the executable. Is this
the issue with VS.NET 2003, is it the missing debugging info for the exe???
Any ideas?
Thanks.

Bob Rock
Oleg Starodumov - 01 Nov 2006 15:45 GMT
> I'm using an executable (for which I do not have the source code nor the pdb
> file) as the startup application to load a DLL I'm writing and need to
[quoted text clipped - 8 lines]
> the issue with VS.NET 2003, is it the missing debugging info for the exe???
> Any ideas?

Missing debug information should not cause this problem.

Is this executable native or managed? Same for dll?

Is there any additional explanation in the error message?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]
Bob Rock - 01 Nov 2006 17:36 GMT
> Missing debug information should not cause this problem.
>
[quoted text clipped - 5 lines]
> Oleg
> [VC++ MVP http://www.debuginfo.com/]

No additional info in the error message. I tried changing the startup exe to
any application like notepad or IE. I get the same exact result and message.
Anyway the original startup exe was a managed VB.NET 2002 compiled
application. But any exe leads to the same error.

Regards,
Bob Rock
Bob Rock - 01 Nov 2006 17:44 GMT
BTW, I'm using a windows 2003 R2 standard edition + visual studio 6 + visual
studio .net 2003 + visual studio 2005. Everything service packed to the
latest bits.

Bob Rock
Oleg Starodumov - 01 Nov 2006 20:33 GMT
What happens if you open that same executable as a new solution?
(I mean something like File | Open Solution and select the .exe)
Will it be possible to debug it (and the dll)?

Oleg
Bob Rock - 02 Nov 2006 00:21 GMT
> What happens if you open that same executable as a new solution?
> (I mean something like File | Open Solution and select the .exe)
> Will it be possible to debug it (and the dll)?
>
> Oleg

I do not have the source code for the original executable. Anyway, having
created a solution with a simple EXE that loads my DLL I can debug both the
EXE and the DLL . Still I cannot use an external executable as the startup
application for my DLL. This is most strange.

Bob
Oleg Starodumov - 02 Nov 2006 09:57 GMT
> I do not have the source code for the original executable. Anyway, having
> created a solution with a simple EXE that loads my DLL I can debug both the
> EXE and the DLL . Still I cannot use an external executable as the startup
> application for my DLL. This is most strange.

OK. So at least you have a workaround.

Also this narrows the problem down to the dll's solution.
Could you please list all settings on Project properties | Configuration Properties | Debugging
page?

Oleg

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.