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++ / July 2004

Tip: Looking for answers? Try searching our database.

Internal Compiler Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mphanke - 28 Jul 2004 09:45 GMT
Hi,

just in case this is somewhat new:

myfile.h(677): fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 2701)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more
information

And this is line 677:
Rectangle rCPicL(offset_L, (int)(rCPicHeadL.Bottom), width_halbe,
(width_halbe*3)/4);

This error occured when I tried to remove a couple warnings and added
the (int)(rCPicHeadL.Bottom) cast.

Everything compiles just fine when I remove the (int)(...) cast.

Martin
Carl Daniel [VC++ MVP] - 28 Jul 2004 14:40 GMT
> Hi,
>
[quoted text clipped - 14 lines]
>
> Everything compiles just fine when I remove the (int)(...) cast.

Unfortunately, there's probably no way to tell  if that ICE has been
reported unless you can post a complete program, along with command-line
options, that reproduces the ICE.  It's unlikely that that line in isolation
is the cause ever if removing a cast from that one line cures the ICE in
this specific case.

Have you tried writing the cast as

(int)rCPicHeadL.Bottom

or

int(rCPicHeadL.Bottom)

?  In your sample you have more parentheses than are required.

-cd
mphanke - 29 Jul 2004 09:05 GMT
Hi,

would it be enough to post the function itself and the compiler settings?

Martin

>>Hi,
>>
[quoted text clipped - 32 lines]
>
> -cd
Carl Daniel [VC++ MVP] - 29 Jul 2004 14:51 GMT
> Hi,
>
> would it be enough to post the function itself and the compiler
> settings?

Only if compiling that function in isolation with those settings reproduces
the ICE.  If you're unable to work it down to a small repro case that you
can post, you could contact microsoft product support.  They'll be able to
take a larger repro case from you under suitable confidentiality terms so
you won't have to post your code for all to see.

-cd
mphanke - 29 Jul 2004 16:09 GMT
Hi,

I will try whether isolating this line causes the error, than I will
post it. I'm running into a deadline this friday so it will be after the
weekend!

Martin

>>Hi,
>>
[quoted text clipped - 8 lines]
>
> -cd
Vladimir Kouznetsov - 29 Jul 2004 20:58 GMT
> Only if compiling that function in isolation with those settings reproduces
> the ICE.  If you're unable to work it down to a small repro case that you
> can post, you could contact microsoft product support.  They'll be able to
> take a larger repro case from you under suitable confidentiality terms so
> you won't have to post your code for all to see.

How can one be sure that a worked down small repro case reproduces the same
ICE? :)

> -cd

thanks,
v

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.