Okay, so I updated the code and renamed the variables (you were right, it was quite a mess).
I have no idea how the debugger in CodeBlocks works, but here's what happens whenever I click the "start debugger" button (or press F8):
- It starts, I see a black screen and in the console it says "warning: GDB: Failed to set controlling terminal: Operation not permitted". The screens get disabled and in the "call stack" screen, I can see these 6 lines:
Nr Address Function File
0 ( 0x080491db in ??()
1 ( 0x0804903f in ??()
2 ( 0x080496b8 in ??()
3 ( 0x08049296 in ??()
4 ( 0x08048ad1 in ??()
5 0xb7c754d3 __libc_start_main() /lib/i386-linux-gnu/libc.so.6
6 ( 0x08048c61 in ??()
In the message log, it says:
Debugger name and version: GNU gdb (GDB) 7.5-ubuntu
Child process PID: 14020
Program received signal SIGSEGV, Segmentation fault.
In ?? () ()
I have no idea what's going on, and I have no idea how the debugger works.
I hope you do, because I'm out of ideas.
Oh, and this part:
par1Rect[par3] = &(*par8Rect);
I changed that already. I forgot it was there in the sample I posted. It is now similar to
par1Rect[par3] = par8Rect;