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 at the end of May, and its replacement, statalist.org is already up and running.


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

AW: st: replace-all can crash do-file


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: replace-all can crash do-file
Date   Sat, 15 May 2010 14:24:16 +0200

<> 


All those who have encountered this "crash" should describe their hardware
and software, OS, etc. in greater detail. I bet tech support does want to
know about a "crash", but from Hewan`s description, it sounded more like an
endless loop rather than a "crash". His term "do-file crash" does not convey
much to me, to be honest. How do those who have witnessed this event end the
endless replacement cycle?



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Julie Bindel
Gesendet: Samstag, 15. Mai 2010 14:09
An: statalist@hsphsun2.harvard.edu
Betreff: Re: st: replace-all can crash do-file

I have encountered this problem as well.  It will crash STATA 11.

julie


On Fri, May 14, 2010 at 8:58 PM, Hewan Belay <hewan_belay@yahoo.com> wrote:
> Dear Statalist,
>
> I couldn't find any reference to this issue in the archives, though I am
sure it must have already afflicted many.
>
> It appears that the find-and-replace option in the Stata 11 do-file
handles "replace all" (e.g. when you do CTRL+H) in a way that can crash the
do-file--and lead to exasperating loss of data if one hasn't saved the file
in some while. It seems that when using "replace all", for example when
replacing all "hh" with "hh_id", it never stops replacing, thus creating
hh_id, then hh_id_id, etc., leading to a do-file freeze then crash. If not
clear what I mean, give it a try! Even Notepad is more intelligent and only
searches once through the document when using "replace all".
>
> I try to be careful about using "replace all" in stata (e.g. in the above
example, replacing all "hh" with "house_id" would not cause a crash), but
it's easy to forget that it won't stop looping, and face an unpleasant
do-file crash. Is there any setting I can change to avoid this behaviour in
do-files?
>
> Thanks,
> Hewan
>
>
>
>
> *
> *   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/


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