From: cyberco on 29 Jan 2007 06:55 Sometimes, when my form instantiates the call to "resources.ApplyResources(this, "$this")" in the method "InitializeComponent()" method of my form throws the error: "Value does not fall within the expected range." The Stacktrace is: =====STACKTRACE===== bij System.Collections.Hashtable.Insert() bij System.Collections.Hashtable.Add() bij System.Resources.ResourceReader.GetType() bij System.Resources.ResourceReader.FindType() bij System.Resources.ResourceReader.LoadObjectV2() bij System.Resources.ResourceReader.GetValueForNameIndex() at ResourceEnumerator.get_Value() at ResourceEnumerator.get_Entry() at ResourceEnumerator.get_Current() bij System.ComponentModel.ComponentResourceManager.FillResources() bij System.ComponentModel.ComponentResourceManager.FillResources() bij System.ComponentModel.ComponentResourceManager.FillResources() bij System.ComponentModel.ComponentResourceManager.ApplyResources() bij System.ComponentModel.ComponentResourceManager.ApplyResources() bij reporter.SplashForm_Orig.InitializeComponent() bij reporter.SplashForm_Orig..ctor() bij reporter.MainForm_PPC_SQUARE.StartSplash() =====/STACKTRACE===== It looks as if the resource file haven't been loaded yet. The form uses a bitmap that resides inside a (static) resource file (.resx)
|
Pages: 1 Prev: Monitor.Wait Workaround Next: simple question about backlight |