MantisBT - Ecere SDK
View Issue Details
0001142Ecere SDKecpublic2018-04-27 18:002018-04-27 18:00
slothtrop 
 
normalminoralways
newopen 
x86:windowsWindows7
0.44.15 
 
0001142: issue with Remove function not compiling unless the property executing it is instantiated seperately
issue with Remove function not compiling unless the property executing it is instantiated seperately

works:
Array<PolygonRing> rings = selectedGeoPoly.area.rings;
rings.Remove((IteratorPointer)(rings.array+polyID));

breaks:
selectedGeoPoly.area.rings.Remove((IteratorPointer(selectedGeoPoly.area.rings.array+polyID));

yielding errors:
src\editController.ec:511:53: warning: passing argument 1 of '__internal_VirtualMethod' from incompatible pointer type [-Wincompatible-pointer-types]
src\editController.ec:511:53: note: expected 'struct __ecereNameSpace__ecere__com__Instance *' but argument is of type 'struct __ecereNameSpace__ecere__com__IteratorPointer *'
src\editController.ec:511:28: error: too few arguments to function '__internal_VirtualMethod'
src\editController.ec:502:22: warning: unused variable 'ring' [-Wunused-variable]
src\editController.ec:511:16: warning: unused variable '__simpleStruct3' [-Wunused-variable]
No tags attached.
Issue History
2018-04-27 18:00slothtropNew Issue

There are no notes attached to this issue.