Parallelize Issue
This is my code:
I get the following output error:
But if I un-comment the last three lines of code, it works fine. Can anyone please help!
1 Reply
This seems like a problem we are still having with closures not extending the lifetime of variables. You'll have to manually discard the variables after the call to parallelize
And you're not freeing the pointer after using it, you'll have a memory leak if this is called by another function etc. with this example the memory gets freed once the program ends, but in a larger codebase it will lead to problems