How do you call SetFillColor ? That call does not appear in your code, but it seems the one causing the issue.
In any case, it seems that you are calling SetFillColor with an integer (64001) which can’t be represented with type short, which is what SetFillColor expects. Can you check that you are passing the right color value? @couet is 64001 a correct color value?
Color_t is a short. The max short value is 32767. So indeed 64000 is too big. So why, @Alkass, did you say it works with C++ ? it should not … Can you post the C++ version you made ?