site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Forgive the ignorance but, if one has a function like this within an application: void SumFunction(){ also does anyone know how to determine the size of a malloc'd object? ie: void *pObj = malloc(sizeof(long)); ... long pSizeOfPointer = GetPtrSize(pObj); -- Best Wishes Rick Steele _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Ptr pPtr = -1L; //create something that will obviously crash if deferenced char pSomethingElse; pSomethingElse = (*pPtr); // Causing the error } how would some one catch the signal that would inevitable occur so the app might be able to close down gracefully? This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Steele