Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending emails directly from VFP takes extremely long ti
Message
De
29/12/2005 17:36:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/12/2005 14:51:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01080354
Message ID:
01081884
Vues:
22
>>Understand - some consumer ISP's are reluctant to allow a node SMTP client to send too many emails. And some - depending on how they're routed - are slow to receive. I think what is happening is that the object is being recreated and initialized for every mail.
>
>The problem occurs only when sending emails using pure VFP code using code from http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail#winsock
>
>I found that the problem is in line
>
>
nWait = WSAWaitForMultipleEvents(1, @hEventRead,;
>			0, 1000, 0)
>
>This causes ALWAYS 1 second delay, even if data is received immediately.
>Any idea how to fix this ?

Experiment with the parameters - my guess is that 1000 means milliseconds.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform