Autor Beitrag
Jake10
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 26



BeitragVerfasst: Mi 22.03.06 20:25 
Hallo,
ich hab ein Problem mit dem Debuggen:
er hält irgendwie in der Timer1 - Procedure an und sagt 'ungültige Gleitkommaoperation'. (Das soll eine Animation werden). Kann mir da jemand helften? Ich bin für jede Hilfe dankbar! [Prozedur Button 4. Click löst Timer1 - Prodzedur aus]
Einloggen, um Attachments anzusehen!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 22.03.06 20:37 
Hab jetzt keine Lust, alles durchzugehen. Vor allem, weil nur die pas nicht unbedingt was bringt - da fehlt die dfm und die dpr.

Aber: Problem dürfte h1:= h -sqrt(2*g*h)* zeit * (dl)*(dl)/x; hier sein. Ist sichergestellt, dass x <> 0 ist, und das (2*g*h) > 0 ist?

Außerdem: if a = ende then Timer1.Enabled:=false; ist tödlich. Eine Real-Zahl mit "=" zu vergleichen geht auf Grund von Rundungsfehlern und Darstellungsungenauigkeiten immer in die Hose. Besser etwas wie if abs(a-ende) < 0.0001 then...

_________________
We are, we were and will not be.
Jake10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 26



BeitragVerfasst: Do 23.03.06 19:51 
Titel: es hat geklappt
Danke nochmal,
ich hab die kleinen Fehler behoben ... und jetzt funktioniert's!