PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → openchild and close() crashes app
openchild and close() crashes app
Iniciado por ORS, 18,mar. 2015 18:34 - 1 respuesta
Miembro registrado
4 mensajes
Publicado el 18,marzo 2015 - 18:34
Hi

I have the following scenario

WIN_MAIN -> openchild(WIN_1) -> WIN_1 -> openchild(WIN_2) -> WIN_2 -> close(WIN_1)

From WIN_2, I want to close both WIN_1 and WIN_2. How do I achieve this without crashing the App.

From the simulator it works fine, but from an Android phone it crashes the App.
What is the best set of commands to achieve this?

Thank you in advance
Publicado el 18,marzo 2015 - 21:37
Hi

as a principle, always close a window in the window from witch it was
open...

So all windows should be open from main, and all windows closed from
main, even if you need some kind of messaging between windows to do that
(a global variable and a timer may be sufficient in your case)


Of course, if your windows are not too heavy, you could put everithing
in different planes of your main window instead

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com

On 3/18/2015 12:34 PM, ORS wrote:
Hi
I have the following scenario

WIN_MAIN -> openchild(WIN_1) -> WIN_1 -> openchild(WIN_2) -> WIN_2 ->
close(WIN_1)
From WIN_2, I want to close both WIN_1 and WIN_2. How do I achieve
this without crashing the App.

From the simulator it works fine, but from an Android phone it crashes
the App.
What is the best set of commands to achieve this?

Thank you in advance