DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

When reading the error text with ERR$(57752): crash!

Started by Erron1, October 11, 2014, 07:04:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Erron1

Hello everyone,

reading the error text with ERR$(57752) crashes DesignCAD!
Is this a highlight or a mistake?

So far I could not catch the crash!
Am I wrong something with the macro?

Here is my test macro:


' Errors Test_1.d3m
On Error Goto Handler
Sys(36)=2
Pre=PRECISION
PRECISION 0
Nr=-1
Print "Please enter an ERROR number | Bitte eine ERROR-Nummer eingeben: "
Sys$(41) = "E R R O R   Statusbar: enabled | aktiviert! - - -  Cancel | Abbrechen = END"
Beginning:
Input "Please enter an ERROR number | Bitte eine ERROR-Nummer eingeben: ", Nr
if Sys(999)=1 then Goto End1
Print Nr, ": CRASH"
D$=Err$(Nr)
D1$="|||", D$, "|||"
Print Nr, D1$
M1$ = Err$(3501), ": Err$(", Nr, ")", chr$(13), chr$(13), D1$
if Len(M1$)<Len(D1$) then
Message D1$
else
Message M1$
end if
Goto Beginning
End1:
PRECISION Pre
Sys(36)=0
On Error Goto 0
END
Handler:
Resume Beginning


And here is my list of the crash:



with best wishes
Reinhard/Erron1
Sorry, because my English is very bad!
i7, WIN 8.1 Pro x64, 32 GB RAM

active versions
German language:
DesignCAD 3D Max 20, 21, 22, 23, 24

English language:
DesignCAD 3D Max 20, 21, 22, 23, 24.1, 25

DrollTroll

So far as I know, only error codes in the range from 1-108 are defined (and some numbers in that range are skipped), as described in the Help topic "Macro Error Codes". When checking beyond that range, there's no telling what might happen.
25 years with DesignCAD