cb bug?
cb 6.0, updaet 3, Win2k Prof.
创建一个简单的form, 就会stack overflow, 下面是代码.
class TForm2 : public TForm
{
__published: // IDE-managed Components
private: // User declarations
public: // User declarations
__fastcall TForm2(TComponent* Owner, int id); // special contructor
};
// special contructor
__fastcall TForm2::TForm2(TComponent* Owner, int id)
: TForm(Owner)
{
}
Form1 创建一个 Form2.
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TForm2* f = new TForm2(NULL, 1);
f->ShowModal();
delete f;
}
请问有谁知道这是什么原因?谢谢!