FB Crash longjmp/alarm in screen mode

General FreeBASIC programming questions.
Post Reply
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

FB Crash longjmp/alarm in screen mode

Post by Cpcdos »

Hi,

i return here, in fact i've found more details about my previous subject : viewtopic.php?f=4&t=26740

For be short,

With screen 0 mode, If i use
- longjmp() in my code --> it's works.
- siglongjmp() during alarm() interrupt --> it's works.

With any screen mode, if i use
- longjmp() in my code -->it's works.
- siglongjmp() during alarm() interrupt --> "CRASH" (Screen is freezing, but code in background works)

from gfx_dos.c source file, i know that screen mode initialise more interrupt functions and others modules, memory locking...
https://github.com/freebasic/fbc/blob/m ... /gfx_dos.c

So, why i can't use siglongjmp during alarm() interrupt when i use an FreeBasic screen mode ?
I'm blocked here since May :(

Best regards
Post Reply