Home » U++ Library support » ScatterDraw & ScatterCtrl » TestScatter2 compile error
TestScatter2 compile error [message #46695] |
Thu, 14 July 2016 09:05 |
|
deep
Messages: 265 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 [Using ScatterCtrl] [message #46730 is a reply to message #46716] |
Thu, 21 July 2016 07:19 |
|
deep
Messages: 265 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 |
|
koldo
Messages: 3394 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
|
|
|
Goto Forum:
Current Time: Fri Sep 20 03:30:18 CEST 2024
Total time taken to generate the page: 0.03284 seconds
|