Skip to content

Commit

Permalink
fixed release crash
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandpaGameHacker committed Aug 26, 2023
1 parent d194e37 commit a428dcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
14 changes: 5 additions & 9 deletions ClassDumper3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ void ClassDumper3::GUILoop()
if (done)
break;
DXApp.CreateFrame();
for (std::shared_ptr<IWindow> window : IWindow::WindowList)
// Get a copy of the list incase we add one during draw
std::vector<std::shared_ptr<IWindow>> WindowListCopy = IWindow::WindowList;
for (auto& Window : WindowListCopy)
{
window->Tick();
Window->Tick();
}
DXApp.RenderFrame();
}
Expand Down Expand Up @@ -141,13 +143,7 @@ void ClassDumper3::ClearLog()
LogWnd->Clear();
}

int main()
{
ClassDumper3 Dumper;
Dumper.Run();
}

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow)
{
ClassDumper3 Dumper;
Dumper.Run();
Expand Down
7 changes: 5 additions & 2 deletions ClassDumper3.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<Link>
<TargetMachine>MachineX86</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<SubSystem>Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -103,7 +103,7 @@
<Link>
<TargetMachine>MachineX86</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
Expand Down Expand Up @@ -132,6 +132,9 @@
<LanguageStandard_C>stdc17</LanguageStandard_C>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="ClassDumper3.cpp" />
Expand Down

0 comments on commit a428dcd

Please sign in to comment.