Forum Discussion
Altera_Forum
Honored Contributor
16 years agoThank you for your reply.
--- Quote Start --- It could be a memory corruption or stack overflow problem.... Do you have a function that allocates a lot of variables on the stack? Do you use any pointers? Is that case could you double check that they point where they should? If you use tables, can you check that the index is always in the allowed range? --- Quote End --- Yes, yes and yes. I do all of that and will double check my code, but it could take a while to find the error. Curiously, I wonder why it could happen only when adding the second part of the program and not when executing them apart. However, I thought that this kind of errors pops out only when the said erroneous function, pointer or array is executed in the code, but this isn't my case. The potentially bugged code is not yet executed at the point when the program get stuck. Could it happens if its for example the function with the error is not called at all? If yes, I will comment out all the definitions of my potentially bugged functions one by one and see which one cause the problem.