2009-05-19 6 views
0

Unityを中心に単純なアプリケーションフレームワークを構築しました。私。フォームコントロールとユーザーコントロールはxmlとして記述され、動的に構築されます。私はComboBoxを含むフォームを持っています。 ComboBoxがListBoxコントロールの代わりに使用されている場合、問題は発生しません。{"保護されたメモリを読み書きしようとしましたが、これは他のメモリが壊れていることを示していることがよくあります。"}

いくつかのグーグルでは..私はインストールして管理していなかったパッチのいくつかのレポートを上げKB923028

{ "保護された メモリを読み書きしようとしました。これは、多くの場合、他のメモリがあることを示し です。壊れた "}

スタックトレース:

at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) 
    at System.Windows.Forms.NativeWindow.DefWndProc(Message& m) 
    at System.Windows.Forms.Control.DefWndProc(Message& m) 
    at System.Windows.Forms.Control.WmCommand(Message& m) 
    at System.Windows.Forms.Control.WndProc(Message& m) 
    at System.Windows.Forms.ComboBox.WndProc(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) 
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 
    at System.Windows.Forms.Application.Run(Form mainForm) 
    at DPOSSQL.Program.Main() in C:\VSSData\DPOS SQL\DPOS SQL\Program.cs:line 46 
    at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) 
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
    at System.Threading.ThreadHelper.ThreadStart() 

答えて

0

私は目を見てきましたコントロールがXP/Vistaスタイルを使用して、古いバージョンのWindowsで実行されているときは、なんらかのものです。

0

システムに新しいフォントをインストールしたときにこのエラーが発生しました。最近新しいフォントをインストールした新しいフォントやプログラムをインストールしましたか?

他の.netプログラムは正しく動作しますか?そうでない場合は、.NETフレームワークを再インストールするのが最も良い方法でしょう。

0

.NETアプリケーションの実行中にシステムディスプレイを「余分なフォント」に切り替えるときに、Windows XPでこれを押してください。

不正なフォントなどに関連している可能性があります。

Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 
Source: System.Windows.Forms 
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) 
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 
関連する問題