﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Looking up an Enum crashes VS</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 21:09:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Looking up an Enum crashes VS</title><link>http://forum.strataframe.net/FindPost13526.aspx</link><description>I'm having a pretty regular problem with combos where looking up an enum causes VS to crash.  I get a variety of errors, including this SF error (which occurred several times...each time I closed the exception dialog, another popped up):&lt;br&gt;
[quote]Exception&lt;br&gt;
  Could not gather enums for System.Windows.Forms&lt;br&gt;
OutOfMemoryException&lt;br&gt;
  Exception of type 'System.OutOfMemoryException' was thrown.&lt;br&gt;
&lt;br&gt;
Source     :&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
   at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark&amp; stackMark, Boolean fIntrospection)&lt;br&gt;
   at System.Reflection.Assembly.Load(Byte[] rawAssembly)&lt;br&gt;
   at MicroFour.StrataFrame.Extensibility.ExtensibilityBasics.GetAvailableEnums(Boolean WebProject)[/quote]&lt;br&gt;
&lt;br&gt;
Plus some VS type error messages (see attachment).  These usually result in VS crashing. The problem is intermittant. Usually the errors occurs after VS has been open for a while, and behaves well right after is opened.  The longer it is open, the more likely it will result in a crash.&lt;br&gt;
&lt;br&gt;
The solution I'm using has 10 projects, most of which have enums defined within in them if that makes any difference.&lt;br&gt;
&lt;br&gt;
The biggest problem I see is that there is no way to just enter the Enum directly.  I.e. just entering the fully qualified enum name manually.  At this point, I'm often forced to either reopen VS every time I setup a combo with an Enum or I manually edit the designer file.</description><pubDate>Thu, 17 Jan 2008 16:05:50 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Looking up an Enum crashes VS</title><link>http://forum.strataframe.net/FindPost13556.aspx</link><description>Yeah, just drag it into the GAC and copy it to the C:\Program Files\Common Files\MicroFour\StrataFrame folder.</description><pubDate>Thu, 17 Jan 2008 16:05:50 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Looking up an Enum crashes VS</title><link>http://forum.strataframe.net/FindPost13553.aspx</link><description>Were does this go? The GAC?&lt;br&gt;</description><pubDate>Thu, 17 Jan 2008 15:42:04 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Looking up an Enum crashes VS</title><link>http://forum.strataframe.net/FindPost13537.aspx</link><description>Greg,&lt;/P&gt;&lt;P&gt;Try this assembly to see if you have the same results.&amp;nbsp; I had run into an issue the other day with something similar happening and made a change to the GetTypeFromReferencedAssemblies method the other day.&amp;nbsp; If not, then we can think of another approach (i.e. change the type editor to allow you to manually enter it ;)</description><pubDate>Thu, 17 Jan 2008 14:23:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>