this is my first post on this forum!
i have a strange bug that i get when using the player/stage project.
I have compiled it with the MinGW compiler and it works fine on my
vista laptop. However, on a lower spec XP PC it segfaults. Using GDB,
i've disassembled the function causing the segfault as follows:
Dump of assembler code for function _Z20lasercspace_RegisterP11DriverTable:
0x00af7fe0 <+0>: push %ebp
0x00af7fe1 <+1>: mov %esp,%ebp
0x00af7fe3 <+3>: sub $0x18,%esp
0x00af7fe6 <+6>: movl $0xaf7f24,0x8(%esp)
0x00af7fee <+14>: movl $0xbdcc00,0x4(%esp)
0x00af7ff6 <+22>: mov 0x8(%ebp),%eax
0x00af7ff9 <+25>: mov %eax,(%esp)
0x00af7ffc <+28>: mov 0xc0a6a0,%eax
0x00af8001 <+33>: call *%eax
0x00af8003 <+35>: leave
0x00af8004 <+36>: ret
End of assembler dump.
which seems to be fairly straightforward, except that the crash is at <+28> and i dont know why!
Any help much appreciated,
PS C++ code in case its useful
148 // a driver registration function
149 void lasercspace_Register(DriverTable* table)
151 table->AddDriver("lasercspace", LaserCSpace_Init);
where LaserCSpace_Init is a function pointer.