Re: Newbie question: error in creating a NSData object using handle (Resource Management)
Re: Newbie question: error in creating a NSData object using handle (Resource Management)
- Subject: Re: Newbie question: error in creating a NSData object using handle (Resource Management)
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 25 Jun 2008 09:08:24 -0400
On Wed, Jun 25, 2008 at 4:42 AM, Tran Kim Bach <email@hidden> wrote:
> Actually, the program stopped at the mentioned line.
> In console, it said something like:
>
> *objc[2144]: FREED(id): message release sent to freed object=0x17d1d0*
>
> This GDB was configured as "i386-apple-darwin"
> (Error from the debugger) /users/...path_to_my_exe_file: No such file or
> directory.
>
> But I checked the exe file and it's absolutely there(in the bundle).
What is this "exe file" nonsense? I don't have any files with the
extension "exe" on my machine. I'd wager you don't either. Seems
like you're a Windows programmer. In that case I heartily recommend
you read up on the differences between the way Windows executables and
UNIX binaries function -- sometimes subtle. Then read up on .app
packages.
> I tried an autorelease pool inside the loop, disposing of datahandle.etc,
> but still got the same problem.
You're debugging by voodoo.
> Now, when I confirmed the *dataHandle, it returned NULL
> but I don't know why?
Post the code that supposedly assigns something to dataHandle, and we
might be able to help you.
--Kyle Sluder
_______________________________________________
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:
This email sent to email@hidden