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 » TreeCtrl » Bug crashing application in Upp2008.1
icon4.gif  Bug crashing application in Upp2008.1 [message #20727] Thu, 02 April 2009 08:44 Go to next message
qapko is currently offline  qapko
Messages: 53
Registered: October 2007
Location: Slovakia
Member
Hello,
In TreeCtrl.cpp of Upp2008.1 it seems to be bug that may crash application (by assertion in Vector) in some situations when closing the tree node. It looks like in code at line 418:

if(treesize != sb.GetTotal()) {
sb.SetTotal(treesize);
Refresh();
}
cursor = -1;

there should be:

cursor = -1;
if(treesize != sb.GetTotal()) {
sb.SetTotal(treesize);
Refresh();
}

I have looked at the newest night build and there the code seems to be changed slightly.

Have a nice day Smile
Gabi
Re: Bug crashing application in Upp2008.1 [message #20728 is a reply to message #20727] Thu, 02 April 2009 09:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11700
Registered: November 2005
Ultimate Member
qapko wrote on Thu, 02 April 2009 02:44

Hello,
In TreeCtrl.cpp of Upp2008.1 it seems to be bug that may crash application (by assertion in Vector) in some situations when closing the tree node. It looks like in code at line 418:

if(treesize != sb.GetTotal()) {
sb.SetTotal(treesize);
Refresh();
}
cursor = -1;

there should be:

cursor = -1;
if(treesize != sb.GetTotal()) {
sb.SetTotal(treesize);
Refresh();
}

I have looked at the newest night build and there the code seems to be changed slightly.

Have a nice day Smile
Gabi


Well, all I can suggest is to use and check the latest U++...

Re: Bug crashing application in Upp2008.1 [message #20729 is a reply to message #20727] Thu, 02 April 2009 10:28 Go to previous messageGo to next message
qapko is currently offline  qapko
Messages: 53
Registered: October 2007
Location: Slovakia
Member
Yes, I was using latest dev builds till 2008.1 was released. Then I realized it works good for me so I haven't updated yet - mainly because the GUI of my applications is something like freezed now and not actively developed. Is there any plan for releasing 2009.1, or would you suggest just to install and use dev version from today for example?

Gabi
Re: Bug crashing application in Upp2008.1 [message #20738 is a reply to message #20727] Fri, 03 April 2009 11:29 Go to previous message
qapko is currently offline  qapko
Messages: 53
Registered: October 2007
Location: Slovakia
Member
Thanks for your advice. I've installed upp1032 and I'm impressed - it's fine to see the great advance. Just I can't find package AllForI18n so I copied it from version 2008.1. I will report it in localization thread.

Gabi
Previous Topic: PopUpTree related questions
Next Topic: bug with shift select
Goto Forum:
  


Current Time: Sat Feb 16 17:16:20 CET 2019

Total time taken to generate the page: 0.00739 seconds