andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

timeBeginPeriod not found for exe generated on Windows 7 32bits #351

Open iXo opened 5 years ago

iXo commented 5 years ago

Hi,

this the first time I need to generate a 32bits version of a go program using andlabs/ui

Using Linux or Windows 10 64 is not a problem, but in a Windows 7 32bits system, the generated exe doesn't works, it complains that it can't find the timeBeginPeriod entry point in KERNEL.DLL

What could be the problem / solution ?

andlabs commented 5 years ago

Weird; I'm not calling that function. Does a normal Go program work? If not, you should file a bug there. (The Go runtime has a long history with that function...)

iXo commented 5 years ago

I can confirm that a simple Hello world program (https://gobyexample.com/hello-world) build and works as expected.

I tried using go v1.12 and v1.8.1 and both are doing this strange problem.

andlabs commented 5 years ago

Do you have the runtime trace?

iXo commented 5 years ago

Here are some informations, hopping that what you want. After a build, when launching the exe from the explorer, this will show this popup :

Capture-20190315151042-496x171 (sorry my os is in french)

When running the programm using go run, in the terminal I have this output :

exit status -1073741511

I don't know how to give more informations, sorry

andlabs commented 5 years ago

Ah, so there is no stack trace; this is happening during the load. Very weird.

What other packages are you importing?