TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Srin Dev
NA
1
0
CLR Restrictions
Jul 18 2006 8:30 AM
I'm generating a cs file at runtime and compiling it using CSharpCompiler. Since I've not really worked on optimizing the algorithm, in some cases my methods inside the file exceed 10,000 lines of code. Since this is generated code not meant for human consumption, I'm not worried about size. But when I execute the generated assembly, it runs till it gets to the rouge method call and I get an exception that CLR found an invalid program. This happens when the method size is too large so I'm guessing that CLR has some restrictions. So my question is why is this a run-time exception and why is the CSharpCompiler class not catching this issue? Also is there some place I can check the specs on maximum sizes of classes, methods, variable names etc. so I can check for them in my generated code?
Reply
Answers (
0
)
How to call a JavaScript File and Function in ASP.NET Project
How to Insert HTML File into Database and Retrieve It in DataGrid?