And the small test program ran ok.
Integrated it into a bigger program, and it would crash.
Tried -ex in FBide and the program used about 24% cpu.
Added -exx setting to FBide, and the bigger program would run ok.
Is there any visual studio compile setings, that I should of used in compiling libxbr?
What's the deal with -exx ?
Including error checking code in case there's some problem in it.
Code: Select all
ON ERROR GOTO Problem:
.
.
.
.
.
Problem:
ErrorNumber% = ERR
ErrorLine% = ERL
DIM ProgError$(17)
ProgError$(0) = "No error"
ProgError$(1) = "Illegal function call"
ProgError$(2) = "File not found signal"
ProgError$(3) = "File I/O error"
ProgError$(4) = "Out of memory"
ProgError$(5) = "Illegal resume"
ProgError$(6) = "Out of bounds array access"
ProgError$(7) = "Null Pointer Access"
ProgError$(8) = "No privileges"
ProgError$(9) = "interrupted signal"
ProgError$(10) = "illegal instruction signal"
ProgError$(11) = "floating point error signal "
ProgError$(12) = "segmentation violation signal"
ProgError$(13) = "Termination request signal"
ProgError$(14) = "abnormal termination signal"
ProgError$(15) = "quit request signal"
ProgError$(16) = "return without gosub"
ProgError$(17) = "end of file"
LogFile% = FREEFILE
OPEN "WinTutor-Error.log" FOR APPEND AS #LogFile%
PRINT #LogFile%,"ERROR = ";ProgError$(ErrorNumber%); " on line ";ErrorLine%
Print #LogFile%,"Error Function: "; *Erfn()
CLOSE #LogFile%
CLS
PRINT "ERROR = ";ProgError$(ErrorNumber%); " on line ";ErrorLine%
Print "Error Function: "; *Erfn()
SLEEP
Quitting:
IF FullScreen% = 0 THEN
IF ChangeBack& = 0 THEN '%DISP_CHANGE_SUCCESSFUL = 0
IF ResolutionOn& THEN ChangeDisplaySettings(BYVAL 0, BYVAL 0)
END IF
IF HideDeskTopFlag& THEN ShowDeskTop
IF HideTaskBarFlag& THEN ShowTaskBar
END IF
timeEndPeriod(1)
END