The thing is, that it is not a recursive function. And unless I am missing something this function only gets called once in my code posted above. If my calculations are correct the above code should only be allocating less than 2MB of memory once, yet I am still getting this error.

And originally my code used "BOOL Bwater[1000][500];" which would only allocate 61KB? once? Yet I got the same error...

You can see my main function posted in the code above if you want to check that also, because whatever the problem is, I just cannot see it... I feel so stupid right now...

Mabe it is just a problem with my 3DGS installation being corrupted? Or a hardware failure (memory/hard drive)? Could someone else run this code and check if it crashes for them? To my eyes it really should work...

Code:
#include <acknex.h>
#include <default.c>

int testi;

void world_waterORland()
{
   testi++;//1
   
	int Bwater[1000][500];
	int tx,ty;
	
	testi++;//2
	
	int temp_alpha;
	
	testi++;//3
	
	for(tx=0;tx<1000;tx++)
	{
		for(ty=0;ty<500;ty++)
		{
		   testi=4;//4
		   //wait(1);
		   
			if(temp_alpha<10)
			{
				Bwater[tx][ty]=1;//yes=water
			}
			else
			{
				Bwater[tx][ty]=0;//no=land
			}
				testi=5;//5
		}
	}
	testi=6;//6

}

void main()
{
	fps_max=60;
	level_load(NULL);
	wait(1);
	
	
	world_waterORland();
	
	while(1)
	{
		wait(1);
	}
}



Basically, if someone gets a small blue window, with no error messages or crashes... I might have a hardware failure that at the moment I dont think I can afford to fix...
If anyone gets a small blue window, just press ESC, and post me the bad news...


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1