Why does the for loop work and not the direct?

I had it print str2 while developing but then got rid of it once everything worked as str has more data

It still would be good to make sure the int was extracted correctly.

Strings behave weirdly when memory gets low - they don’t do what’s expected from them but still do not report any issue. For example the remove() call you have could just fail silently leading to a weird value in str later

Not saying it’s the issue - but worth keeping an eye on it

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.