Closed Thetvdh closed 2 years ago
Works alright in my environment. Doesn't exit 'randomly'.
Your best bet is to revert to a previous working commit and drop lines one by one till the crashing occurs.
Works alright in my environment. Doesn't exit 'randomly'.
Is this in a Windows or Linux environment?
Linux!
Works on Ubuntu, Arch, and CLion runtime envrionments. Does not work in Powershell or CMD. Works with one item in the linked list, does not work with 2, works with more than 2.
Fixed in commit 1c15141e4a2246dd208f9854ca3b9dc1a8434e1b
When adding the second item to the linked list the pNewCard->next was undefined and pointing to random data. Added a NULL pointer and all seems fine.
When running in CLion the program works perfectly however when running in a non CLion environment it exits out of the program when running in either CMD or Powershell. Issue only occurs when more than one card is in the linked list. Potentially an issue with the last node in the list?