Re: C# Error CS1034: compiler limit exceeded (2046 characters)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kyril Magnos (kyril.magnos_at_yahoo.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 13:32:16 -0700

The line length is by design, AFAIK, and no, you can't extend the length.
"line" really means "statement" to the compiler. So, you need to break your
statements down somehow.

I don't think it has anything to do with the attributes, unless you are
using some massively huge namespace and method names in your WS. Can you
post some of the longer portions of your reference.cs and we can see if we
can find the offending statement.

-- 
HTH
Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)
"Steve Biondi" <SteveBiondi@discussions.microsoft.com> wrote in message 
news:AED96949-05B4-456B-A2F4-7C5277F33B7B@microsoft.com...
| I've run into this rather annoying problem while compiling C# code. 
Apparently there's a concept of a "line" in the C# compiler and I'm hitting 
a length restriction. I generated the code using wsdl.exe and the SOAP 
operation has tons of arguments in it. What makes this worse is the 
additional attributes defined for each needed by the SOAP serializer. I've 
tried to shorten these attr declarations by adding the namespaces to the 
"using" statements manually and removing the prefixes from the types 
(XmlElementAttribute, etc) but I'm still over the limit. I've also tried 
manually adding CRLF between each arg but the compiler appears to unfold the 
line between the parens during compilation.
|
| Is this line length by design and, short of writing my own SOAP client 
wrapper and changing the method sig, is there a way to extend this length?
| 


Relevant Pages

  • Re: why still use C?
    ... OOP in general tends to be slower. ... As if the compiler didn't know... ... > their associated method functions from a design perspective. ... as a language design I feel it has failed. ...
    (comp.lang.c)
  • Compiler positions available for week ending August 14
    ... Subject: Job openings at Tensilica ... TIE compiler engineer ... work on the TIE compiler. ... talented team changing the nature of silicon-based design. ...
    (comp.compilers)
  • Re: writeObject signature
    ... > or the compiler must do a cast to Object. ... Java refers to a syntax for type conversion -- namely, ... it would be wrong (or bad design) to ...
    (comp.lang.java.programmer)
  • Re: Inside an FBI Computer Forensics Lab
    ... You should be comparing a hardware engineer who puts ... design done in a hardware description language. ... My compiler is open source also. ... The attack involves compromising the compiler before the hash ...
    (alt.privacy)
  • Re: Another $17.4 Billion WASTED
    ... program from shrouded code is anything but "pathetically simple". ... perhaps with user-selected features and compiler ... uncommented code from a programmer that is using ... the detailed software design document put together by the PHD that ...
    (rec.autos.driving)