Login  
Search All Forums
Dart Home | PowerTCP SSL for ActiveX | Custom Development Reply | PowerTCP SSL for ActiveX Topics | Forums   
AuthorForum: PowerTCP SSL for ActiveX
Topic: SecureServer error 10022 invalid argument
nadam

From: Stockholm, Sweden
Posts: 3
Member Since: 08/04/03
posted August 4, 2003 11:04 AM

We have created a simple Delphi application based on the SecureServer component. Sometime we get the error message "Windows socket error: An invalid argument was supplied (10022), on API 'WSACancelASyncRequest'".

It pops up in a standard Windows error window with an Ok-button you have to press. What could be the cause of this? How can I prevent it from happening?

/Adam
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 4, 2003 11:20 AM

My best guess would be that you are running out of sockets. If you aren't able to resolve this, please send a very simple demo that reproduces the problem to support@dart.com

nadam

From: Stockholm, Sweden
Posts: 3
Member Since: 08/04/03
posted August 5, 2003 9:51 AM

Unfortunatelly I'm not able to write a simple demo. But let's say I am running out of sockets - what can I do to prevent this? Or when it does happen, can I have code in the Error event handler that takes care of the error and prevents the error message from popping up?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 5, 2003 11:12 AM

Actually, since you are using the server control, you would not have control over the low level socket creation.

I really need a way to duplicate the problem if you want me to find a solution. It's not an error that we have ever seen or had reported to us.
nadam

From: Stockholm, Sweden
Posts: 3
Member Since: 08/04/03
posted August 19, 2003 7:57 AM

Can I use some other components instead of the SecureServer, to get better control of the low level socket creation?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 19, 2003 8:43 AM

Sure, you can use the Daemon control as your listener and a SecureTcp control as the child connection.

The Winsock Tool contains examples so you may want to download that as well. You wouldn't have to buy it, you just need to look at the examples and change them to use Secure children.

Reply | PowerTCP SSL for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX