Well, I thought I'm finally ready to put Orbiter Galaxy up, but it turns out that the release version crashes orbiter, while the debug version works flawlessly (thanks god I checked the release version before upload!)
My experience is pretty limited, so I have no idea where to start looking in the code. I don't even know the technical differences between debug and release versions (I know what they are good for, but have no Idea what the exact difference is in terms of compiling). I hope someone with a bit more expierience can give me a hint where to look. The crash happens in the Orbiter code, not in mine, so I guess my release version is stomping on a pointer somewhere...
If it is of any help, here's the disassembly around where the crash occurs:
Oh yeah, I'm compiling with VS2008, under Win7, if that can be of any consequence.
My experience is pretty limited, so I have no idea where to start looking in the code. I don't even know the technical differences between debug and release versions (I know what they are good for, but have no Idea what the exact difference is in terms of compiling). I hope someone with a bit more expierience can give me a hint where to look. The crash happens in the Orbiter code, not in mine, so I guess my release version is stomping on a pointer somewhere...
If it is of any help, here's the disassembly around where the crash occurs:
Code:
00C43EE9 inc dword ptr [esp+10h]
00C43EED add ecx,60h
00C43EF0 sub edx,1
00C43EF3 jne 00C43EA2
00C43EF5 mov ecx,dword ptr [esp+18h]
00C43EF9 cmp ebx,esi
00C43EFB jge 00C43F34
00C43EFD mov eax,dword ptr [esp+ecx*8+30h]
00C43F01 mov ecx,dword ptr [esp+14h]
00C43F05 mov edi,dword ptr [ecx+eax] <<<<<<<Crash!
00C43F08 mov eax,dword ptr [esp+24h]
00C43F0C lea edx,[ebx+ebx*2]
00C43F0F mov ecx,esi
00C43F11 lea edx,[eax+edx*8]
00C43F14 sub ecx,ebx
00C43F16 cmp dword ptr [edx],edi
00C43F18 jne 00C43F28
00C43F1A fcom qword ptr [edx+10h]
00C43F1D fnstsw ax
00C43F1F test ah,5
Oh yeah, I'm compiling with VS2008, under Win7, if that can be of any consequence.