Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: st: replace-all can crash do-file
From
Hewan Belay <[email protected]>
To
[email protected]
Subject
Re: AW: st: replace-all can crash do-file
Date
Sat, 15 May 2010 21:31:32 -0700 (PDT)
Dear all, thanks for your thoughts so far. On the information requested: I am using PC and Windows-XP-Professional. Here�the output from doing �date- in my stata:
--------------------------------------------------------------------------------------------------
Stata executable
folder: C:\Stata11MP\
name of file: StataMP.exe
currently installed: 13 Jul 2009
Ado-file updates
folder: C:\Stata11MP\ado\updates\
names of files: (various)
currently installed: 13 Jul 2009
Utilities updates
folder: C:\Stata11MP\utilities
names of files: (various)
currently installed: 13 Jul 2009
Recommendation
Type -update query- to compare these dates with what is available from
http://www.stata.com.
Click to edit automatic update checking preferences
--------------------------------------------------------------------------------------------------
Martin, if I just do “replace” hh with hh_id, there is of course no problem. Rather, the problem occurs when I do “replace all” of hh with hh_id in the example I used. Also, the endless looping (which, by the way, I can’t follow with my eyes—I’m assuming it’s doing an endless loop since it freezes up) I would argue amounts precisely to a crash. The freeze/looping won’t stop, and when I try to close the find and replace window, I get the following message: “This programme is not responding. To return to Windows and check the status of the programme, click cancel. If you choose to end the programme immediately, you will lose any unsaved data. To end the programme now, click End Now.” My only options are End Now (which loses any unsaved data to the do file) or Cancel (which just takes me back to the frozen screen). So I have no choice but to click End Now.
It’s interesting that Kit didn’t find this problem prevalent in Mac, and Martin didn’t find it prevalent in Windows (which Windows? And did you do “replace all” rather than “replace”?), and Kieran didn’t find the problem prevalent in Windows 7, but did find it prevalent if she first checks the box “Regular Expression”. In my case, the problem obtains (on my PC and Windows XP machine) whether or not I check the box “regular expression”.
So my question: If anyone has a Windows XP, did they try the “replace all” and manage to get away without a forced crash and loss of unsaved data of the do-file?
Hewan
--- On Sun, 5/16/10, Mark Nichols <[email protected]> wrote:
> From: Mark Nichols <[email protected]>
> Subject: Re: AW: st: replace-all can crash do-file
> To: [email protected]
> Date: Sunday, May 16, 2010, 3:02 AM
> Since when is endless loop not
> considered a crash. This is silly.
>
> Mark
>
>
> On Sat, May 15, 2010 at 3:48 PM, Martin Weiss <[email protected]>
> wrote:
> > <>
> > Yes, in this case I get an endless loop as well. I
> would still insist it is not a crash, as Stata looks busy to
> me instead of shutting down without prior warning. Am I
> correct that [GSW] does not describe the tickboxes in the
> "replace" dialog box, but merely mentions its existence? Is
> there another entry for it anywhere else? I could not find
> one...
> >
> > HTH
> > Martin
> >
> > -original message-
> > Subject: RE: AW: st: replace-all can crash do-file
> > From: "Kieran McCaul" <[email protected]>
> > Date: 16-05-2010 00:25
> >
> > ...
> >
> > The only way I can get Stata to crash with Martin's
> example, is if I check the "Regular expression" box in the
> Replace window and leave the others unchecked. If I do
> that, then Stata will hang and clicking in the Replace
> window gives me the "not responding" message and the option
> of closing down Stata.
> >
> > Now, given that I don't have a regular expression in
> either the Find or Replace text, I wouldn't expect this to
> do anything, but I wouldn't expect it to cause Stata to
> crash either.
> >
> >
> >
> >
> > -----Original Message-----
> > From: [email protected]
> [mailto:[email protected]]
> On Behalf Of Martin Weiss
> > Sent: Saturday, 15 May 2010 8:59 PM
> > To: [email protected]
> > Subject: AW: AW: st: replace-all can crash do-file
> >
> >
> > <>
> >
> > " My guess is that this is a Stata for
> Windows-specific problem."
> >
> >
> > Not so sure: I tried the example in
> > http://www.stata.com/statalist/archive/2010-05/msg00801.html
> on a windows
> > machine, and nothing untoward happened to me there. So
> more information from
> > those who have suffered from this problem is required,
> including (but not
> > limited to) the output of the -update- command.
> >
> >
> >
> > HTH
> > Martin
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: [email protected]
> > [mailto:[email protected]]
> Im Auftrag von Kit Baum
> > Gesendet: Samstag, 15. Mai 2010 14:50
> > An: [email protected]
> > Betreff: re: AW: st: replace-all can crash do-file
> >
> > <>
> > My guess is that this is a Stata for Windows-specific
> problem. The do-file
> > editor in Windows has a number of bells and whistles
> not present in other
> > versions of Stata. The "find" dialog in Mac OS X
> do-file editor has a
> > 'replace all' button, but it behaves as expected in a
> do-file containing
> > multiple instances of, e.g., hh.
> >
> > Kit
> >
> > Kit Baum | Boston College Economics & DIW
> Berlin |
> > http://ideas.repec.org/e/pba1.html
> > An
> Introduction to Stata Programming |
> > http://www.stata-press.com/books/isp.html
> > An Introduction to Modern Econometrics Using Stata
> |
> > http://www.stata-press.com/books/imeus.html
> >
> >
> > *
> > * For searches and help try:
> > * http://www.stata.com/help.cgi?search
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
> >
> >
> > *
> > * For searches and help try:
> > * http://www.stata.com/help.cgi?search
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
> >
> > *
> > * For searches and help try:
> > * http://www.stata.com/help.cgi?search
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
> >
> >
> > *
> > * For searches and help try:
> > * http://www.stata.com/help.cgi?search
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
> >
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/