Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: general debugging question

From   Jeph Herrin <>
Subject   st: general debugging question
Date   Tue, 23 Apr 2013 13:18:36 -0400


I'm running Stata 12.1 on a Win7 64b machine (among others). I have -do- file which takes about 12 hours to run;
it grinds through a large database, creating ~1600 reports each consisting of plain text written out with -file-
statements and some Stata graphs exported as -wmf- files.

The problem is that on every occasion that I have run this -do- file, Stata has stopped after about 600-800
reports. It does not give an error - in fact, it simply hangs up, and does not respond to any input, and has to be
shut down via killing the process. Because of this, I have no idea why the program has hung - I can delete the
most recent report, restart, and it finishes everything fine. The machine is not connected to the internet and
does no automatic updating etc, and, while one can never tell with Windoze, it doesn't seem to matter what time
of day I run it. Running reports for a small sample (anywhere from 1 to 100) has never produced the problem.

This is a nusiance, especially as I would like to run this overnight so that I might use the machine for other things during the day. I have tried various tricks to try to trap the problem. However, none work, because it seems to be
the Stata kernel that halts. First question: is there some way to find out what is happening?

The machine has 24gb RAM, but I still suspect that with the many graphs and -file write- statements, some buffer or
other is overflowing. So second question: are there some buffers I can clear within the loop that might resolve
the problem?

Thanks for any suggestions,

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index