C
C#2y ago
JimmyCooks

❔ StackOverFlow bug

Look the screen
16 Replies
JimmyCooks
JimmyCooks2y ago
do you think any solution to this
Hugh
Hugh2y ago
A StackOverflowException is what you get when you’re too deep in recursion It’s likely that you’ve got an infinite recursion loop going on
JimmyCooks
JimmyCooks2y ago
ok so here
JimmyCooks
JimmyCooks2y ago
JimmyCooks
JimmyCooks2y ago
i have to put something like a timer or
Hugh
Hugh2y ago
What’s this whole function called?
JimmyCooks
JimmyCooks2y ago
public static void CreateMovie() method @Hugh i looked my code and im not able to find the infinitel oop.
dancepanda42
dancepanda422y ago
The num variable never seems to be increased. This way you have an infinite while loop
JimmyCooks
JimmyCooks2y ago
hum i see i know its in this line of code
Hugh
Hugh2y ago
Good spot
JimmyCooks
JimmyCooks2y ago
JimmyCooks
JimmyCooks2y ago
i put my code in chatgtp so what should i add or delete guys ? if u can help
Hugh
Hugh2y ago
How many times do you want the loop to run?
JimmyCooks
JimmyCooks2y ago
infinite huh no 1 time int i = 0; for (int num = 8; i < num; i++) ; ? i tried this but it still didnt work
Hugh
Hugh2y ago
If you want it to run an infinite number of times, then that block will need to be a function called from a timer
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.