views:

16

answers:

0

I am writing an app that consumes an OData feed and I am creating my proxy which inherits from ObjectContext in a NSThread. The first time a call is made with any execute on the proxy itself or on a query object, the debugger is fine. The subsequent calls fail and it looks like the debugger freaks out. Does any one have any idea of why this would be?

Basically this is my logic

Thread
    Create auto release pool
        Create proxy
        Execute on proxy or built query object
        Deep copy resulting objects
        Release proxy
    Release auto release pool

I have a feeling its somewhere in the HTTP stack of the OData library since the 2nd time it fails with EXC_BAD_ACCESS.