Hi folks,
I have a problem with a Win64 Application - the same code works well in Win32, so I think it's an compiler issue. I work with CT 6.4
Calling the function GetSize from ID2D1Bitmap makes the problem
the function is declared as
ID2D1Bitmap = interface(ID2D1Image)
['{a2296057-ea42-4099-983b-539fb6505426}']
function GetSize: TD2D1_SIZE_F; stdcall;
Calling the function the compiler makes the code:
# [56] lBitmapSize := lBitmap.GetSize();
movq -48(%rbp),%rcx
movq -48(%rbp),%rax
movq (%rax),%rax
call *32(%rax)
movq %rax,-128(%rbp)
the function crashes on the line as you see in the attached picture.
The image itself is valid, could be drawn etc. but calling the get function fails. Also other functions like GetPixelSize fails.
Could be the problem that the rcx register is assigned, and Windows request the rdx register ?
How to solve this?
best regards