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 / .NET Framework / CLR / July 2007

Tip: Looking for answers? Try searching our database.

compiler problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Allen Maki - 10 Jul 2007 19:59 GMT
My compiler is acting up.  When I have building error, the left margin
pointer will point to the wrong line.  Sometimes, the deferent between the
line that has the error and the line it pointed to can be more than twenty
lines.

Sometimes, It will give error message for something that I commented (//).

As soon as I delete the commented line, the building error will disappear .
Göran Andersson - 12 Jul 2007 19:09 GMT
> My compiler is acting up.  When I have building error, the left margin
> pointer will point to the wrong line.  Sometimes, the deferent between the
[quoted text clipped - 4 lines]
>
> As soon as I delete the commented line, the building error will disappear .

I think that is a problem with Visual Studio rather than the compiler.
Sometimes it seems like it doesn't clear the list of errors before
compiling, so that you get a mix of old errors and new.

Try to switch between debug mode and release mode and see if the error
list clears up.

Signature

Göran Andersson
_____
http://www.guffa.com

Allen Maki - 13 Jul 2007 02:00 GMT
Hi Goran,

I tried to find a release mode, but could not find it.  I am using V C++
.NET 2003.

Thanks.

>> My compiler is acting up.  When I have building error, the left margin
>> pointer will point to the wrong line.  Sometimes, the deferent between
[quoted text clipped - 15 lines]
> Try to switch between debug mode and release mode and see if the error
> list clears up.
Allen Maki - 13 Jul 2007 02:28 GMT
I just found the problem thanks to Brad (god bless his heart).  You have to
do the following:

RESOLUTION
1. Open the source file in the Visual Studio .NET editor.
2. On the File menu, click Advanced Save Options.
3. In the Line Endings list box, click Windows (CR LF), and then click OK.
4. Save the file.
5. Compile the project.

> My compiler is acting up.  When I have building error, the left margin
> pointer will point to the wrong line.  Sometimes, the deferent between the
[quoted text clipped - 5 lines]
> As soon as I delete the commented line, the building error will disappear
> .

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.