• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
HELP!!! Memory Leak I can't find in (BOOL)application:(NSApplication *)sender openFile:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HELP!!! Memory Leak I can't find in (BOOL)application:(NSApplication *)sender openFile:


  • Subject: HELP!!! Memory Leak I can't find in (BOOL)application:(NSApplication *)sender openFile:
  • From: Chris Roberts <email@hidden>
  • Date: Thu, 4 Apr 2002 12:19:43 -0700

After Reading around and lurking here and other places I found that the Drag-N-Drop and Double-Click doc to launch was passed by the following code but....

When I use this code using a Drag-N-drop or launch from doc my Method LoadInfo:(NSString *)filename runs then the app exits with a sig 11(crash) my method works great from a NSOpen but... My guess is I have not created a release that I should have but where and what HELP!

- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename
{
[filename autorelease];
[self LoadInfo:filename];

return YES;
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: HELP!!! Memory Leak I can't find in (BOOL)application:(NSApplication *)sender openFile:
      • From: Julien Jalon <email@hidden>
    • Re: HELP!!! Memory Leak I can't find in (BOOL)application:(NSApplication *)sender openFile:
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: More re: Carbon Events vs Cocoa Events
  • Next by Date: Re: Beginning OpenGL programmer
  • Previous by thread: Re: Beginning OpenGL programmer
  • Next by thread: Re: HELP!!! Memory Leak I can't find in (BOOL)application:(NSApplication *)sender openFile:
  • Index(es):
    • Date
    • Thread