Skip to content

fix(guiedit): Fix crash on GuiEdit launch by initializing GlobalLanguage after GlobalData#1576

Merged
xezon merged 1 commit into
TheSuperHackers:mainfrom
Mauller:fix-guiedit-init
Sep 15, 2025
Merged

fix(guiedit): Fix crash on GuiEdit launch by initializing GlobalLanguage after GlobalData#1576
xezon merged 1 commit into
TheSuperHackers:mainfrom
Mauller:fix-guiedit-init

Conversation

@Mauller

@Mauller Mauller commented Sep 14, 2025

Copy link
Copy Markdown

This PR fixes a startup crash within GuiEdit that was introduced by changed in Global Languge in PR #1457

This crash occured due to the global language object being initialised before global data in GuiEdit.
Global language is now dependent on being initialised after Global Data. This is due to the recent need for the user data directory string when retrieving options.ini settings within global language.

The user data directory string is initialised when the global data is initialised, resulting in a null string being handled within global languages, resulting in the crash.

For some reason the VS22 builds were immune to the issue. But the VC6 builds would always crash.

@Mauller Mauller self-assigned this Sep 14, 2025
@Mauller Mauller added Major Severity: Minor < Major < Critical < Blocker Tools Affects Tools only ThisProject The issue was introduced by this project, or this task is specific to this project labels Sep 14, 2025
@Mauller Mauller changed the title fix(guiedit): initialize global language after global data to fix initialization dependency fix(guiedit): initialize global language after global data to fix initialization dependency in GuiEdit Sep 14, 2025
@Mauller Mauller changed the title fix(guiedit): initialize global language after global data to fix initialization dependency in GuiEdit fix(guiedit): initialize global language after global data to fix initialization dependency Sep 14, 2025
@xezon xezon changed the title fix(guiedit): initialize global language after global data to fix initialization dependency fix(guiedit): Initialize global language after global data to fix initialization dependency Sep 15, 2025
@xezon xezon changed the title fix(guiedit): Initialize global language after global data to fix initialization dependency fix(guiedit): Fix crash on GuiEdit launch by initializing GlobalLanguage after GlobalData Sep 15, 2025
@xezon xezon merged commit f8c394e into TheSuperHackers:main Sep 15, 2025
21 checks passed
@xezon xezon deleted the fix-guiedit-init branch September 15, 2025 18:42
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Major Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project Tools Affects Tools only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants