But back to the main issue, the thing that's driving me crazy is this following almost random output from shared memory - which I get from python and other C program when It was working.
(this should send 200 200 200 200 to first array of the tuio struct,and then fill the others with i from 1 to 20)
shmsend.py 200 200 200 200
output:
Memory attached at:B7FB1000 size:400
X:200,Y:200,Xo:200,Yo:200
X:1,Y:1,Xo:0,Yo:0
X:2,Y:2,Xo:0,Yo:0
X:3,Y:3,Xo:0,Yo:0
X:4,Y:4,Xo:0,Yo:0
X:5,Y:5,Xo:0,Yo:0
X:6,Y:6,Xo:0,Yo:0
X:7,Y:7,Xo:0,Yo:0
X:8,Y:8,Xo:0,Yo:0
X:9,Y:9,Xo:0,Yo:0
X:10,Y:10,Xo:0,Yo:0
X:5,Y:7,Xo:22,Yo:0
X:-160678444,Y:-2008677909,Xo:0,Yo:0
X:32,Y:655394,Xo:184,Yo:62400
X:1601399924,Y:1601463655,Xo:1919181921,Yo:1718580 063
X:157536133,Y:20,Xo:0,Yo:410
X:-1996488699,Y:-1983685147,Xo:666668534,Yo:0
X:1358916351,Y:360,Xo:1342606216,Yo:16248808
X:42304783,Y:-2088042496,Xo:824,Yo:-2062565243
X:-1947896016,Y:231555,Xo:264275200,Yo:102788
Argh, now it doesn't work anymore, and I didn't change anything .. maybe it was showing old memory here.. (now its outputing just the first line right 200 200 200 200, and the rest is 0 and random after 12 loop)
eh its giving me the filling of quantum mechanics.. changing without any cause.