> I am using the v002 network library 

There is no v002 network library - presumably the CocoaAsyncSocket library used 
in the network plugin.

> 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?

> [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.

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.

etc. Tom

On 8 Nov 2012, at 11:58, Christophe Leske <i...@multimedial.de> wrote:

> Hi,
> 
> I am using the v002 network library in my QC patch to send packages with 
> image data to a remote machine.
> 
> Upon connection however, I am always running into a EXC_Bad_ACCESS with code 
> 13 at address 0x0
> 
> 
> Thus, this seems to be a null pointer exception somewhere, yet I can't find 
> where?
> 
> I am doing this when sending out my data:
> 
> 
> [connectSocket writeData:[NSData dataWithBytes:sendBuffer length:lengthByte] 
> withTimeout:-1 tag:counter % 100];
> 
> 
> sendBuffer is a NSMutableData object whcih holds my pixel data encapsulated 
> in a special protocol frame. It is my understanding that calling NSData 
> dataWithBytes creates a (deep) copy of my sendBuffer, so that I can do 
> [sendBuffer release] after it, right?
> 
> withTimeout:-1 should send the packet out without any timeout
> 
> and
> 
> tag: counter % 100
> 
> is a counter which makes sure that several tagged sessions are going out in 
> order not to flood the sending machine (am I mistaken here?)
> 
> 
> 
> Still I am getting the error, and I cannot figure out why that it...
> 
> 
> Any help would be much appreciated.
> 
> 
> 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/info%40multimedial.de
> 
> This email sent to i...@multimedial.de
> _______________________________________________
> 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/bangnoise%40gmail.com
> 
> This email sent to bangno...@gmail.com


 _______________________________________________
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

Reply via email to