FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug: DerelictSDL on Mac OS X 10.6.8 segfault upon exit
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Tue Jan 10, 2012 1:22 pm    Post subject: Reply with quote

The garbage collector in Mac OS X is optional and disabled by default (if I recall correctly).
Back to top
View user's profile Send private message
salamander



Joined: 24 May 2011
Posts: 11

PostPosted: Sat Jan 14, 2012 9:44 am    Post subject: Reply with quote

So far the fix works for me. If it stops working, or if your NSApplication is leaking massively then we'll have to reexamine.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sun Jan 15, 2012 4:53 am    Post subject: Reply with quote

I don't think it will leak, or it depends on how you see it. The clean up happens when the application quits and then the OS will reclaim the memory anyway.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Jan 30, 2012 1:08 pm    Post subject: Reply with quote

I've been thinking some more on this issue. I'm wondering if it has anything to do with what the documentation for NSAutoreleasePool says:

Code:
You should always drain an autorelease pool in the same context (invocation of a method or function, or body of a loop) that it was created


http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAutoreleasePools.html#//apple_ref/doc/uid/20000047-997594-EGGBFFED
Back to top
View user's profile Send private message
salamander



Joined: 24 May 2011
Posts: 11

PostPosted: Sun Feb 12, 2012 4:33 pm    Post subject: Reply with quote

Quote:
I've been thinking some more on this issue. I'm wondering if it has anything to do with what the documentation for NSAutoreleasePool says:
Code:
You should always drain an autorelease pool in the same context (invocation of a method or function, or body of a loop) that it was created


You may be right. But 1, I hear SDL 2.0 doesn't have this issue, which means the upgrade will solve it (cross fingers), and 2, the issue seems to have receded into the depths in my own program, which means I'm thankfully ignoring it for now!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group