Jump to content

  • Log In with Google      Sign In   
  • Create Account

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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 DrJohnB   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 January 2000 - 08:17 AM

what could be the problem?

Sponsor:

#2 bstach   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 January 2000 - 08:54 AM

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

#3 Oofnish   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 January 2000 - 06:50 AM

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*




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS