Advertisement

Why do I get an Access Violation on WSACleanup() sometimes?

Started by January 24, 2000 02:17 PM
1 comment, last by DrJohnB 24 years, 10 months ago
what could be the problem?
With out more details about what you are doing before the call to WSACleanup() it is hard to say.

I would check to make sure that any buffers that have been allocated and been used by the sockets library are not being freed to soon. Also check to make sure that any buffers you have recieved from the sockets library are being cleaned up by the owner of the buffer. The sockets library may be trying to free memory that you have already freed, or vice-versa.



Edited by - bstach on 1/24/00 2:55:30 PM
Advertisement
Its been my experience that it is very difficult to make WSACleanup() crash. It doesn''t have problems when you free sockets before calling it...
I have never succeeded in making it crash my system... and I usually manage to make every function crash my system at some time or another...

Perhaps if you are manually changing a sockets information before the call to cleanup. I.E. somehow changing the handle number, so when WSACleanup() goes to free it, it tries to free an invalid socket number.


*oof*
*oof*

This topic is closed to new replies.

Advertisement