Hi All
I'm using C#.NET v1.1
I am getting the following compile error, I'm having several if statements inside two foreach statements. And inside some of the if statements I'm having one foreach statement.
This doesn't occurs only when I removed the last three if statement(newly added), I tried removing other if statements but its giving error, nothing spl in the last 3 if statement.
why is it so
anything I'm doing wrongly or its a defect in compiler
error CS0583: Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'.
An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are closer to the point at which the internal error occurred.
c:\Programs\MyProj.net\UIView.cs(1076,8): error CS0585: Internal Compiler Error: stage 'BIND'
Thanks!
Regards
Karthikeyan

Internal Compiler Error - likely culprit is 'BIND' - C#.NET v1.1
TValoy
http://lab.msdn.microsoft.com/ is allowing to log defects only for VS 2005 but I'm using 2003.
Thanks & Regards
Karthikeyan
sraddhan
Also try compiling with VS 2005 what error does that throw
Regards,
Saurabh Nandu
Gobra
This is a compiler error. I don't recognize it off the bat - please submit the details through the product feedback center as a bug report.
Thanks,
Mads Torgersen
TheRookie
Both the posts spoke about the same problem, in first post I thought the cause of the problem is nested If, later I found the root cause is coz I'm trying to access a property SubModule.Length (which is not a collection).
I should told this before itself, Sorry!
I don't have VS 2005, so I'm not able to compile in that version.
but I am wondering why the error is like that
Thanks!
Regards
Karthikeyan
Mediorco
Regards,
Saurabh Nandu
www.MasterCSharp.com
www.AksTech.com
jereroy
Hi Saurabh,
I got the problem.
The problem lies in the bolded variables.
//Getting the Config Section ModuleSubModuleNode from config file
ModuleNavigation moduleNavigationCollection = (ModuleNavigation) ConfigurationSettings.GetConfig("ModuleNavigation");
I'm trying to get the config section values and storing it into a class.
public class ModuleNavigationand while accessing this Data I tried to get the Length property for SubModule (which is not a collection) instead of SubModuleNodes.
For this the Compiler needs to give an error but not an error like this 'Internal Comipler Error'
Isn't
// This class has the structure of ModuleNavigation Section
in the App.Config file which aids in fetching and accessing the
Module Navigation Section in App.Config file
{
public struct Module
{
public string ModuleNameAttribute;
public struct SubModule
{
public string SubModuleNameAttribute;
public string IsParentNode;
public struct Screen
{
public string KeyAttribute;
public string ButtonImageAttribute;
}
public Screen[] Screens;
} public SubModule[] SubModuleNodes;
} public Module[] ModuleNodes;
}