Yes I did include Rellib in all the modules when let me give ya a vage example.
----start here------
declare Sub Sub1 ()
declare Sub Sub2 ()
MainModule
DEFINT A-Z
'$STATIC
'$DYNAMIC
'$INCLUDE: 'RelLib.Bi'
common shared BUFFER(31999) AS INTEGER, layer AS INTEGER
layer = VARSEG(BUFFER(0))
common shared sprite(202)
screen 13
RelinitVGA13
(lets say i got my 20x20 sprites)
Relget layer,x1,x2,y1,y2,varseg(sprite(i*202)),varptr(sprite(i*202))
(my code and subs)
bleh
call Sub1
bleh
bleh
call Sub2
sub sub1 ()
some code
end sub
Module2
Sub2
SubModule1
Declare sub sub2
DEFINT A-Z
'$STATIC
'$DYNAMIC
'$INCLUDE: 'RelLib.Bi'
common shared BUFFER(31999) AS INTEGER, layer AS INTEGER
layer = VARSEG(BUFFER(0))
common shared sprite(202)
screen 13
RelinitVGA13
sub sub2()
more code
end sub
The common shared parts would give me a common shared error and sometimes the array, or when it does compile and work the pc restarts when i hit the sub2 bit of the prog.