ive found out something intresting while i was messing about dont know if anyone else will mind but here goes
heres the first example
#include "tinyptc.bi"
ptc_open( "nino", 640 , 480 )
dim shared buffer( 0 to 640*480-1 ) as integer
print "before program destruction"
while inkey$=""
ptc_update @buffer(0)
wend
ptc_close
print "after program detruction"
while inkey$="" :wend
and heres the second
'#include "tinyptc.bi"
'ptc_open( "nino", 640 , 480 )
'dim shared buffer( 0 to 640*480-1 ) as integer
print "before program destruction"
while inkey$=""
'ptc_update @buffer(0)
wend
'ptc_close
print "after program detruction"
while inkey$="" :wend
now the two programs look fair enough but as you can see on the top peice of code everything after the initial wend doesnt get executed even the ptc_close so there must be a bug somewhere in the lib ive tried it with jim/rbraz`s lib too and the same thing happens its weird.