msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Internetopen generates Error: No more handles can be generat

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB WinAPI
Author Message
vbuser



Joined: 04 Feb 2008
Posts: 4

PostPosted: Mon Feb 04, 2008 4:37 am    Post subject: Internetopen generates Error: No more handles can be generat Reply with quote

Hi,



I'm using the function InternetOpen, InternetConnect and FtpPutFile to put a
file onto a FTP-Server.

Generally it's working very well, every minute a file ist generated.



But about every 14 days i get the error, when using InternetOpen: 20001, No
more handles can be generated.



Of course I use InternetCloseHandle to close then handles, given by
InternetOpen und InternetConnect.



Can anyone help ?



Thanks

Gerard

Archived from group: microsoft>public>vb>winapi
Back to top
View user's profile Send private message
Mark Yudkin



Joined: 04 Oct 2007
Posts: 198

PostPosted: Sun Feb 10, 2008 2:34 pm    Post subject: Re: Internetopen generates Error: No more handles can be gen Reply with quote

Sounds like you have a handle leak. You need to check your code to ensure
you really are closing all handles, as the error message implies that you
aren't (i.e. you have a bug somewhere).

"vbuser" wrote in message $ibp$2@news1.ewetel.de...
> Hi,
>
>
>
> I'm using the function InternetOpen, InternetConnect and FtpPutFile to put
> a
> file onto a FTP-Server.
>
> Generally it's working very well, every minute a file ist generated.
>
>
>
> But about every 14 days i get the error, when using InternetOpen: 20001,
> No
> more handles can be generated.
>
>
>
> Of course I use InternetCloseHandle to close then handles, given by
> InternetOpen und InternetConnect.
>
>
>
> Can anyone help ?
>
>
>
> Thanks
>
> Gerard
>
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB WinAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group