Groups | Blog | Home
all groups > asp.net building controls > april 2004 >

asp.net building controls : Enum causes compiler errors



Ed Swartz
4/19/2004 6:22:46 PM
In my web control code I define an enum:

public enum LayoutDirections
{
Horizontal,
Vertical
};


In my demo web application I get and set an enum value like so:

T.LayoutDirection = T.LayoutDirections.Horizontal;


When I compile the web app which uses the web control I get:

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.


Any workarounds or compiler updates?
I have Visual Studio C# 7.1.3088


Ed Swartz
Victor Garcia Aprea [MVP]
4/24/2004 6:37:17 PM
Hi Ed,

Thats a really ugly error :-)

There is not much to guess by the posted code... pretty simple stuff. Could
you post a very small complete sample so I may have a try here to see what I
get?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
[quoted text, click to view]

Fred Hirschfeld
4/25/2004 8:48:56 AM
How have you declared you T.LayoutDirection property? Also there is an
unneeded semi-colon at the end of the enum declaration. More code would help
assist...

Fred

[quoted text, click to view]

AddThis Social Bookmark Button