ola
i want to netpdise my data-structure-sequenzer. so, i want to broadcast pointers to prevent some hacks,
but it seems not possible with [netsend]/[netreceive]..
i become some errors like: error: pointer: no method for '(pointer)'
but when i normally print it out, i become print: (pointer)... without this ''...
thanx for any tips, hacks
cheers
MorItz
Hallo, moritz hat gesagt: // moritz wrote:
i want to netpdise my data-structure-sequenzer. so, i want to broadcast pointers to prevent some hacks,
but it seems not possible with [netsend]/[netreceive]..
i become some errors like: error: pointer: no method for '(pointer)'
but when i normally print it out, i become print: (pointer)... without this ''...
The "(gpointer)" message your get from a [print] object is not the real form of the pointer in your patch, it's basically just a dummy printout. A real pointer in Pd doesn't have a printed form and I don't think you can send it over the network. A pointer just points to some data hold in memory.
You can only send this data contained in a pointer by [get]-ing it and [set]-ing it on the other side.
Frank Barknecht _ ______footils.org_ __goto10.org__
Frank Barknecht wrote:
Hallo, moritz hat gesagt: // moritz wrote:
i want to netpdise my data-structure-sequenzer. so, i want to broadcast pointers to prevent some hacks,
but it seems not possible with [netsend]/[netreceive]..
i become some errors like: error: pointer: no method for '(pointer)'
but when i normally print it out, i become print: (pointer)... without this ''...
The "(gpointer)" message your get from a [print] object is not the real form of the pointer in your patch, it's basically just a dummy printout.
i understand pointer more and more, but i understand it still not 100%... :)
A real pointer in Pd doesn't have a printed form and I don't think you can send it over the network. A pointer just points to some data hold in memory.
You can only send this data contained in a pointer by [get]-ing it and [set]-ing it on the other side.
that is exactly what i'm doing now, but in my case i receive the lists in reverse/different order, so i point everytime to a wrong template.. but i will find a solution..
thanx
MoRitz
On 8/28/06, moritz erstens@gmx.ch wrote:
Frank Barknecht wrote:
The "(gpointer)" message your get from a [print] object is not the real form of the pointer in your patch, it's basically just a dummy printout.
i understand pointer more and more, but i understand it still not 100%... :)
A pointer is a number that expresses the location of some data in your computer's heap memory. Two computers don't have the exact same data at the same place and the same moment (unless you are very lucky...), therefore, you cannot pass a pointer from a computer to an other : you need to send the actual data that is pointed to by this pointer.
Otherwise, you could just do the exact same operations on both computers to render the same result on both.