Access Violation error
I'm having problems with a small bit of code. If I wasn't so tired and my brain wasn't so fried I'm sure I'd be able to solve the problem but here's the code:
It compiles/builds fine but when I try to run it i just get an evil error message back at me and this bit of code is where the program lies. It's an access violation which normally means I havent allocated memory somewhere?
ListNode *vectorlist_create(int nodeAmount)
/*Add a node onto the vector list - allocating space with each new node*/
Anyways thanks so much for any help :)
'node' doesn't point to an actual instance of anything. In other words, it has no space allocated for it.
And what's with all the malloc casting in C?
There's a FAQ on the subject.