Memory Leak in NSRunCriticalAlertPanel() ?
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.