Skip navigation.
 
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED]
FROM : Graham Cox
DATE : Sun Jun 08 14:29:25 2008

No, this is not it. The method definitely did have a prototype - in 
fact it had *two*, differing only in return type. Judging by the 
assembler code, it used the one returning an int (actually an enum) 
not a float. It's still unclear why this generated code that trashed 
memory, but it did. It also did silently cast the result as well, 
which is perhaps why no warning was issued, because in some cases 
that's the desired behaviour.

G.



On 7 Jun 2008, at 1:50 am, Michael Vannorsdel wrote:

> I suspect since the method had no prototype the compiler just 
> assumed the default id return type, but due to a bug didn't generate 
> a warning.  The problem is most likely the calling method was 
> expecting the return value to be an integer (id; pointer) but 
> instead is a float.  Even with a cast being assumed the calling 
> method is still having a floating point register trashed by 
> believing it was safe.

Related mailsAuthorDate
mlWhere to start looking to fix hang? Graham Cox Jun 5, 06:17
mlRe: Where to start looking to fix hang? j o a r Jun 5, 06:24
mlRe: Where to start looking to fix hang? Jason Coco Jun 5, 06:25
mlApp hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?] Graham Cox Jun 5, 07:07
mlRe: Where to start looking to fix hang? Vijay Malhan Jun 5, 09:26
mlRe: App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?] Graham Cox Jun 5, 14:52
mlRe: App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?] Andy Lee Jun 5, 15:08
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Graham Cox Jun 5, 17:26
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Randall Meadows Jun 5, 17:33
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Graham Cox Jun 5, 17:43
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Brian Stern Jun 5, 18:12
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Hamish Allan Jun 6, 06:10
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Hamish Allan Jun 6, 06:12
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Graham Cox Jun 6, 07:26
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Hamish Allan Jun 6, 07:37
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Graham Cox Jun 6, 07:58
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Andrew Farmer Jun 6, 08:15
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Brian Stern Jun 6, 09:01
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] j o a r Jun 6, 17:41
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Michael Vannorsdel Jun 6, 17:50
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Graham Cox Jun 8, 14:29
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Graham Cox Jun 8, 14:41
mlRe: App hangs when displaying any sheet in 10.5 [SOLVED] Michael Vannorsdel Jun 10, 11:07