Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3656

Debugger crashing?

$
0
0

Can anybody please explain to me why my code crashes the debugger? I use XOJO 2023 R 1.1 with Bob Delaney’s ComplexMatrix Plugin on an iMac M1. Björn kindly ported it to be usable with Apple Silicon and offers it on his site einhugur.com as an open source project.

Var bet,re,im As Double
Var z,x,y As Integer
Var c1,c2 As Complex
Var tabel(300,0) As Double
Var faktor As Double = 0.00425
Var XrEcke As Double = -1.5
Var YiEcke As Double = -1.7

c1= New Complex(1.0,0.1)

For y=0 To 800
  For x=0 To 800
    re=x*faktor+XrEcke
    im=y*faktor+YiEcke
    c2 = New Complex(re,im)
    z=0
    Do
      c2=c2.Sinh.Pow(4)'<< crashes here when z=2
      c2=Abs(c2.Real)+Abs(c2.Imag)+c1
      bet=c2.Abs
      z=z+1
    Loop Until z>300 Or bet > 999
    tabel(x,y)=bet\6000
    If x=277 And y=0 Then Break
  Next
Next

If I run it and, after it broke into the debugger, step a few steps further, the debugger crashes. I think the culprit is the sinh. But why? The debugger shows no weird values until the moment of the crash. Maybe sinh has no proper exception handling.

Any hint appreciated

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3656

Trending Articles