Guest User

Untitled

a guest
Aug 11th, 2012
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. C Builder Forms crashing
  2. void __fastcall TfrmStart::btnRunClick(TObject *Sender)
  3. {
  4. frmStart->Hide();
  5. Application->CreateForm(__classid(TfrmRunning), &frmRunning);
  6. }
  7.  
  8. void __fastcall TfrmRunning::FormCreate(TObject *Sender)
  9. {
  10. frmRunning->Show();
  11. //Here i do a lot of stuff to run my main program
  12. }
  13.  
  14. void __fastcall TfrmRunning::FormCreate(TObject *Sender)
  15. {
  16. //frmRunning->Show();
  17. this->Show();
  18. }
  19.  
  20. void __fastcall TfrmRunning::FormCreate(TObject *Sender)
  21. {
  22. //frmRunning->Show();
  23. Show();
  24. }
  25.  
  26. void __fastcall TfrmStart::btnRunClick(TObject *Sender)
  27. {
  28. //frmStart->Hide();
  29. this->Hide();
  30. ...
  31. }
  32.  
  33. void __fastcall TfrmStart::btnRunClick(TObject *Sender)
  34. {
  35. //frmStart->Hide();
  36. Hide();
  37. ...
  38. }
  39.  
  40. void __fastcall TfrmStart::btnRunClick(TObject *Sender)
  41. {
  42. frmRunning = new TfrmRunning(Application);
  43. frmRunning->Show();
  44. Hide();
  45. }
  46.  
  47. __fastcall TfrmRunning::TfrmRunning(TComponent *Owner)
  48. : TForm(Owner)
  49. {
  50. // initialize this Form as needed...
  51. }
Advertisement
Add Comment
Please, Sign In to add comment