i have been working on a project for a couple months, building a gui program using c++ and wxwidgets.
in the last couple of days, i was trying to get 2 classes/windows to share data that a wxChoice widget has so that if the data in the wxChoice is altered, it is shown in both locations (the main frame's wxChoice widget and also the Template Editor's wxChoice widget).
I created a circular dependency doing this, so now I have forward declared the classes to avoid this problem, but it seems that since then, I have created some new problem where the project will build successfully with no problems, but getting the .exe file to run successfully is sporadic (something like 1 in 7-10 attempts to run the program works).
What could posibly be causing this behaviour? Prior to this point, the program EXE would launch every time.