Menu

#95 IsAppThemed call in GR32_XPThemes from DLL can crash app

pending-wont-fix
nobody
None
7
2012-03-24
2010-07-26
Anonymous
No

i have got various crash reports from users of my application that indicate that the app crashed when trying to call IsAppThemed. gr32 is being used through a dll file. the official msdn documentation states "Do not call this function during DllMain or global objects contructors. This may cause invalid return values in Windows Vista and may cause Windows XP to become unstable.". IsAppThemed should not be called after initialisation (dllmain in this case) or a special handler for dll files should be integrated in the code

Discussion

  • Christian-W. Budde

    • priority: 5 --> 7
    • status: open --> pending-wont-fix
     
  • Christian-W. Budde

    Please use the conditional define XPTHEMES and undefine it or edit a local copy of the the GR32,inc file.

    While there are possible solutions, I'm not sure if any changes might not cause other issues at the same time. Perhaps others from the GR32 team can review this issue...

     
  • DOCa Cola

    DOCa Cola - 2012-07-05

    probably the best fix would be to create the TThemeNexus class when it is actually needed (for example when a control is created), then it wouldn't be called directly from DLLMain.

     
MongoDB Logo MongoDB