Hi
Using the latest stable release for Java project I get runtime Fatal exception :
class: consoleapplication6/TGIS_PvlViewerBmp,
method: MoveViewportEx
signature: (LRemObjects/Elements/System/VarParameter;
LRemObjects/Elements/System/VarParameter;)V)
Inconsistent args_size for invokeinterface
namespace consoleapplication6;
uses
java.util;
type
Program = class
public
class method Main(args: array of String): Int32;
begin
var bmp := new TGIS_PvlViewerBmp();
// var x := 0.0;
//var y := 0.0;
// bmp.MoveViewportEx(x,y);
end;
end;
IGIS_Viewer = public interface
procedure MoveViewportEx( var _dx, _dy : Double ) ;
end ;
TGIS_PvlViewerBmp = public class (IGIS_Viewer)
private
PlatformControlVwr : IGIS_Viewer ;
public
method MoveViewportEx( var _dx, _dy : Double ) ;
begin
if assigned( PlatformControlVwr ) then
PlatformControlVwr.MoveViewportEx( _dx, _dy ) ;
end;
end;
end.
consoleapplication6.zip (4.2 KB)
The problem is using var and Double. If I change Double to other types, it works. If I use java.lang.Double, it also works. So there must be something with RemObjects.Oxygene.System.Double. Please check and let me know if there is a fast way to solve the problem.
Thanks, regards
Artur