All I can say is WTF!!!!!!!
All I can say is WTF!!!!!!!
- Subject: All I can say is WTF!!!!!!!
- From: Thomas Davie <email@hidden>
- Date: Sun, 30 Mar 2003 13:17:41 +0100
Hi,
I'm coming across the weirdest bug I've ever seen, so hopefully one
of you can shed some light on it. This is the line that is causing the
trouble:
[(QrateControlPoint *)mostRecentCreation setForwardVector:[QrateVector
vectorBetween:[mostRecentCreation position] and:worldPoint]];
What happens is that [mostRecentCreation position] is called... trace
provided below. But in between that returning and [QrateVector
vectorBetween: and:] being called my program exits (apparently normally
with status code 1). If I set a break point on line 1 of +
(QrateVector *)vectorBetween:(QratePoint *)one and:(QratePoint *)two
the code exits before it gets to the break point.
This is the trace from -(QratePoint *)position, which shows that the
position exists and has all it's bits working :D
Debug Info from [mostRecentCreation position]:
1 - (QratePoint *)position
2 {
3 return position;
4 }
At line 3:
==========
(gdb) po position
<QratePoint: 0x226db00>
(gdb) print position
$5 = (QratePoint *) 0x226db00
(gdb) print (float)[position x]
$6 = -1.93181896
(gdb) print (float)[position y]
$7 = 1.875
(gdb) print (float)[position z]
$8 = 0
(gdb)
At line 4:
==========
(gdb) po position
<QratePoint: 0x226db00>
(gdb) print position
$5 = (QratePoint *) 0x226db00
(gdb) print (float)[position x]
$6 = -1.93181896
(gdb) print (float)[position y]
$7 = 1.875
(gdb) print (float)[position z]
$8 = 0
(gdb)
Any ideas welcome.
Thanks
Bob
_______________________________________________
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.