# Problem with form

**URL:** <https://www.ruby-forum.com/t/problem-with-form/178196>\
**Category:** wxRuby\
**Created:** [October 30, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/problem-with-form/178196 "2009-10-30T16:37:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@tejo](https://www.ruby-forum.com/u/tejo)\
**Post date:** [October 30, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/problem-with-form/178196/1 "2009-10-30T16:37:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tejo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@tejo](https://www.ruby-forum.com/u/tejo)\
**Post date:** [October 30, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/problem-with-form/178196/2 "2009-10-30T17:24:17Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![tejo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@tejo](https://www.ruby-forum.com/u/tejo)\
**Post date:** [October 30, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/problem-with-form/178196/3 "2009-10-30T18:46:19Z")

</div>

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
