ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-10-19 04:12:48

qxzhu
Member
Registered: 2016-08-05
Posts: 39

退出错误

我的一个自定义控件上添加了这个组件。每当我退出的时候都会显示这个错误:
+        已引发: "值不能为 null。" (System.ArgumentNullException)    异常消息 = "值不能为 null。", 异常类型 = "System.ArgumentNullException", 异常 WinRT 数据 = null   
以下是错误时的堆栈内容:
>    unvell.ReoGrid.dll!di.co(unvell.ReoGrid.Cell A_0 = {未知}, unvell.ReoGrid.Rendering.DrawMode A_1 = {未知}, float A_2 = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.Worksheet.a(ct A_0 = {未知}, unvell.ReoGrid.Cell A_1 = {未知}, unvell.ReoGrid.Rendering.DrawMode A_2 = {未知}, float A_3 = {未知}, fd A_4 = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.Worksheet.b(ct A_0 = {未知}, unvell.ReoGrid.Cell A_1 = {未知}, unvell.ReoGrid.Rendering.DrawMode A_2 = {未知}, fd A_3 = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.Worksheet.a(ct A_0 = {未知}, unvell.ReoGrid.Cell A_1 = {未知}, unvell.ReoGrid.Rendering.DrawMode A_2 = {未知}, fd A_3 = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.Worksheet.a(unvell.ReoGrid.Cell A_0 = {未知}, fd A_1 = {未知})    C#
    unvell.ReoGrid.dll!a.c(int A_0 = {未知}, int A_1 = {未知}, unvell.ReoGrid.Cell A_2 = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.Data.Index4DArray`1.a(int A_0 = {未知}, int A_1 = {未知}, int A_2 = {未知}, int A_3 = {未知}, bool A_4 = {未知}, System.Func A_5 = {未知})    C#
    unvell.ReoGrid.dll!cf.h(ch A_0 = {未知}, ch A_1 = {未知})    C#
    unvell.ReoGrid.dll!cf.h(cl A_0 = {未知}, ch A_1 = {未知})    C#
    unvell.ReoGrid.dll!cf.j()    C#
    unvell.ReoGrid.dll!cf.b0()    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.Worksheet.i()    C#
    unvell.ReoGrid.dll!Set unvell.ReoGrid.ReoGridControl.CurrentWorksheet(unvell.ReoGrid.Worksheet value = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.ReoGridControl.l(object A_0 = {未知}, System.EventArgs A_1 = {未知})    C#
    unvell.ReoGrid.dll!dk.cx(int A_0 = {未知})    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.ReoGridControl.a(object A_0 = {未知}, unvell.ReoGrid.Events.WorksheetRemovedEventArgs A_1 = {未知})    C#
    unvell.ReoGrid.dll!bq.s()    C#
    unvell.ReoGrid.dll!bq.q()    C#
    unvell.ReoGrid.dll!bq.Dispose()    C#
    unvell.ReoGrid.dll!unvell.ReoGrid.ReoGridControl.Dispose(bool disposing = {未知})    C#
    System.dll!System.ComponentModel.Component.Dispose()    C#

Offline

#2 2016-10-19 04:13:49

qxzhu
Member
Registered: 2016-08-05
Posts: 39

Re: 退出错误

退出的时候需要一个一个工作表移除吗?

Offline

#3 2016-10-19 05:33:11

oops
Moderator
Registered: 2015-11-03
Posts: 54

Re: 退出错误

确认中。。。退出时不需要移除工作表。这个似乎是资源已经释放,但是控件还在尝试绘制到屏幕上。可以试试退出时先把控件从窗体中移除掉,或者设置 Visible 为 false。

Offline

#4 2016-10-19 06:16:16

qxzhu
Member
Registered: 2016-08-05
Posts: 39

Re: 退出错误

好象可以了

Offline

#5 2016-12-10 15:40:59

oops
Moderator
Registered: 2015-11-03
Posts: 54

Re: 退出错误

请问怎么解决的?

Offline

Board footer

Powered by FluxBB