Re: C# Error CS1034: compiler limit exceeded (2046 characters)
From: Kyril Magnos (kyril.magnos_at_yahoo.com)
Date: 07/28/04
- Next message: freddy: "Re: winform"
- Previous message: G.Esmeijer: "printing on the right side of paper"
- In reply to: Steve Biondi: "C# Error CS1034: compiler limit exceeded (2046 characters)"
- Next in thread: Steve Biondi: "Re: C# Error CS1034: compiler limit exceeded (2046 characters)"
- Reply: Steve Biondi: "Re: C# Error CS1034: compiler limit exceeded (2046 characters)"
- Messages sorted by: [ date ] [ thread ]
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? |
- Next message: freddy: "Re: winform"
- Previous message: G.Esmeijer: "printing on the right side of paper"
- In reply to: Steve Biondi: "C# Error CS1034: compiler limit exceeded (2046 characters)"
- Next in thread: Steve Biondi: "Re: C# Error CS1034: compiler limit exceeded (2046 characters)"
- Reply: Steve Biondi: "Re: C# Error CS1034: compiler limit exceeded (2046 characters)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|