• Create Account

### #Actualm4ttbush

Posted 05 March 2012 - 06:34 PM

Thanks Andreas, I'm using 32 bit Intel (i386), I haven't tried 64 bit, will do that today.
I've only been using Xcode for a couple of days, so I'm not very proficient at using the debugger, but I'll try to narrow down where it's going wrong.

Edit: Yep 64 bit works fine.

Edit2: After some more digging around, it appears that the constructor is not returning a NULL pointer, and the value of retQW immediately after calling
retQW = CallCDeclFunctionQWord(args, paramSize<<2, (size_t)func);
is not 0, but if I print the value just outside the switch statement, it is 0.
This might be due to some code being optimised away, but this seems to be where the pointer becomes null.

Edit3: Kinda got it working, if I make retQW volatile it seems to prevent optimisations enough for it to work. This is using the GCC 4.2 compiler.

### #5m4ttbush

Posted 05 March 2012 - 06:19 PM

Thanks Andreas, I'm using 32 bit Intel (i386), I haven't tried 64 bit, will do that today.
I've only been using Xcode for a couple of days, so I'm not very proficient at using the debugger, but I'll try to narrow down where it's going wrong.

Edit: Yep 64 bit works fine.

Edit2: After some more digging around, it appears that the constructor is not returning a NULL pointer, and the value of retQW immediately after calling
retQW = CallCDeclFunctionQWord(args, paramSize<<2, (size_t)func);
is not 0, but if I print the value just outside the switch statement, it is 0.
This might be due to some code being optimised away, but this seems to be where the pointer becomes null.

### #4m4ttbush

Posted 05 March 2012 - 06:07 PM

Thanks Andreas, I'm using 32 bit Intel (i386), I haven't tried 64 bit, will do that today.
I've only been using Xcode for a couple of days, so I'm not very proficient at using the debugger, but I'll try to narrow down where it's going wrong.

Edit: Yep 64 bit works fine.

Edit2: After some more digging around, it appears that the constructor is not returning a NULL pointer, and the value of retQW immediately after calling
retQW = CallCDeclFunctionQWord(args, paramSize<<2, (size_t)func);
is not 0, but if I print the value just outside the switch statement, it is 0.
This might be due to some code being optimised away, but this seems to be where the pointer becomes null.

### #3m4ttbush

Posted 05 March 2012 - 06:05 PM

Thanks Andreas, I'm using 32 bit Intel (i386), I haven't tried 64 bit, will do that today.
I've only been using Xcode for a couple of days, so I'm not very proficient at using the debugger, but I'll try to narrow down where it's going wrong.

Edit: Yep 64 bit works fine.

Edit2: After some more digging around, it appears that the constructor is not returning a NULL pointer, the the value of retQW immediately after calling

retQW = CallCDeclFunctionQWord(args, paramSize<<2, (size_t)func);
But if I print the value just outside the switch statement, it's 0.

This might be due to some code being optimised away, but this seems to be where the pointer becomes null.

### #2m4ttbush

Posted 05 March 2012 - 04:55 PM

Thanks Andreas, I'm using 32 bit Intel (i386), I haven't tried 64 bit, will do that today.
I've only been using Xcode for a couple of days, so I'm not very proficient at using the debugger, but I'll try to narrow down where it's going wrong.

Edit: Yep 64 bit works fine.

### #1m4ttbush

Posted 05 March 2012 - 03:36 PM

Thanks Andreas, I'm using 32 bit Intel (i386), I haven't tried 64 bit, will do that today.
I've only been using Xcode for a couple of days, so I'm not very proficient at using the debugger, but I'll try to narrow down where it's going wrong.

PARTNERS