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++ / June 2007

Tip: Looking for answers? Try searching our database.

Bizarre behaviour in VS2005 when debugging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pinkmonkey4ever - 29 Jun 2007 08:28 GMT
I have a VC6 ANSI C (console) project that I have recompiled sucessfully
under VS2005.

However, when I attempt to debug the code (step through) - my
breakpoints are disabled (msg : "beakpoints will not be hit"), and worse
still - I find that instead of steopping through my code, I am stepping
through a file named crt.exe - which guessing from the function names in
the file (as well as the file name itself) - is something to do with the
CLR (i.e. .Net stuff).

I can't understand how this can be. This is a simple ANSI C console
project that makes ABSOLUTELY NO use of the CLR. I've checked and
re-checked my project settings and AFAICT, everything looks ok - also, I
am at my wits end. Does anyone have an idea as to what may be causing
this bizzare behaviour?
pinkmonkey4ever - 29 Jun 2007 08:34 GMT
> I have a VC6 ANSI C (console) project that I have recompiled sucessfully
> under VS2005.
[quoted text clipped - 11 lines]
> am at my wits end. Does anyone have an idea as to what may be causing
> this bizzare behaviour?

Before someone suggests this (regarding the disabled breakpoints).
Although I am using a Dll  (i.e. importing a .lib file), I have
recompiled the library and DOUBLE-Checked to make sure that I am linking
to the latest build of the library - as this was the first thing that
occured to me to check, when I wasn't able to set breakpoints..
SvenC - 29 Jun 2007 08:49 GMT
Hi,

>I have a VC6 ANSI C (console) project that I have recompiled sucessfully
>under VS2005.
[quoted text clipped - 11 lines]
> am at my wits end. Does anyone have an idea as to what may be causing this
> bizzare behaviour?

Did you build and run the debug version?

--
SvenC
pinkmonkey4ever - 29 Jun 2007 09:17 GMT
> Hi,
>
[quoted text clipped - 15 lines]
>
> Did you build and run the debug version?

Erm ..., yes (I would have thought that was obvious from my post)
Ben Voigt [C++ MVP] - 29 Jun 2007 22:14 GMT
>I have a VC6 ANSI C (console) project that I have recompiled sucessfully
>under VS2005.
[quoted text clipped - 5 lines]
> (as well as the file name itself) - is something to do with the CLR (i.e.
> .Net stuff).

CRT simply means "C Runtime", and it is used by every C program regardless
of whether you also use the CLR.  For example, printf is in the CRT library.

"crt.exe", on the other hand, sounds like a malware.  The CRT is a lib or
dll, not an exe.

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.