Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collision with simultaneous hits
Message
De
19/11/2013 09:10:11
 
 
À
19/11/2013 09:05:41
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01588296
Message ID:
01588309
Vues:
26
>>>There was a bad object being used. This had to be HttpWebResponse instead of WebResponse. I also added the close of the objects.
>>
>>
>>(1) The close statements are not where they should be.
>
>From various locations, this is where the example and documentation stated to place them.



I think that the examples are a bit sloppy

If something fails in the Try branch - it is possible that the object(s) won't exist
If you try Close() on a null reference - you'll get an exception



>
>>(2) Don't you have to close loStream ?
>
>In those places, this does not seem to be needed.
>
>>Why not 3 nested 'using' ?
>
>That could work also.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform