IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Lazarus Pascal Discussion :

Error 1407 sous Windows [Lazarus]


Sujet :

Lazarus Pascal

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé Avatar de maxiNoob
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    129
    Détails du profil
    Informations personnelles :
    Localisation : France, Gard (Languedoc Roussillon)

    Informations forums :
    Inscription : Octobre 2009
    Messages : 129
    Par défaut Error 1407 sous Windows
    Alors là je ne comprend rien, je n'ai rien modifié ds le programme
    et je me prend ça ds les dents



    S.O.S.

    la compilation semble aller à son terme, j'ai le message: compilation réussie

    le programme semble planter à la lecture du projet (lpr)

  2. #2
    Membre chevronné
    Homme Profil pro
    Inscrit en
    Janvier 2010
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Janvier 2010
    Messages : 235
    Par défaut
    Voilà qui ressemble à ton problème :

    http://www.lazarus.freepascal.org/in...p?topic=8125.0

  3. #3
    Membre confirmé Avatar de maxiNoob
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    129
    Détails du profil
    Informations personnelles :
    Localisation : France, Gard (Languedoc Roussillon)

    Informations forums :
    Inscription : Octobre 2009
    Messages : 129
    Par défaut
    merci de ta réponse j'avais parcouru ce sujet, en gros il manquait Application.initialize à son projet ou bien il était mal classé, or chez moi il est bien présent (voir le screenshot), donc je nage et du coup plus rien ne marche

  4. #4
    Membre chevronné
    Homme Profil pro
    Inscrit en
    Janvier 2010
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Janvier 2010
    Messages : 235
    Par défaut
    Oups ! Je n'avais pas bien regardé ta capture.

    A ta place mettrais toutes les lignes Application.CreateForm(...) en commentaire histoire de voir si ça plante sans puis je les 'décommenterais' une par une pour voir si c'est l'une d'entre elles qui pose problème.

  5. #5
    Membre confirmé Avatar de maxiNoob
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    129
    Détails du profil
    Informations personnelles :
    Localisation : France, Gard (Languedoc Roussillon)

    Informations forums :
    Inscription : Octobre 2009
    Messages : 129
    Par défaut
    pas bête , j'ai essayé, mais hélas niet, nada

    c'est vraiment terrible car ce bug est peu documenté sur le net et là mon projet est bloqué, j'espère que ça va inspirer qqu'un

  6. #6
    Membre confirmé Avatar de maxiNoob
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    129
    Détails du profil
    Informations personnelles :
    Localisation : France, Gard (Languedoc Roussillon)

    Informations forums :
    Inscription : Octobre 2009
    Messages : 129
    Par défaut
    le logiciel semble buggué dans ce module Win32WSControls, je copie sans comprendre la procedure où le programme s'arrête:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    procedure FinishCreateWindow(const AWinControl: TWinControl; var Params: TCreateWindowExParams;
      const AlternateCreateWindow: boolean);
    var
      lhFont: HFONT;
      AErrorCode: Cardinal;
    begin
      if not AlternateCreateWindow then
      begin
        with Params do
        begin
          if (Flags and WS_CHILD) <> 0 then
          begin
            // menu handle is also for specifying a control id if this is a child
            MenuHandle := HMENU(AWinControl);
          end else begin
            MenuHandle := HMENU(nil);
          end;
    
          {$ifdef WindowsUnicodeSupport}
          if UnicodeEnabledOS then
            Window := CreateWindowExW(FlagsEx, PWideChar(WideString(pClassName)),
              PWideChar(UTF8ToUTF16(WindowTitle)), Flags,
              Left, Top, Width, Height, Parent, MenuHandle, HInstance, nil)
          else
            Window := CreateWindowEx(FlagsEx, pClassName,
              PChar(Utf8ToAnsi(WindowTitle)), Flags,
              Left, Top, Width, Height, Parent, MenuHandle, HInstance, nil);
          {$else}
            Window := CreateWindowEx(FlagsEx, pClassName,
              PChar(WindowTitle), Flags,
              Left, Top, Width, Height, Parent, MenuHandle, HInstance, nil);
          {$endif}
    
          if Window = 0 then
          begin
            AErrorCode := GetLastError;
            DebugLn(['Failed to create win32 control, error: ', AErrorCode, ' : ', GetLastErrorText(AErrorCode)]);
            raise Exception.Create('Failed to create win32 control, error: ' + IntToStr(AErrorCode) + ' : ' + GetLastErrorText(AErrorCode));
          end;
        end;
        { after creating a child window the following happens:
          1) the previously bottom window is thrown to the top
          2) the created window is added at the bottom
          undo this by throwing them both to the bottom again }
        { not needed anymore, tab order is handled entirely by LCL now
        Windows.SetWindowPos(Windows.GetTopWindow(Parent), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE);
        Windows.SetWindowPos(Window, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE);
        }
      end;

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [V8] 500 Internal Server Error Odoo sous Win7 et Windows server 2003 et 2008
    Par geniustep dans le forum Odoo (ex-OpenERP)
    Réponses: 10
    Dernier message: 19/02/2015, 16h17
  2. Sous windows XPE : xml parsing error encoding
    Par bru.antoine dans le forum Windows Embedded
    Réponses: 0
    Dernier message: 11/04/2013, 19h04
  3. Réponses: 1
    Dernier message: 10/09/2009, 18h31
  4. Pas de fork sous Windows?
    Par chezjm dans le forum POSIX
    Réponses: 8
    Dernier message: 11/06/2002, 12h15
  5. OmniORB : code sous Windows et Linux
    Par debug dans le forum CORBA
    Réponses: 2
    Dernier message: 30/04/2002, 17h45

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo