- Home /
StopCoroutine cause coroutine continue failure
IEnumerator ieNum;
public void StartDownload(string imageUrl) {
ieNum = control.DownloadImage(imageUrl);
StartCoroutine(ieNum);
}
public void StopProcess() { StopCoroutine(ieNum); }
It works well and stop the coroutine when i call StopProcess, but it cause "coroutine continue failure" error, anyone know how to solve the error?. Thanks
sorry, it should be IEnumerator ieNum, change all the "num" to ieNum
Answer by donovan-kff · Jun 11, 2016 at 12:46 PM
Unfortunately there isn't much you can do to completely eliminate this issue. The problem is that it really isn't anything with your code but is instead a known issue with Unity.
The "error" that is displayed is not really an error. IOW it should never have been displayed. This was even fixed in 4.6.1p4 but reappeared in 4.6.2 and persists until now (5.3.4pX).
It's really unfortunate that Unity seems unwilling to fix this since it has been reported numerous times and was once fixed.
See here: https://issuetracker.unity3d.com/issues/coroutine-continue-failure-error-when-using-stopcoroutine
Thanks for your answer. First I also was thinking that there is smth with my code, lol.
Your answer
Follow this Question
Related Questions
How to use if statement with var? 3 Answers
Android SDK not found error in Unity 2019.3.0f1 8 Answers
String Multiplying 1 Answer
Why is this player script not working 1 Answer
All compiler errors have to be fixed before you can enter playmode 0 Answers