Hi
Have a problem, Ill give some history to the problem and add a little
example code to start with
to see if anybody can help or if I am correct in what the problem is.
I have been looking on the newsgroups and have found lots of stuff on
the problem
but no solutions as of yet, will keep looking here to see if I can find
one that fits.
I created a script which runs a whole suite of regression tests, the
test exe which is
built daily, is created from c code, this changes from day to day as
stuff is added, and fixed, the exe is then used to run text files which
have lots of commands and data in, which produce lots of pretty
pictures on the screen, errors and warning output is also produced from
this, which I collect and create logs with. Up until recently I havn't
had any problems with my script, the main tests were run on a local
win32 machine with all the logs and test files all local, with
occasional runs on various different unix's and win64 platforms. We
have just recently had installed a big test and build rack full of
win32 (winxp) machines 3 of these are automated test machines which run
my script in a loop (it also builds the test exe and does one or two
other things), the test files are now held on a big central disk, which
was ment to save me coping data down from the network. The whole thing
works pretty well, a part from every so offen completely randomly the 3
machines seem to freeze (or to put in the terms of our sys admin it
trashes them).
The machines needs to be reset and the connection between the machines
and the big central disk is lost and needs to be reset as well.
According to the sys admin I need to be using, non blocking "i o" for
my file control, the code below shows what Im doing at the moment. Has
any one got any suggestions on what to do here, I kept everything
really simple so it would work across all platform and I thought I was
there,
but like with most things, its not and the code will probably get
really complex.
The code below is only a small snipet and I've made it simple for this
example but its the part I think where the freeze is happening.
output, input = popen2("cmd.exe ")
input.write("se t LI_DIR=" + MW_OPTS.GetOpti on("MainOpts"," LI_DIR") +
"\n")
input.write("se t LI\n")
# Writes commands to it.
input.write(mwt est_exe + mwtest_args + os.path.dirname (f_testlwc_str)
+ testlwc + "\n")
input.write("ex it\n")
while 1:
text = output.readline ()
if text:
OutputCount += 1
# Searches the line for errors, when found stops doing this.
f_Error_Code = FileLineQuickSt at(text , f_Possible_Errs _dict ,
f_Error_Code)
# Records the line in a log.
LW_FLOG.WriteLo gEntry("TEST_LO G",str(OutputCo unt),string.rep lace(text,"\n", ""),1)
else:
LW_FLOG.FinishL og("TEST_LOG"," ")
# Returns the error code.
return f_Error_Code
break
TIA
Guy 1 1681 gu*********@Mac hineworks.com wrote:
The whole thing works pretty well, a part from every so offen completely
randomly the 3 machines seem to freeze (or to put in the terms of our sys
admin it trashes them).
thrashing?
that usually means that a process uses too much memory, thus causing the
system to spend too much time swapping to be able to do anything useful.
have you checked the process size during normal operations? is it stable, or
does it grow a little all the time?
According to the sys admin I need to be using, non blocking "i o" for
my file control
if the problem is thrashing, I'm not sure I see how that would help.
</F> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marwan |
last post by:
Hello
I am using asynchronous delegates to make a call to a COM ActiveX object, but even though the call occurs on a separate thread, my UI is still blocking.
If i put the thread to sleep in my delegate call, the application is well behaved (no UI freeze), but the call to the com object causes the UI to lock up
Do I have to manage calls to an ActiveX object differently than using the BeginInvoke and a callback
A sample of the code I...
|
by: Matt Kruse |
last post by:
This is a common requirement - "freeze panes" in a table, so that some
header rows and some columns on the left are frozen while the body content
scrolls. This makes large tables more usable on screen.
There are a number of solutions available. For example,
http://www.litotes.demon.co.uk/example_scripts/tableScroll.html
I'm just wondering if anyone knows of a "latest and greatest" script to
solve this problem.
My requirement at the...
|
by: Colleyville Alan |
last post by:
I have an app in which users can select stuff from a multi-column listbox.
There are something like 30 columns of info for each item and all are
included in the listbox. When I scroll to the right to read some of them,
the identifying info is now scrolled off the screen to the left. Is there a
way to do this directly?
I think I can fake a solution by overlaying one listbox with the one column
on top of the other, but that's be clunky...
|
by: (Pete Cresswell) |
last post by:
I've got about 4,000 mutual funds.
Each fund currently has up to 255 "returns" associated with it. A 'return'
being a decimal number and a date for that fund.
I have a feeling that the clients will want somewhere tb able to just scroll
through a pivot list of funds and returns (one column for the fund, one column
for each date) like they are doing right now in an Excel sheet.
Anybody know a way to let them scroll horizontally, but...
|
by: Jesper Denmark |
last post by:
Hi,
Is deep serialization possible using XML. Know any good
tutorials?.
By deep serialization I mean the ability that an object
being serialized automatically serialize its members. E.g
Class A
{
| |
by: Anthony Boudouvas |
last post by:
Hi to all,
i have a form with 2 System.Windows.Forms.Timer objects.
One fire every 5 seconds and the other every 10 seconds,
the both take actions in two hashtables declared in same form.
When timers fire, main form is somewhat blocking until timers finish
their job, (socket operations). (Imagine to move the form by it's caption
bar and it somewhat freeze when timers fire...)
|
by: Nad |
last post by:
Hello All,
I have been trying to get some sort of documantion on how
StreamReader.ReadToEnd() finds out if the stream has ended and if
anyone can read the following lines and tell me how to control
indefinite blocking issue. these are from MSDN.
"ReadToEnd assumes that the stream knows when it has reached an end.
For interactive protocols, in which the server sends data only when
you ask for it and does not close the connection,...
|
by: Michael Williams |
last post by:
Can anyone explain why "freeze.py" will make binaries with the std
modules fine, however, when using 3rd party modules (Pexpect in
particular) it requires the target system to actually have it installed?
Thanks in advance,
Mike
|
by: morangolds |
last post by:
Hi,
I've been having a problem with C++ Windows Forms apps not "ending"
when you close the form window. I've searched about this problem all
over the place and most searches have lead me to believe that this has
to do with unreleased form component events or event handlers.
I'm comparatively new to .net and windows forms, in the sense that
though I've been using them for over 2 years now, it's been rather
sporadic. I work with...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |