Crash 32 bit debug
« on: 29 July 2016, 16:42:18 »
Hello, I am trying to make my application work for 32 bit machines. I use Visual Studio 2015 under win 10. I have downloaded the tgui libs for x86 and I can compile without problems.
Even if I run in release mode all works ok, only when trying to run in debug mode.

Here a very little test

Code: [Select]
#include <TGUI/TGUI.hpp>

int main()
{
tgui::Theme::Ptr theme = std::make_shared<tgui::Theme>("gui.cfg");
if (theme != nullptr)
tgui::Label::Ptr LABEL_TEMPLATE = theme->load("label");

return 0;
}

and here is the config file

Code: [Select]
Label {
    TextColor : (10, 10, 10);
}

Any ideas?

Thank you

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Crash 32 bit debug
« Reply #1 on: 29 July 2016, 16:56:30 »
Perhaps you are still linking to the release libraries of SFML or TGUI?

Re: Crash 32 bit debug
« Reply #2 on: 29 July 2016, 17:02:05 »
No, it seems correct. And doing the same on the 64 bit all works well.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Crash 32 bit debug
« Reply #3 on: 29 July 2016, 17:27:53 »
Could you send me the .vcxproj file of your project (e.g. attach it to your forum post)?

Re: Crash 32 bit debug
« Reply #4 on: 01 August 2016, 11:15:17 »
It is quite complex, as it it part of a big project. But the error must have been from my side, as I recompiled the whole project and now it works.

Thank you.