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 » ScatterDraw & ScatterCtrl » TestScatter2 compile error
TestScatter2 compile error [message #46695] Thu, 14 July 2016 09:05 Go to next message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

Recently installed Lubuntu 16.04
UPP Version 9903(64bit)(GCC)(C++11) compiled from source

I am getting following errors

/root/upp/bazaar/Scatter/Scatter.cpp:1951:49: error: invalid conversion from 'long int' to 'Upp::CNULLer' [-fpermissive]

Second Error
/root/upp/bazaar/Scatter/Scatter.cpp:1951:49: error: no matching function for call to 'Upp::Event<Upp::String&, int, double>::Event(NULL)'
  popLT(Null), popRB(Null), showContextMenu(false)
                                                 ^
In file included from /root/upp/uppsrc/Core/Core.h:293:0,
                 from /root/upp/uppsrc/Draw/Draw.h:6,
                 from /root/upp/uppsrc/RichText/RichText.h:4,
                 from /root/upp/uppsrc/CtrlCore/CtrlCore.h:4,
                 from /root/upp/uppsrc/CtrlLib/CtrlLib.h:4,
                 from /root/upp/bazaar/Scatter/PopUpText.h:5,
                 from /root/upp/bazaar/Scatter/Scatter.h:9,
                 from /root/upp/bazaar/Scatter/Scatter.cpp:1,
                 from /root/upp.out/examples-bazaar/Scatter/GCC.Debug.Debug_Full.Gui.Shared/$blitz.cpp:3:


Warm Regards

Deepak
Re: TestScatter2 compile error [message #46704 is a reply to message #46695] Fri, 15 July 2016 22:56 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3248
Registered: August 2008
Senior Veteran
Hello Deepak

Bazaar/Scatter is unmaintained. It is acknowledged to use ScatterCtrl instead.


Best regards
Iñaki
Re: TestScatter2 compile error [message #46707 is a reply to message #46704] Sat, 16 July 2016 17:44 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 823
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello Koldo,

I think we can remove all Scatter related packages from bazaar and keep only this in uppsrc. Having to the same packages (one newer that compiles and one older that does not) is definitely not good idea. Please notice that in the past we removed Docking from bazaar and keep only version in uppsrc.

What do you think - can we easily removed it from bazaar. If we have any examples in bazaar we can move it to regular upp examples. But we need to be sure that it works fine with latest U++.

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.
Re: TestScatter2 compile error [message #46716 is a reply to message #46707] Mon, 18 July 2016 14:01 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3248
Registered: August 2008
Senior Veteran
Yes, it is the best idea. It will be removed.

Best regards
Iñaki
Re: TestScatter2 compile error [Using ScatterCtrl] [message #46730 is a reply to message #46716] Thu, 21 July 2016 07:19 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

Now I am using ScatterCtrl.

Moving from Scatter to ScatterCtrl

One major difference I noticed is
In Scatter Data series 
Vector<XY> s1 can be released once it is added to scatter. It can have local scope.

But Vector<Pointf> s1 must exists after it is added to ScatterCtrl.
If s1 scope is local within function then program crashes with Assertion failed error.


It took quite some time to realize that my data series should have global scope.


Warm Regards

Deepak

[Updated on: Thu, 21 July 2016 10:43]

Report message to a moderator

Re: TestScatter2 compile error [Using ScatterCtrl] [message #46734 is a reply to message #46730] Thu, 21 July 2016 08:55 Go to previous message
koldo is currently offline  koldo
Messages: 3248
Registered: August 2008
Senior Veteran
Yes, that's it. ScatterDraw does not store any data series.

When you add a data series to a ScatterDraw or ScatterCtrl (that is derived from ScatterDraw), ScatterDraw stores a reference to it and does not copy it. This way, when for example Paint() is called, original data series has to be available. If it is deleted, you will get an assert.


Best regards
Iñaki
Previous Topic: IDE Compile error from latest git sources
Next Topic: ScatterCtrl: New data handling features
Goto Forum:
  


Current Time: Fri Jan 22 17:50:04 CET 2021

Total time taken to generate the page: 0.01176 seconds