in meinem Program Mail (das lief schon mal)
passiert jetzt foldendes:
Nach dem Start mit F9 wird der Code Compeliert (ohne Fehler)
und dann gestartet.
Das Formular blitzt kurz auf und verschwindet aber wieder.
Das Programm läuft aber weiter, sprich das Icon in der Tastleiste ist da.
Windows 10 Lazarus 3.4 FPC 3.2.2
Projekt Datei:
Code: Alles auswählen
program mail;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}
cthreads,
{$ENDIF}
{$IFDEF HASAMIGA}
athreads,
{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, unit1, Eingabe, indylaz
{ you can add units after this };
{$R *.res}
begin
RequireDerivedFormResource:=True;
Application.Scaled:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
Unit 1 FormCreate
Code: Alles auswählen
procedure TForm1.FormCreate(Sender: TObject);
var heute: string;
var h1: integer;
var h3: string;
begin
Label1.Caption:='©LINSOFT M A I L Datum: '+FormatDateTime('DD.MM.YYYY',now);
Label2.Caption:='';
Closestat:=0;
............................
Da kommt das Programm aber nie hin.
Hat jemand eine Ahnung warum?
Gruß
Jürgen