- This topic has 4 replies, 2 voices, and was last updated 15 years, 9 months ago by
Teasy.
-
AuthorPosts
-
May 15, 2010 at 12:13 pm #42523
Thank you for the demo, I'll check it soon.
May 21, 2010 at 10:52 am #42595Any luck?
May 28, 2010 at 5:51 am #42632Hello.
I haven't TCQLabel and TCQBitBtn controls, so, they were changed to standard TLabel and TBitBtn.
Your problem occurs because this code in the project source is not good :CODEbCanStart := True;Application.Initialize;
Application.MainFormOnTaskbar := True;Application.CreateForm(TDataModule3, DataModule3);
Form1 := TForm1.Create(Application);
if Form1.ShowModal <> mrOK then
bCanStart := False;if not bCanStart then
begin
Form1.Free;
Application.Terminate;
Exit;
end;Application.CreateForm(TForm2, Form2);
Application.Run;You have memory leaks there, and these leaks are reason of the problem.
Problem will be solved if you will use a code like this :CODEApplication.Initialize;
Application.MainFormOnTaskbar := True;Application.CreateForm(TDataModule3, DataModule3);
Form1 := TForm1.Create(Application);
bCanStart := Form1.ShowModal = mrOK;
if bCanStart then Application.CreateForm(TForm2, Form2);
Application.Run;May 31, 2010 at 1:17 pm #42691Hi Serge,
Thanks for the solution.
Sorry for the inconvenience with my CQLabel en ditto button
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)- You must be logged in to reply to this topic.