For the following code I keep getting an access violation exception but i'am not sure why. the expection seems to disappear when the size of the queue is one. queue being a single linked list:
H_queue_empty_H=H_queue_empty_H->next; // THE EXCECPION APPEARS HERE
b->duration= currentTime +GenExpRV(mewHwait_H);
b->next = (queue *)NULL;
So guys what do you think might be the problem?
Any suggestions plz