From 57417393606a1adc91910cc7306931e770f040f8 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 23 Jan 2014 20:59:54 +0100 Subject: [PATCH] Issue #585 fixed (Companion stack overflow on Windows, already fixed on SVN) --- companion/src/modeledit/modeledit.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/companion/src/modeledit/modeledit.cpp b/companion/src/modeledit/modeledit.cpp index 8a22cbc54..b9e0e8e5b 100644 --- a/companion/src/modeledit/modeledit.cpp +++ b/companion/src/modeledit/modeledit.cpp @@ -118,14 +118,16 @@ void ModelEdit::launchSimulation() simuData->generalSettings = generalSettings; simuData->models[modelId] = model; if (GetEepromInterface()->getCapability(SimulatorType)) { - xsimulatorDialog sd(this); - sd.loadParams(*simuData, modelId); - sd.exec(); + xsimulatorDialog *sd = new xsimulatorDialog(this); + sd->loadParams(*simuData, modelId); + sd->exec(); + delete sd; } else { - simulatorDialog sd(this); - sd.loadParams(*simuData, modelId); - sd.exec(); + simulatorDialog *sd = new simulatorDialog(this); + sd->loadParams(*simuData, modelId); + sd->exec(); + delete sd; } delete simuData; }