Hello Tom,
thank you for your quick answer...
There is no v002 network library - presumably the CocoaAsyncSocket library used
in the network plugin.
Yes, sorry.
Thus, this seems to be a null pointer exception somewhere, yet I can't find
where?
At the line the debugger breaks on when the exception is raised - what code is
on that line?
It is machine code in the msgSend method of the GDAsynch library.
It says in the header files that the buffer given to the writeData
method must not be altered, due to the asynch nature of the
communication.
I try to achieve this by copying my buffer - but thanks for the hint,
maybe I am indeed using the wrong method for that.
[connectSocket writeData:[NSData dataWithBytes:sendBuffer length:lengthByte]
withTimeout:-1 tag:counter % 100];
You should check the documentation for -dataWithBytes:length: - it doesn't do
what you think it does.
Ah, ok, that would explain it!
If you want to copy sendBuffer then do [sendBuffer copy] (and then release the
copy, or use [NSData dataWithData:sendBuffer] and it will be autoreleased).
Creating a new buffer and copying in to it takes time, you could find a way to
avoid it, such as using a pool of buffers.
I will check that right away. For the time being, timing is not an
issue. I just want to make it work first, then will tweak it in a
second step.
Thanks again,
--
Christophe Leske
multimedial.de
----------------------------------------
www.multimedial.de - i...@multimedial.de
Hohler Strasse 17 - 51645 Gummersbach
+49(0)2261-99824540 // +49(0)177-2497031
----------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com