Looking up an Enum crashes VS
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Looking up an Enum crashes VSExpand / Collapse
Author
Message
Posted 01/17/2008 1:47:57 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 2 days ago @ 3:11:51 PM
Posts: 1,148, Visits: 2,831
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):
Exception
Could not gather enums for System.Windows.Forms
OutOfMemoryException
Exception of type 'System.OutOfMemoryException' was thrown.

Source :

Stack Trace:
at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection)
at System.Reflection.Assembly.Load(Byte[] rawAssembly)
at MicroFour.StrataFrame.Extensibility.ExtensibilityBasics.GetAvailableEnums(Boolean WebProject)


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.

The solution I'm using has 10 projects, most of which have enums defined within in them if that makes any difference.

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.


  Post Attachments 
EnumFindError.PNG (3 views, 96.03 KB)
Post #13526
Posted 01/17/2008 2:23:39 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:47:36 PM
Posts: 4,115, Visits: 4,185
Greg,

Try this assembly to see if you have the same results.  I had run into an issue the other day with something similar happening and made a change to the GetTypeFromReferencedAssemblies method the other day.  If not, then we can think of another approach (i.e. change the type editor to allow you to manually enter it

  Post Attachments 
MicroFour License Base.zip (3 views, 21.33 KB)

Post #13537
Posted 01/17/2008 3:42:04 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 2 days ago @ 3:11:51 PM
Posts: 1,148, Visits: 2,831
Were does this go? The GAC?
Post #13553
Posted 01/17/2008 4:05:50 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:47:36 PM
Posts: 4,115, Visits: 4,185
Yeah, just drag it into the GAC and copy it to the C:\Program Files\Common Files\MicroFour\StrataFrame folder.
Post #13556
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 2:24am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.