[Implemented] Longer timeout for debugger

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

[Implemented] Longer timeout for debugger

Post by PB »

Since my PC died I'm using a PIII @ 800 mhz with only 256 MB of RAM.
I can't compile my app anymore because I keep getting this error. :cry:
PureBasic IDE wrote:---------------------------
PureBasic Debugger
---------------------------
The debugged executable did not respond to communication for 5 seconds. Disconnecting.
---------------------------
OK
---------------------------
Can you make the timeout longer in a future release? At least 10 seconds?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Post by eesau »

Or perhaps an option to set the timeout length yourself.

I often get this error too, since my hard drive is breaking (I think), and it sometimes needs to spin up for a while when compiling.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

eesau wrote:Or perhaps an option to set the timeout length yourself.
Yes, that would be nice.

I use a HIPS (Host Intrusion Prevention System) and when a new exe is launched for the first time I have to authorize it, there is some time involved in the process and so I usually get the timeout error and need to restart the debug session.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

What is happening exactly, PB? Does your exe take longer than 5 seconds to start up?
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

eesau wrote: I often get this error too, since my hard drive is breaking (I think), and it sometimes needs to spin up for a while when compiling.
If your drive supports SMART

http://en.wikipedia.org/wiki/S.M.A.R.T.

try to look at its values with this software:

http://crystalmark.info/software/Crysta ... dex-e.html
Last edited by luis on Wed Feb 25, 2009 2:52 pm, edited 1 time in total.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Yes, it takes longer than 5 seconds after the executable has been created and
the debugger is waiting for the created executable to start. Even more so if
other apps are running, but that's not always the case. I know people might
say that PureBasic shouldn't support such a low-end PC, but that's not fair.
Anyone's fast PC can break down at any time (like mine!) and you have to
use whatever you can get your hands on in the meantime.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

definitely +1
for customizable timeout-length!
oh... and have a nice day.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

If your application is slow to start it's most likely your hard drive is taking too long to read the program into memory. I used to own a Pentium 3 933mhz and I don't consider that kind of a system slow at all, unless you're trying to run Vista on it or something. :?
georgej
User
User
Posts: 11
Joined: Wed Aug 17, 2005 5:21 pm

Post by georgej »

Since upgrading to version 4.3, I too am experiencing this problem. Everything was fine prior to the version upgrade. I don't think it is related to my hard disk or processor speed. I have noted that my Kaspersky Internet Security pops up a message up stating PureBasic Compilation0.exe has been placed in group Low Restricted, just prior to the error dialog box. I was wondering if there was any update with this problem.

George
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> If your application is slow to start it's most likely your hard drive is
> taking too long to read the program into memory

The compile/run thing is what's failing. Built executables run without problem.
Compile/run is slow, especially when other apps are running, so it's like the
CPU is struggling to juggle all system processes.

Five seconds is too short for a timeout for anything. Ten seconds is a better
minimum for anything, not just this issue. Just because today's PC are fast
doesn't mean the timeout should be dropped so low as to be unreliable.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
hm
User
User
Posts: 30
Joined: Mon Oct 27, 2003 12:15 pm
Location: Germany
Contact:

Post by hm »

Me too, I vote for "customizable timeout" due to my old hardware.
Most of the time five seconds are enough for my system but some times the error does occur. Chance gets worse if many applications are running and/or working in the background.
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

This gets my vote too. I'm currently compiling over a slow internet connection using a slow network drive and every compiled app takes about 10 - 15 secs to start up. Maybe a 'Do you want to wait another 5 seconds?' requester would do the job.
Mat
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

+1

My firewall often blocks new compilations for a few of seconds.
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Hroudtwolf wrote:
My firewall often blocks new compilations for a few of seconds.
DeInstall them, Personal Firewalls dont make sense. Click [german]

@topic: I also second this request as I sometimes get a timeout at work where PB is stored on a network drive which sometimes is slow. :-(
Tranquil
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

done for the next release:
- the timeout can be changed in the prefs
- the default is 10 seconds
quidquid Latine dictum sit altum videtur
Post Reply