Bookmark and Share

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: st: Capture break in mata


From   George Vega Yon <[email protected]>
To   [email protected]
Subject   Re: st: Capture break in mata
Date   Wed, 2 Oct 2013 09:14:09 -0300

Hi!

Doing this in Unix also works just as expected. What's with Windows?
By the way, I'm running:

Windows 7 professional: Stata/IC 12.1
Unix: Stata/MP 12.1

Would appreciate very much if someone from Stata itself can help us =).

Best regards,

George Vega
George Vega Yon
7 647 2552
http://cl.linkedin.com/in/georgevegayon


2013/10/2 Phil Schumm <[email protected]>:
> On Oct 1, 2013, at 6:25 PM, James Fiedler <[email protected]> wrote:
>> I also tried
>>
>> real scalar myfunc() {
>>    real scalar bk, i, j
>>
>>    bk = setbreakintr(0)
>>    i = 0
>>    while (!breakkey() & i++ < 1e8) {
>>        for (j = 1; j <= 1e4; j++) {
>>        }
>>    }
>>
>>    breakkeyreset()
>>    (void) setbreakintr(bk)
>>
>>    return(i)
>> }
>>
>> and couldn't get it to work. When I hit the break button, I get a popup saying "Break disallowed at this time". Maybe this depends on some setting in Stata?
>
>
> This appears to be Windows-specific behavior (i.e., I too am able to replicate what you describe under Windows).  On OS X, it works as expected.  Perhaps someone with more experience on Windows could comment.
>
>
> -- Phil
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index