Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi crash in FindFile OpenGl (https://www.delphipraxis.net/116872-crash-findfile-opengl.html)

EWeiss 9. Jul 2008 19:18

Re: crash in FindFile OpenGl
 
muss noch mal posten
Hab den Fehler gefunden. ;)
alte
Delphi-Quellcode:
    // fill all Quads with NoCoverTexture
    if FileExists(Path + UpperCase('Data\images\CompDisk\Default\NoCover.BMP')) then
    begin
      LoadTexture(Path + 'Data\images\CompDisk\Default\NoCover.BMP', NoCoverTexture, False);

      for q := 0  to QuadCount do
        QuadTexture[q] := NoCoverTexture;
    end else
    NoCoverTexture := 0;
neue
Delphi-Quellcode:
    // fill all Quads with NoCoverTexture
    if FileExists(Path + UpperCase('Data\images\CompDisk\Default\NoCover.BMP')) then
    begin
      LoadTexture(Path + 'Data\images\CompDisk\Default\NoCover.BMP', NoCoverTexture, False);

      for q := 0  to QuadCount -1 do
        QuadTexture[q] := NoCoverTexture;
    end else
    NoCoverTexture := 0;
Jetzt sagt mir mal jemand warum der Debuger das nicht korrekt erkennt .
Sehr traurig selbst VB6 kann das :mrgreen:

gruss Emil

Medium 11. Jul 2008 01:59

Re: crash in FindFile OpenGl
 
Schalte RangeChecks an, und schon ist der Debugger schlauer. (Nicht immer ist die Technik allein "unschlau" :P)


Edit: Altertativ nutze von vorne herein High() und Low(), dann wirst du nie nie wieder so ein Problem haben.

EWeiss 11. Jul 2008 10:43

Re: crash in FindFile OpenGl
 
Zitat:

Zitat von Medium
Schalte RangeChecks an, und schon ist der Debugger schlauer. (Nicht immer ist die Technik allein "unschlau" :P)


Edit: Altertativ nutze von vorne herein High() und Low(), dann wirst du nie nie wieder so ein Problem haben.

Jo guter tip.

gruss Emil


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:29 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz