I found the problem.
Turns out i had a struct pointer declaration/initiation within a function. For example:
Code:
function blah()
{
some_struct* lol =
{
some_member = 1;
[...]
}
}
That works, but made the debugger go nuts.

So instead i used...
Code:
function blah()
{
some_struct lol;
lol.some_member = 1;
}
And then used operator & for the functions I send this object to.
Thx anyway.
