Originally Posted By: Nicotin
Hello, I have an odd problem. While starting my level the programm sometimes crashes and sometimes not. This is the part that seem to cause the crash:
Code:
while(count < street_count)//warte bis alle registriert sind
		{
			count = 0;
			for(i=0;i<street_count;i++)
			{
				if(streets[i]!=NULL)
				{
					 diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
					count++;
				}
			}
			wait(1);
		}




I don't understand, for what you need the while loop, as there should be no difference between the first and the second iteration of it. I think that
Code:
for(i=0;i<street_count;i++)
			{
				if(streets[i]!=NULL)
				{
					 diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
				}
			}


should work just the same.
Regarding your problem, did you try the following :
Code:
for(i=0;i<street_count;i++)
			{
				if(streets[i]!=NULL)
				{
					 diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
				}
wait(1);
			}


Because maybe the problem is that you try to do too much in a frame/cycle.
Could you also post the text of the error message ?


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread