Hi there. Sorry to bother people. I'm having major problems with dark basic pro's array system. Put simply, any attempt I make of declaring any type of array and filling it, allows the program to compile and run but however, it app crashes (ctd) and generates a dump file in the project folder. To give you an example, even this basic routine, called as the first thing in the code or as stand alone, causes the program to crash and burn...
dim resolutions(7,2) as integer
for i = 0 to 7
resolutions(i,1) = 1
resolutions(i,2) = 1
next i
or even something as basic as a dimensional call like this...
dim resolutions(7,2) as integer
It seems to be the dim command that's causing my program to crash every time. Sometimes my program will progress so far then crash. Sometimes its instant. If I remove the array or comment it out, the program runs perfectly.
Here's the contents of the dump file...
[COMMON]
PathToEXE=C:\Program Files (x86)\Dark Basic Software\Dark Basic Professional\Projects\GVSim\CrashOn_05_30_13.txt
[CEXE]
m_dwRuntimeErrorDWORD=0
m_dwRuntimeErrorLineDWORD=63
Can anyone tell me what's going wrong with my arrays please.
Edit: Found the cause and posting solution so peeps don't fall into the same trap. There was nothing wrong with the code. I rather stupidly started with an earlier version of the dark basic pro software and updated to the most recent using the help menu. This bugged out dbp in several ways it appears. Doing a proper reinstall to free version, as per dictated, fixed a lot more than just the arrays (timer issues etc)