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 » U++ Library : Other (not classified elsewhere) » U++ 612-dev 3 HomeBudget run time problem
U++ 612-dev 3 HomeBudget run time problem [message #7532] Thu, 04 January 2007 20:39 Go to next message
DuncanShortland is currently offline  DuncanShortland
Messages: 45
Registered: January 2006
Member
HomeBudget compiles OK and runs OK until entries are made into the database. Application closed and assume that the dataabse is updated.

On reload fails with debug stack:

Upp::AssertFailed(file=7b1d58 "c:\upp\uppsrc\Core/Value.h, line 421 ........
Upp::RichValueRep<Upp::String>::Cast(p=1170bc8->{refcount=1}
Upp::RichValue<Upp::String>::Extract(v=135044->{ptr=1170bc8)
Upp::Value::operator Upp::String()
HomeBudget::LoadDates()
with 'Assertion failed in c:\upp\uppsrc\Core/Value.h, line 421 dynamic_cast<const RichValueRep *>(p)'

Application will only run correctly if HomeBudget.db3 is replaced by a previous version copied prior to changing the database in \upp\out\.....

Trying to debug but I have insufficient experience in the system to make much headway.

Is -dev3 too unstable at the present time?

Re: U++ 612-dev 3 HomeBudget run time problem [message #7533 is a reply to message #7532] Thu, 04 January 2007 21:56 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Thanks. Something to invastigate...
Re: U++ 612-dev 3 HomeBudget run time problem [message #7534 is a reply to message #7533] Thu, 04 January 2007 22:30 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Ok. This is fixed now. The bug appeared because sqlite wrapper maps date into DATA_V value now (before date was treated as string)

Hot fixes. Change:

money(DT) = ScanDate(String(SQL[DT]));

to:
money(DT) = SQL[DT];


and

month.Add(SQL[0], ScanDate(String(SQL[1]));

to:
month.Add(SQL[0], SQL[1]);



Previous Topic: Strange behaviour of ColumnList
Next Topic: [Feature request] Libraries!
Goto Forum:
  


Current Time: Sun May 05 07:57:52 CEST 2024

Total time taken to generate the page: 0.02178 seconds