Skip to content

#25 language pack crashes#65

Closed
merktj wants to merge 11 commits into
ebu:mainfrom
merktj:ial_language_pack_crashes
Closed

#25 language pack crashes#65
merktj wants to merge 11 commits into
ebu:mainfrom
merktj:ial_language_pack_crashes

Conversation

@merktj
Copy link
Copy Markdown
Collaborator

@merktj merktj commented Feb 10, 2021

As suggested by @firthm01 to fix #25, the extension first trys to insert the menus by searching for the corresponding labels. If this fails it will fall back to the hard-coded fallback positions.

After sucessfully inserting the menus by using the labels, the fallback positions are checked for correctness. However, this could also fail if other extensions are manipulating the reaper menus. So instead of causing an exception, a warning will be displayed if this check fails.

Comment thread reaper-adm-extension/src/reaper_adm/pluginmain.cpp Outdated
@firthm01
Copy link
Copy Markdown
Collaborator

firthm01 commented Apr 6, 2021

Thanks - tested, working.

However, if we could request a minor change; after discussing with Rich, we think that assertions would probably be more appropriate than message boxes after all (i.e, just assert(reaperMainMenu->checkHardcodedPosition("Text"))). The reason being that the only people that would encounter the message boxes are people who are not affected by the issue (since the text must have been successfully found to check the hardcoded indexes) so it's just going to be an inconvenience to those users since it will occur on every start up.
Hopefully with an assert, a dev should be alerted to it and can address the problem.

@merktj
Copy link
Copy Markdown
Collaborator Author

merktj commented Apr 7, 2021

The reason why I chose a warning is interference with other REAPER extensions. If these add menus too, an assertion would prohibit compatibility, while a warning on every startup could at least be acceptable. But in this case both of course is not optimal.

Edit: Since assertions only show up in Debug build, compatibility with other extensions is still ensured. Hence, I changed the warnings to assertions.

@merktj merktj force-pushed the ial_language_pack_crashes branch from 8a6f4e2 to acad80d Compare April 22, 2021 07:23
@rsjbailey
Copy link
Copy Markdown
Contributor

replaced by #91

@rsjbailey rsjbailey closed this Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extension causes REAPER crash with Language Pack installed

3 participants