Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl crash when cancel insert/update
GridCtrl crash when cancel insert/update [message #12382] Sat, 27 October 2007 03:18 Go to next message
bkvt99 is currently offline  bkvt99
Messages: 2
Registered: October 2007
Junior Member
Hi!

Playing with GridCtrl i found a bug in the GridCtrl behavior causing it to crash with `assertion failure` exception. Canceling insert/update and showing exclamation dialog causes strange focusing/input behavior and can lead to crash.

it is easy to reproduce with the attached sample.

how to:
push `append` button on grid toolbar, do not enter anything, just click on the grid below that lone line, that will cause call to OnInsert() which calls to grid' CancelInsert() and shows an exclamation dialog. the exclamation dialog is on top but the grid still has focus and can receive keyboard & mouse input. now press escape key - the lone grid line disappears. and now click on exclamation dialog' `ok` button.

oops! here we get the crash.

Tested with Upp 709-dev1.

Any ideas ?

Bob.

[Updated on: Sat, 27 October 2007 03:22]

Report message to a moderator

Re: GridCtrl crash when cancel insert/update [message #12384 is a reply to message #12382] Sat, 27 October 2007 10:05 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Thank you for the testcase! The good news is I knew the bug and it's already fixed. The problem was toolbar rebuilding process which casued stealing the focus by the toolbar. The fix will be available in the new dev release.
Re: GridCtrl crash when cancel insert/update [message #12385 is a reply to message #12382] Sat, 27 October 2007 10:57 Go to previous message
bkvt99 is currently offline  bkvt99
Messages: 2
Registered: October 2007
Junior Member
Thank you for reply. Can you say when that new dev release will be available ?
Previous Topic: Sizable in x-direction only
Next Topic: Selecting a cell in gridctrl
Goto Forum:
  


Current Time: Sun Apr 28 23:20:49 CEST 2024

Total time taken to generate the page: 0.04084 seconds