Ok then the compiler compiles but during runtime the program crashes.
The exact error it states is: Unhandled exception at 0x00D68ED0 in GroceryBuddy.exe: Access violation writing location
"'GroceryBuddy.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
First-chance exception at 0x00D68ED0 in GroceryBuddy.exe: 0xC0000005: Access violation writing location 0x00000028.
Unhandled exception at 0x00D68ED0 in GroceryBuddy.exe: 0xC0000005: Access violation writing location 0x00000028.
The thread 0x12c0 has exited with code -1073741510 (0xc000013a).
The program '[6872] GroceryBuddy.exe' has exited with code -1073741510 (0xc000013a).
"
The compiler specifically points to this line:
|
temp2->next = temp1->next; //link to next
|
This line is found right after the second if statement, if(temp1 != NULL
I know that it could not be everything, as my program contains a lot of functions with different operations and they all work fine, up until I call upon this function of splitting the list :/