Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage Collection Caveats



Target OS: Leopard (10.5.1)
IDE: Xcode 3.0
Language: Objective-C 2.0

Project: a multi-player blackjack game

Problem: When I am testing the shoe/deck/card classes with a unit test bundle and I build it with the Garbage Collection Supported option, my test builds perfectly. When I use the Garbage Collection Required option my script fails with the following message:


Test rig '/Developer/Tools/otest' exited abnormally with code 5 (it may have crashed).


Any ideas on why it would do this or what to look for? I suspect that it has something to do with a couple hundred card objects being generated and then the garbage collector getting ahold of them before I'm done with them, but I have no idea how to verify this theory or test it out.

Thanks!

Jacob Portukalian
Student: Math / Electrical Engineering
Pasadena City College
Pasadena, CA 91106
(626) 679 - 5421

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.