?
Hallo,
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
Application->Initialize();
if(AnsiString(GetCommandLine()).UpperCase().Pos("/NOSPLASH") == 0)
{
splash = new Tsplash(NULL);
splash -> Show();
Application -> ProcessMessages();
}
Application->CreateForm(__classid(TMainForm), &MainForm);
Application->ShowMainForm = false;
Application->Run();
return 0;
}
Das ist der Code von project.cpp
Und hier die Freigabe der SplashForm in MainForm->FormActivate():
if (splash != NULL)
{
delete splash;
splash = NULL;
}
Ich hatte diesen Code zur Freigabe des Forms auch schon in MainForm->Show() --> der gleiche Fehler
Udo11