codekiddy2 / Visual-Studio-gtkmm

Visual Studio 2015 Projects to build gtkmm from nowhere up to gtkmm itself
32 stars 6 forks source link

Application freezes in Windows 7 #6

Open HelpMeIAmLost opened 8 years ago

HelpMeIAmLost commented 8 years ago

I am using your pre-compiled libraries for Visual Studio 2015. On a Windows 10 machine, I set all the include and library directories, and listed ALL the lib files (just to make sure it will work). Then I copied the dll files in the source directory, ran the sample source code below and it worked as it should.

#include <gtkmm.h>

int main(int argc, char** argv)
{
    auto app = Gtk::Application::create(argc, argv);

    Gtk::Window window;
    window.set_default_size(200, 200);

    return app->run(window);
}

But when I did the same thing on a Windows 7 machine, the application freezes and I can't even close the window. There were no errors generated, just warnings for the Unicode format of the gtkmm files, same ones I have on the Windows 10 machine.

codekiddy2 commented 8 years ago

Hi, sorry for late reply. Precompiled libs were compiled and tested on Windows 10, compilation was done to strictly target x64 bit Windows 10, for Windows 7 I think compiling them again to target Windows 7 should solve the problem.

It's hard to tell which component is causing the problem without taking a close look :/

I'll leave this issue open as a reminder to come back to the issue one day and possibly apply a fix. Thank you for your report!

codekiddy2 commented 8 years ago

If anyone is still having this problem please make sure to define preprocessor macro to target Windows 7 as described in readme.txt located inside download package.

current pre-built library package is set to target Windows 10 and this could be the issue.

I don't Have Windows 7 to test, but this issue will remain open until somebody confirms pre-processor macro does/doesn't the trick.

Here is a list of macros you need: https://msdn.microsoft.com/en-us/library/6sehtctf.aspx

MartinHerren commented 8 years ago

I can confirm the same issue using the latest release 1.2 win32 debug.

Application starts and shows the main window but immediately goes into an 'Application not responding' state.

Tried playing with 'Target Platform' and 'Target Platform Version' in my project settings, as well as overriding the preprocessor definitions WINVER and _WIN32_WINNT to 0x0601 (the provided property sheets sets them to 0x0a00) but to no avail. I guess i'll have to do a rebuild for Windows 7.