simonkrauter/NiGui

gdi+ status 18 on image.loadFromFile()

nobodybusiness opened this issue · 1 comments

When trying to run app in Windows there is error message like in screenshot (https://drive.google.com/file/d/1sjqSQYcinqL93HpZA1Z1iZB18_7A0iui/view?usp=share_link).

From Microsoft page this error means:
Indicates that the GDI+API is not in an initialized state. To function, all GDI+ objects require that GDI+ be in an initialized state. Initialize GDI+ by calling
GdiplusStartup.

Im not sure where could I make mistake.

Additionaly I have tried to use gtk3 on windows with forceGTK.
Unfortunately this also doesn't work for me.
I installed gtk3 and demo app (which is not bundle with gtk) and it runs without problems.
But my app give error not libgtk-3-0-dll (https://drive.google.com/file/d/16PbfZEDea9q9j3rFcfQS9XkstXOx96Uc/view?usp=share_link).

Any help or suggestions how to resolve my problems would be appreciated :)

For first issue I have found solution.
loadFromFile cannot be call before app init.
I thought of image.loadFromFile as constat to put on beggining of file :<
Problem solved, but thanks for awesome tool for building simple apps ! :)