Vista, Visual 2005, failed to initialize correctly Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
remi
Earned a small fee
Earned a small fee
Posts: 17
Joined: Fri Nov 25, 2005 10:49 pm

Vista, Visual 2005, failed to initialize correctly

Post by remi » Thu Aug 02, 2007 11:46 am

Hello,

I have recently upgraded to wxWidgets 2.8.4 and, in the same time, to visual c++ 2005. With this new configuration, I have problems when running under vista (no problem at all under windows XP).

Here is a list of configuration which work and doesn't work :

Old config :
wxWidgets2.6.0, Visual 2003, app runned on XP OK
wxWidgets2.6.0, Visual 2003, app runned on Vista OK

New Config :
wxWidgets2.8.4, Visual 2005, app runned on XP OK
wxWidgets2.8.4, Visual 2005, app runned on Vista FAILED, error message when I start the app : "the application refuse to initialize correctly".


Notice that my app use glCanvas.

As you can see, I haven't yet tested the important hybrid configuration wxWidgets2.6.0 - Visual 2005 - Vista but I would like to ask before if there is something special/obvious to do when upgrading to wxWidgets2.8.4 or Visual 2005 when running on vista ?


Thank you very much, help would be greatly appreciated.

R

remi
Earned a small fee
Earned a small fee
Posts: 17
Joined: Fri Nov 25, 2005 10:49 pm

Post by remi » Mon Aug 06, 2007 9:03 am

Hello,

As I have no responses, I just want to tell that if I reduce my init code to this :

Code: Select all

IMPLEMENT_APP(CAppWX);

bool CAppWX::OnInit()
{ 
  return true;
}
I have always the same problem (work on XP, not on Vista).

Perhaps that the issue is DLL (runtime library) related or manifest related ? Should I generate the manifest file in a special way ? Should I include some other references coming from the wxWidget libs ?

Thank you very much for your help.

R

remi
Earned a small fee
Earned a small fee
Posts: 17
Joined: Fri Nov 25, 2005 10:49 pm

Post by remi » Tue Aug 07, 2007 11:21 am

Problem solved.

When leaving manifest file into the same dir of the exe file, it's not working.
When including manifest file into exe, it's working.

Strange, because I have red in MSDN that the behavior should be the same whith embeded and not embembed manifest...

Best,

R

Post Reply