Closed GoogleCodeExporter closed 9 years ago
Does this happen when you are not connected to the Internet?
Original comment by pyscripter
on 6 Dec 2008 at 4:06
No, but I am behind a corporate firewall so there is no direct access to the
internet
apart from through a proxy server.
I had a look at the repo and see this.
{code}
if CommandsDataModule.PyIDEOptions.AutoCheckForUpdates and
(DaysBetween(Now, CommandsDataModule.PyIDEOptions.DateLastCheckedForUpdates) >=
CommandsDataModule.PyIDEOptions.DaysBetweenChecks) and ConnectedToInternet
then
PostMessage(Handle, WM_CHECKFORUPDATES, 0, 0);
{code}
The function ConnectedToInternet probably returns true in my case but an
attempt to
download the file would have to go through the proxy.
If there is a timeout somewhere which can be set to a low value by default. A
way to
cancel the checking for new version is probably harder but better.
Original comment by fredrik....@gmail.com
on 6 Dec 2008 at 5:39
I will have a look at the timeout, but you can disable the check for updates
using
the Tools, Options, IDE Options.
Original comment by pyscripter
on 7 Dec 2008 at 1:46
True, but the problem is the first time I start the application hangs. That is
why I
found the workaround using the INI-file otherwise I could not get the
application to
start (or start with a very long timeout).
Original comment by fredrik....@gmail.com
on 7 Dec 2008 at 9:55
I am using WinInet to connect to the internet with the
INTERNET_OPEN_TYPE_PRECONFIG.
hNet := InternetOpen(
'PyScripter',
INTERNET_OPEN_TYPE_PRECONFIG,
nil, nil, 0);
So if you set your proxy with Internet Explorer internet options the proxy
settings
would be available to PyScripter. Similarly the WinInet timeout options apply
to
PyScripter as well.
The only thing I could do is to disable Check for Updates by default, but I am
not
sure I want to do that.
Original comment by pyscripter
on 22 May 2009 at 1:45
I see as designed for this issue. This might be a good point to add to a FAQ.
Original comment by daniel.w...@gmail.com
on 3 Jun 2011 at 5:13
Original issue reported on code.google.com by
fredrik....@gmail.com
on 18 Nov 2008 at 7:55