Have no clue what is wrong, if anyone got a tip or has gotten bugs like this before please let me know what caused it!
Cheers
- Kasper
Have no clue what is wrong, if anyone got a tip or has gotten bugs like this before please let me know what caused it!
Cheers
sounds like an infinite loop.
First of all, in case it is something else, in Visual Studio go to Debug / Exceptions / and checkmark all of them. This catches even handled exceptions, which VS usually ignores.
Now, something that is not an error per se is an infinite loop.
For example it could be a
while(true)
loop.
Or, more often, it’s somethign along the lines of
for(var i = 0; i<1000; i++)
{
… bunch of code …
i = 10;
…
}
where the loop never ends.
Often times happens in nested for loops
for(var i = 0; i < 1000 ; i++)
{
… bunch of code …
for(var j = 0; j < i; j++)
{
… bunch of code …
y = i = 10;
…
}
}
It looks like you were right, i found the culprit! Thanks alot for the tip! Cheers