> What are you using for memory management then? Manual, GC?
> 
> Sent from my iPad
> 
> On 25 Jan 2015, at 22:57, Trygve Inda <cocoa...@xericdesign.com> wrote:
> 
>>>> On Jan 25, 2015, at 12:33 , Trygve Inda <cocoa...@xericdesign.com> wrote:
>>>> 
>>>> It does seem like if I remove a call to
>>>> 
>>>> NSData* imageData = [[self myImageRep]
>>>> representationUsingType:NSJPEGFileType properties:imageProperties];
>>>> 
>>>> It no longer crashes, but the crash happens 3-5 seconds after this call
>>>> when
>>>> my program should be idle.
>>> 
>>> It sounds like a memory management bug. What’s the context of the above line
>>> of code? Is it in a block? Are you using ARC?
>> 
>> No ARC and not in a block. I am trying to make a jpg file from a
>> NSBitmapImageRep which works fine, but sometimes I get a crash... Even
>> though the file is correctly produced.

Manual (no GC). I am also using memory-mapped files with mmap and munmap.

Trygve




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to