Re: infinite loop in dbcancel

Sergio NNX <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
> You can. However I think on Windows you have to call a function to set the
> error and I don't know which constant would be better. On Windows these
> kind of error (socket ones) have no relation with c errno

I don't know whether or not it is a good practice, but you could set errno to the value of WSAGetLastError() and then use gai_strerror() or FormatMessage() or whatever you prefer.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.