Problem with form

I, i have a problemi with multiple forms. My problem is i have a form
whit 2 text box and a button. After click in button i want destroy this
form and create a new form .
How destroy the old form (disappear on screen)
I work under window

Matteo Picciolini wrote:

I, i have a problemi with multiple forms. My problem is i have a form
whit 2 text box and a button. After click in button i want destroy this
form and create a new form .
How destroy the old form (disappear on screen)
I work under window

Ok i’m try to call function close and the form disappears, but when i
close the second form i have a segmentation fault. I have two
application for the two form, i have mistake? The application is one for
the n form that i have ?

Matteo Picciolini wrote:

Matteo Picciolini wrote:

I, i have a problemi with multiple forms. My problem is i have a form
whit 2 text box and a button. After click in button i want destroy this
form and create a new form .
How destroy the old form (disappear on screen)
I work under window

Ok i’m try to call function close and the form disappears, but when i
close the second form i have a segmentation fault. I have two
application for the two form, i have mistake? The application is one for
the n form that i have ?

thanks for all i resolved …
the app class can be instantiated only once for every application not
for every form