Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
Generalremoting channel woes Pin
qek17-Oct-03 11:37
qek17-Oct-03 11:37 
GeneralRe: remoting channel woes Pin
Heath Stewart18-Oct-03 10:42
protectorHeath Stewart18-Oct-03 10:42 
GeneralRe: remoting channel woes Pin
qek20-Oct-03 5:04
qek20-Oct-03 5:04 
GeneralRe: remoting channel woes Pin
Heath Stewart20-Oct-03 6:00
protectorHeath Stewart20-Oct-03 6:00 
GeneralRe: remoting channel woes Pin
qek20-Oct-03 11:02
qek20-Oct-03 11:02 
GeneralRe: remoting channel woes Pin
Heath Stewart20-Oct-03 11:38
protectorHeath Stewart20-Oct-03 11:38 
GeneralRe: remoting channel woes Pin
qek27-Oct-03 10:14
qek27-Oct-03 10:14 
GeneralRe: remoting channel woes Pin
Heath Stewart27-Oct-03 10:23
protectorHeath Stewart27-Oct-03 10:23 
GeneralRe: remoting channel woes Pin
qek27-Oct-03 10:50
qek27-Oct-03 10:50 
GeneralRe: remoting channel woes Pin
Heath Stewart27-Oct-03 10:53
protectorHeath Stewart27-Oct-03 10:53 
GeneralRe: remoting channel woes Pin
qek27-Oct-03 11:46
qek27-Oct-03 11:46 
Generalcustom attribute question Pin
sharkfish17-Oct-03 9:32
sharkfish17-Oct-03 9:32 
GeneralRe: custom attribute question Pin
Alex Korchemniy17-Oct-03 10:49
Alex Korchemniy17-Oct-03 10:49 
GeneralRe: custom attribute question Pin
sharkfish17-Oct-03 11:31
sharkfish17-Oct-03 11:31 
GeneralDataGrid and ArrayList Pin
Wjousts17-Oct-03 8:26
Wjousts17-Oct-03 8:26 
GeneralRe: DataGrid and ArrayList Pin
Daniel M. Edwards17-Oct-03 16:59
Daniel M. Edwards17-Oct-03 16:59 
GeneralRe: DataGrid and ArrayList Pin
Heath Stewart18-Oct-03 10:49
protectorHeath Stewart18-Oct-03 10:49 
GeneralUnrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
MtnBiknGuy17-Oct-03 6:45
MtnBiknGuy17-Oct-03 6:45 
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
Daniel Turini17-Oct-03 7:08
Daniel Turini17-Oct-03 7:08 
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
leppie17-Oct-03 9:33
leppie17-Oct-03 9:33 
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
MtnBiknGuy17-Oct-03 16:18
MtnBiknGuy17-Oct-03 16:18 
I found the problem. I think you could have guessed it -- it was related to the line limit. Here's what I was doing. I was using code to generate my unrolled loop code. I was then compiling this in a process and using reflection to load the assembly and invoke the method.

I was not getting any compiler errors, nor was I getting any runtime errors. I was just getting incorrect math results.

However, when I posted the code (without the reflection part) everyone else got the correct results. This prompted me to look at the reflection/compilation code more closely. It turns out the when I pasted the generated code into the IDE I discovered the line limit you mentioned.

I inserted a new line in my generated code after every 200 terms, and presto- the math results were now correct.

It's a bit disconcerting that I didn't get a compiler error from the command line compiler. I don't know why yet. Does the command line compiler have that same line limit? I assume so, given my experience.

I guess the compiler just took as many terms as it could and somehow terminated the statement and produced a runnable program ... all very strange. I wouldn't have thought that possible.
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
Anonymous17-Oct-03 18:24
Anonymous17-Oct-03 18:24 
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
MtnBiknGuy18-Oct-03 3:55
MtnBiknGuy18-Oct-03 3:55 
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
MtnBiknGuy20-Oct-03 14:15
MtnBiknGuy20-Oct-03 14:15 
GeneralRe: Unrolling a loop: why can't .NET add 1 + 2 + 3 + ... Pin
leppie21-Oct-03 8:48
leppie21-Oct-03 8:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.