forum registration broken
The variable must have a constructor in order for the problem to appear. Simple (static shared) module level variables are unaffected because there is no constructor order misfire. As in this code which prints 44. Static Shared As Integer n = 12 Sub test() Constructor ' n = 44 End Sub ? n sleep
The only difference I can see is that the two sleep commands are missing in the windows version. What looks like a function declaration on Line 22 : void fb_Sleep( int32 ); and on line 58: fb_Sleep( -1 ); I doubt that this forms a part of the issue but it is the only difference I can see.
typedef signed char int8; typedef unsigned char uint8; typedef signed short int16; typedef unsigned short uint16; typedef signed int int32; typedef unsigned int uint32; typedef signed long long int64; typedef unsigned long long uint64; typedef struct { char *data; int64 len; int64 size; } FBSTRING; typedef int8 boolean; struct $3UDT { int64 A; }; #define __FB_STATIC_ASSERT( expr ) extern int __$fb_structsizecheck[(expr) ? 1 : -1] __FB_STATIC_ASSERT( sizeof( struct $3UDT ) == 8 ); void fb_PrintLongint(...
Bad timing on static object construction/destruction when compiling for Linux 64-bit
In Linux Terminal, 'sleep' doesn't *reliably* clear the keyboard-buffer.
Fixed length strings array as type member