Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   How to "ShowModal" (http://www.programmingforums.org/showthread.php?t=12553)

L.Sharp Feb 10th, 2007 1:07 PM

How to "ShowModal"
 
Hello! I am new on C++ and today I have a very big problem. I created a 2 forms (later will be more) program. In the first form I have a button that does this:
:

Form2->ShowModal();
. But on Form2, after I put this code:
:

Form2->Close();
i get the following error when I try to open my program: "EAccessViolation" and my program doesn't start.
I think it is because of my
:

Form2->Close();
code, because when I comment this code, my program works very well. So. How to correctly "ShowModal" a form, then deinitialize it correctly?

Programming environment: Borland CBuilder 6(Trial Version)


All times are GMT -5. The time now is 1:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC