Look into running your app under valgrind. It's the first thing I turn to when I experience crashes or other issues with my C/XS code.
update: Completely overlooked this is Windows here, and valgrind doesn't work there. However, there may be an alternative. See this SO post for example.
Another option, if you're on win10, using the windows bash thingy.
In reply to Re: perl +xs : crash after some time
by stevieb
in thread perl +xs : crash after some time
by frazap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |