Process finished with exit code -1073741571

后端 未结 2 1372
长发绾君心
长发绾君心 2020-12-03 14:16

I have a recursion function which is finding Eulerian Path. I do not think that the definition of the function is relevant (but if someone thinks so, I will paste it as well

相关标签:
2条回答
  • 2020-12-03 14:39

    That is the signed integer representation of Microsoft's "stack overflow/stack exhaustion" error code 0xC00000FD.

    You might try increasing your executable's stack size as described in the answer here: How to overcome Stack Size issue with Visual Studio (running C codes with big array)

    Anytime you see strange, large negative exit codes in windows, convert them to hex and then look them up in the ntstatus error codes http://msdn.microsoft.com/en-us/library/cc704588.aspx

    You may also use the MS Error Lookup Tool to find such codes locally, or even automatically. Other, similar tools exist both by Microsoft and third parties.

    0 讨论(0)
  • 2020-12-03 14:41

    You could use something like:

    if __name__ == '__main__':
        sys.setrecursionlimit(100000)
        threading.stack_size(200000000)
        thread = threading.Thread(target=your_code)
        thread.start()
    

    This solved both my recursion limitation and my heap size limitation.

    0 讨论(0)
提交回复
热议问题