<feed xmlns='http://www.w3.org/2005/Atom'>
<title>viewer.git/indra/win_crash_logger/llcrashloggerwindows.cpp, branch main</title>
<subtitle>Megapahit's fork of the Second Life viewer.
</subtitle>
<id>https://www.megapahit.org/viewer.git/atom?h=main</id>
<link rel='self' href='https://www.megapahit.org/viewer.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/'/>
<updated>2021-03-16T22:19:38Z</updated>
<entry>
<title>SL-14541 removed breakpad, win_crash_logger, updated zlib</title>
<updated>2021-03-16T22:19:38Z</updated>
<author>
<name>Andrey Kleshchev</name>
<email>andreykproductengine@lindenlab.com</email>
</author>
<published>2021-03-16T22:19:38Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=6b73a8331f558f29903b797dedc09c7419958fdb'/>
<id>urn:sha1:6b73a8331f558f29903b797dedc09c7419958fdb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MAINT-7691 Fixed crash report not generating files in unicode named folders</title>
<updated>2017-09-06T13:04:59Z</updated>
<author>
<name>andreykproductengine</name>
<email>andreykproductengine@lindenlab.com</email>
</author>
<published>2017-09-06T13:04:59Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=4a4d93d8c0c45248f76d6f27fb523b8ad361a473'/>
<id>urn:sha1:4a4d93d8c0c45248f76d6f27fb523b8ad361a473</id>
<content type='text'>
</content>
</entry>
<entry>
<title>DRTVWR-418: Unify control flow through LLAppViewer across platforms.</title>
<updated>2016-06-30T20:51:50Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2016-06-30T20:51:50Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=464a0df4c1d3e4073fe0bde506ac1d4aa194b02f'/>
<id>urn:sha1:464a0df4c1d3e4073fe0bde506ac1d4aa194b02f</id>
<content type='text'>
The LLApp API used to consist of init(), mainLoop(), cleanup() methods. This
makes sense -- but on Mac that structure was being subverted. The method
called mainLoop() was in fact being called once per frame. There was
initialization code in the method, which (on Mac) needed to be skipped with an
already-initialized bool. There was a 'while' loop which (on Mac) needed to be
turned into an 'if' instead so the method would return after every frame.

Rename LLApp::mainLoop() to frame(). Propagate through subclasses LLAppViewer
and LLCrashLogger. Document the fact that frame() returns true to mean "done."
(This was always the case, but had to be inferred from the code.)

Rename the Mac Objective-C function mainLoop to oneFrame. Rename the C++ free
function it calls from runMainLoop() to pumpMainLoop(). Add comments to
llappdelegate-objc.mm explaining (inferred) control flow.

Change the Linux viewer main() and the Windows viewer WINMAIN() from a single
LLAppViewer::mainLoop() call to repeatedly call frame() until it returns true.

Move initialization code from the top of LLAppViewer::frame() to the init()
method, where it more properly belongs. Remove corresponding
mMainLoopInitialized flag (and all references) from LLAppViewer.

Remove 'while (! LLApp::isExiting())' (or on Mac, 'if (! LLApp::isExiting())')
from LLAppViewer::frame() -- thus unindenting the whole body of the 'while'
and causing many lines of apparent change. (Apologies to reviewers.)

There are four LLApp states: APP_STATUS_RUNNING, APP_STATUS_QUITTING,
APP_STATUS_STOPPED and APP_STATUS_ERROR. Change LLAppViewer::frame() return
value from (isExiting()) (QUITTING or ERROR) to (! isRunning()). I do not know
under what circumstances the state might transition to STOPPED during a
frame() call, but I'm quite sure that if it does, we don't want to call
frame() again. We only want a subsequent call if the state is RUNNING.

Also rename mainLoop() method in LLCrashLogger subclasses
LLCrashLoggerWindows, LLCrashLoggerMac, LLCrashLoggerLinux. Of course it's
completely up to the frame() method whether to yield control; none of those in
fact do. Honor protocol by returning true (frame() is done), even though each
one's main() caller ignores the return value.

In fact LLCrashLoggerWindows::mainLoop() wasn't using the return protocol
correctly anyway, returning wParam or 0 or 1 -- possibly because the return
protocol was never explicitly documented. It should always return true: "I'm
done, don't call me again."
</content>
</entry>
<entry>
<title>maint-5974 / maint-5422: rip crash logger save behavior out of windows logger</title>
<updated>2016-03-08T19:55:48Z</updated>
<author>
<name>Glenn Glazer</name>
<email>coyot@lindenlab.com</email>
</author>
<published>2016-03-08T19:55:48Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=daf8b882a12cf903d180f6303065d7b83f7a1958'/>
<id>urn:sha1:daf8b882a12cf903d180f6303065d7b83f7a1958</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge</title>
<updated>2014-04-22T18:19:28Z</updated>
<author>
<name>Xiaohong Bao</name>
<email>bao@lindenlab.com</email>
</author>
<published>2014-04-22T18:19:28Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=ae564140c0ff1e05ebfab0752458313da0c07a79'/>
<id>urn:sha1:ae564140c0ff1e05ebfab0752458313da0c07a79</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint-5707 window should no longer be displayed.</title>
<updated>2014-04-15T21:57:47Z</updated>
<author>
<name>Aura Linden</name>
<email>aura@lindenlab.com</email>
</author>
<published>2014-04-15T21:57:47Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=a39c5926fccb2e7a209240fc29d2086f1ce78272'/>
<id>urn:sha1:a39c5926fccb2e7a209240fc29d2086f1ce78272</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge with release</title>
<updated>2014-04-08T02:09:40Z</updated>
<author>
<name>Richard Linden</name>
<email>none@none</email>
</author>
<published>2014-04-08T02:09:40Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=98aabdc176c23de9ba23f902dc2015f9c775d26e'/>
<id>urn:sha1:98aabdc176c23de9ba23f902dc2015f9c775d26e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Still wasn't doing the right thing with log files.</title>
<updated>2014-03-26T01:30:39Z</updated>
<author>
<name>Aura Linden</name>
<email>aura@lindenlab.com</email>
</author>
<published>2014-03-26T01:30:39Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=5b7929364b53ed1e4798ff4c7904014b6f423c0c'/>
<id>urn:sha1:5b7929364b53ed1e4798ff4c7904014b6f423c0c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed dumb mistake.</title>
<updated>2014-03-25T21:05:51Z</updated>
<author>
<name>Aura Linden</name>
<email>aura@lindenlab.com</email>
</author>
<published>2014-03-25T21:05:51Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=fdb65d2c28b5256d0442a2ab4499d04d91ecc96e'/>
<id>urn:sha1:fdb65d2c28b5256d0442a2ab4499d04d91ecc96e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The simple approach has not worked.  This hybrid solution should avoid the Windows issues and get us per-run logfiles.</title>
<updated>2014-03-25T05:44:51Z</updated>
<author>
<name>Aura Linden</name>
<email>aura@lindenlab.com</email>
</author>
<published>2014-03-25T05:44:51Z</published>
<link rel='alternate' type='text/html' href='https://www.megapahit.org/viewer.git/commit/?id=0893b49ebdd5c072f099ab7a9aa75d106c0c439b'/>
<id>urn:sha1:0893b49ebdd5c072f099ab7a9aa75d106c0c439b</id>
<content type='text'>
</content>
</entry>
</feed>
