hptj 发表于 2013-12-2 11:21:00

Insufficient memory异常

您好,这是一个2M多的文档,载入后,向下拖滚动条,会抛出“Insufficient memory.”的异常。
源码:

iceman 发表于 2013-12-2 13:04:00

回复 1楼hptj的帖子

hptj 你好,
我按照你的描述操作,没有重现问题。



我的机器配置是 Win7 64bit 8G内存。
可以把详细异常信息发上来看看。

hptj 发表于 2013-12-2 15:04:00

异常详细信息

在 TXTextControl.TextControlCore.?()
   在 TXTextControl.TextControlCore.?(? , Int32 , Int32 )
   在 TXTextControl.TextControl.get_Cursor()
   在 System.Windows.Forms.Control.WmSetCursor(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 TXTextControl.TextControl.WndProc(Message& message)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

我的电脑是:win8企业版、内存4G、64位

hptj 发表于 2013-12-2 15:11:00

还有台电脑是WIN7旗舰版 64位,内存4G


有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Exception: Insufficient memory.
(01-2301)
   在 TXTextControl.TextControlCore.?()
   在 TXTextControl.TextControlCore.?(? , Int32 , Int32 )
   在 TXTextControl.TextControl.get_Cursor()
   在 System.Windows.Forms.Control.WmSetCursor(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 TXTextControl.TextControl.WndProc(Message& message)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Demo
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///E:/hptj/Project/TX%20Text/Insufficient%20memory异常/Demo/Demo/Demo/bin/Debug/Demo.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
TXTextControl.Windows.Forms
    程序集版本: 19.0.400.500
    Win32 版本: 19.0.400.500
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/TXTextControl.Windows.Forms/19.0.400.500__6b83fe9a75cfb638/TXTextControl.Windows.Forms.dll
----------------------------------------
TXTextControl
    程序集版本: 19.0.1200.500
    Win32 版本: 19.0.1200.500
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/TXTextControl/19.0.1200.500__6b83fe9a75cfb638/TXTextControl.dll
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
txkernel
    程序集版本: 19.0.1900.500
    Win32 版本: 19.0.1900.500
    基本代码: file:///C:/Windows/assembly/GAC_32/txkernel/19.0.1900.500__6b83fe9a75cfb638/txkernel.dll
----------------------------------------
txtools
    程序集版本: 19.0.405.500
    Win32 版本: 19.0.405.500
    基本代码: file:///C:/Windows/assembly/GAC_32/txtools/19.0.405.500__6b83fe9a75cfb638/txtools.dll
----------------------------------------
msvcm90
    程序集版本: 9.0.30729.6161
    Win32 版本: 9.00.30729.6161
    基本代码: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57/msvcm90.dll
----------------------------------------
txic
    程序集版本: 19.0.500.500
    Win32 版本: 19.0.500.500
    基本代码: file:///C:/Windows/assembly/GAC_32/txic/19.0.500.500__6b83fe9a75cfb638/txic.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

hptj 发表于 2013-12-2 15:18:00

目标框架:.NET Framework3.5

iceman 发表于 2013-12-2 19:03:00

回复 5楼hptj的帖子

感谢提供详细信息,我需要搭建相应的测试环境测试,之后给出反馈。

iceman 发表于 2013-12-4 15:08:00

回复 5楼hptj的帖子

hptj ,
你好,这个问题我重现了,我会反馈给厂商,在得到回复后反馈给你。

hptj 发表于 2013-12-19 09:16:00

请问这个问题现在可有结果了?

ZenosZeng 发表于 2013-12-19 15:17:00

hptj

该问题目前还没有得到厂商的详细调查原因,主要是该问题出现的内部程序错误,而且重现的步骤不是很稳定,给问题调查也增加了一些难得。我们还在和厂商继续沟通该问题,一有新消息会立即给你回复。

hptj 发表于 2013-12-19 16:22:00

好的,辛苦
页: [1] 2
查看完整版本: Insufficient memory异常