• 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
Memory Leak in NSRunCriticalAlertPanel() ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory Leak in NSRunCriticalAlertPanel() ?


  • Subject: Memory Leak in NSRunCriticalAlertPanel() ?
  • From: Development <email@hidden>
  • Date: Fri, 26 Jul 2002 15:43:44 +0200

Hi,
I searched all cocoa-dev mailing list mails for the last 9 month, but didn't encounter anybody talking about this problem:

I set up a new Cocoa project, added one button to the window, set up an object with one action and connected it with the button.


@implementation MyObject
- (IBAction)invokeDialog: (id)sender{
NSRunCriticalAlertPanel (@"NSRunCriticalAlertPanel", @"Hello Memory Leak.", @"OK", nil, nil);
}
@end


With ProcessViewer I can see increasing the app's physical memory size after each call to NSRunCriticalAlertPanel() by about 220kB, decreasing after pushing the OK button, but still claiming ~70kB more each time.

Is this a known behavior?
Will this memory become free when other processes are in need of it, so it is uncritical at all?
Or it's a bug, and I should forward it to the appropriate locations at Apple?
_______________________________________________
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.
  • Prev by Date: Disabling NSRuler influences in a NSTextView?
  • Next by Date: Asynchronous I/O using NSFileHandle
  • Previous by thread: Disabling NSRuler influences in a NSTextView?
  • Next by thread: Asynchronous I/O using NSFileHandle
  • Index(es):
    • Date
    • Thread