Click here to Skip to main content
15,876,991 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Vb.net FlowLayoutPanel with MS Access: System.InvalidCastException error. Pin
Richard Deeming26-Feb-23 22:31
mveRichard Deeming26-Feb-23 22:31 
GeneralRe: Vb.net FlowLayoutPanel with MS Access: System.InvalidCastException error. Pin
sdfsdfsdfewrew3feff27-Feb-23 6:55
sdfsdfsdfewrew3feff27-Feb-23 6:55 
GeneralRe: Vb.net FlowLayoutPanel with MS Access: System.InvalidCastException error. Pin
Richard Deeming27-Feb-23 21:17
mveRichard Deeming27-Feb-23 21:17 
AnswerRe: Vb.net FlowLayoutPanel with MS Access: System.InvalidCastException error. Pin
Dave Kreskowiak27-Feb-23 3:14
mveDave Kreskowiak27-Feb-23 3:14 
GeneralRe: Vb.net FlowLayoutPanel with MS Access: System.InvalidCastException error. Pin
sdfsdfsdfewrew3feff27-Feb-23 8:36
sdfsdfsdfewrew3feff27-Feb-23 8:36 
AnswerRe: Vb.net FlowLayoutPanel with MS Access: System.InvalidCastException error. Pin
jschell13-Mar-23 6:30
jschell13-Mar-23 6:30 
QuestionXML view to display in grid view Pin
Member 1592502915-Feb-23 5:30
Member 1592502915-Feb-23 5:30 
QuestionSystem.Design - Not enough memory resources Pin
JoshWilliams5-Jan-23 10:37
JoshWilliams5-Jan-23 10:37 
I have recently starting getting a memory resources error with System.Design. The application has been running fine for years and this just started popping up without any code changes. This has been encountered on multiple PCs.

Could not load file or assembly 'System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Not enough memory resources are available to process this command. (Exception from HRESULT: 0x80070008)


The application is running on .NET 4.6.1. The app is taking up around 400 MB of memory and I have over 10 GB RAM free on my PC. So I don't think it is a PC resource issue.

After the error occurs I start seeing issues in the OpenFileDialog. The icons are black squares and parts of the UI of the form don't show up. The file name and file type drop down will be missing.

Here is the stack trace:

at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateNestedClasses(Filter filter)
at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetListByName(Char* pName, Int32 cNameLen, Byte* pUtf8Name, Int32 cUtf8Name, MemberListType listType, CacheType cacheType)
at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.Populate(String name, MemberListType listType, CacheType cacheType)
at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetMemberList(MemberListType listType, String name, CacheType cacheType)
at System.RuntimeType.GetNestedTypeCandidates(String fullname, BindingFlags bindingAttr, Boolean allowPrefixLookup)
at System.RuntimeType.GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
at System.Type.GetMember(String name, BindingFlags bindingAttr)
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.LookupNamedMembers(String MemberName)
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.GetMembers(String& MemberName, Boolean ReportErrors)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean RValueBase, CallType CallType)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments)
at FormLookAndFeel.ApplyTheme(Object& source, List`1& lstIgnoreTheme, ToolStripType& toolStripType) in C:\Users\JoshWilliams_k0t30jx\Documents\PROJECTS\Sherpa\COM_v1\Theming\FormLookAndFeel.vb:line 47
at FormLookAndFeel.BlueTheming(Object& form, List`1& lstButton, List`1& lstHeading, List`1& lstIgnoreTheme, ToolStripType& toolStripType) in C:\Users\JoshWilliams_k0t30jx\Documents\PROJECTS\Sherpa\COM_v1\Theming\FormLookAndFeel.vb:line 17
at frmAdmin.frmAdmin_Load(Object sender, EventArgs e) in C:\Users\JoshWilliams_k0t30jx\Documents\PROJECTS\Sherpa\COM_v1\frmAdmin.vb:line 1225


The code that encounters the error loops through all controls on the form and sets the font size, fore color and back color based on control type. As I said above this has worked for years without an issues. This just started to appear.

Any assistance would be appreciated. Thank you!
AnswerRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak5-Jan-23 14:25
mveDave Kreskowiak5-Jan-23 14:25 
GeneralRe: System.Design - Not enough memory resources Pin
trønderen5-Jan-23 15:09
trønderen5-Jan-23 15:09 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak5-Jan-23 15:35
mveDave Kreskowiak5-Jan-23 15:35 
GeneralRe: System.Design - Not enough memory resources Pin
trønderen5-Jan-23 17:54
trønderen5-Jan-23 17:54 
GeneralRe: System.Design - Not enough memory resources Pin
Eddy Vluggen5-Jan-23 23:55
professionalEddy Vluggen5-Jan-23 23:55 
GeneralRe: System.Design - Not enough memory resources Pin
Pete O'Hanlon6-Jan-23 2:11
mvePete O'Hanlon6-Jan-23 2:11 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak6-Jan-23 11:44
mveDave Kreskowiak6-Jan-23 11:44 
GeneralRe: System.Design - Not enough memory resources Pin
jschell10-Jan-23 6:46
jschell10-Jan-23 6:46 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak10-Jan-23 6:47
mveDave Kreskowiak10-Jan-23 6:47 
GeneralRe: System.Design - Not enough memory resources Pin
jschell15-Jan-23 7:40
jschell15-Jan-23 7:40 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak15-Jan-23 8:07
mveDave Kreskowiak15-Jan-23 8:07 
GeneralRe: System.Design - Not enough memory resources Pin
trønderen15-Jan-23 12:29
trønderen15-Jan-23 12:29 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak15-Jan-23 13:50
mveDave Kreskowiak15-Jan-23 13:50 
AnswerRe: System.Design - Not enough memory resources Pin
Randor 5-Jan-23 16:10
professional Randor 5-Jan-23 16:10 
AnswerRe: System.Design - Not enough memory resources Pin
jschell10-Jan-23 7:05
jschell10-Jan-23 7:05 
GeneralRe: System.Design - Not enough memory resources Pin
jochance7-Mar-23 9:26
jochance7-Mar-23 9:26 
Questionpasting a sub into windows forms Pin
Member 1587993730-Dec-22 1:19
Member 1587993730-Dec-22 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.