FB Crash longjmp/alarm in screen mode

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

FB Crash longjmp/alarm in screen mode

Postby Cpcdos » Sep 17, 2018 9:00

Hi,

i return here, in fact i've found more details about my previous subject : https://www.freebasic.net/forum/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/master/src/gfxlib2/dos/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

Return to “General”

Who is online

Users browsing this forum: No registered users and 15 guests