|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl problem
|
|
Re: GridCtrl problem [message #21015 is a reply to message #21003] |
Sat, 25 April 2009 17:12   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello unodgs
It is difficult for me to find the root cause. I have got the exception in three places, always trying to access hitems[] elems over its scope and always when moving the mouse over the Grid time after the Grid is filled with data.
I suppose this is circumstantial, but I usually use grids with few rows but hundreds of columns.
I have began to enclose the code with problems with if (hitems.GetCount() > hcol) {
...
} This is not the solution but it lets me follow.
Best regards
Koldo
-
Attachment: Screen.JPG
(Size: 181.27KB, Downloaded 252 times)
Best regards
Iñaki
[Updated on: Sat, 25 April 2009 23:06] Report message to a moderator
|
|
|
Re: GridCtrl problem [message #21351 is a reply to message #21015] |
Thu, 14 May 2009 13:56   |
|
koldo wrote on Sat, 25 April 2009 11:12 | Hello unodgs
It is difficult for me to find the root cause. I have got the exception in three places, always trying to access hitems[] elems over its scope and always when moving the mouse over the Grid time after the Grid is filled with data.
I suppose this is circumstantial, but I usually use grids with few rows but hundreds of columns.
I have began to enclose the code with problems with if (hitems.GetCount() > hcol) {
...
} This is not the solution but it lets me follow.
Best regards
Koldo
|
This is workaround. The problem is hcol should never point to not existing column. I guess the problem is in GetMouseCol. Could you pleas post workable test case similar to your real app?
|
|
|
Re: GridCtrl problem [message #21353 is a reply to message #21002] |
Thu, 14 May 2009 16:10  |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello unodgs
I will try it. Now is not a good time as I am using the program with other people so I do not want it to crash.
But of course the way to solve the problem is to begin with preparing a test case.
Best regards
Koldo
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Mon Apr 28 20:41:04 CEST 2025
Total time taken to generate the page: 0.00488 seconds
|
|
|