Commit Graph
20063 Commits
Author SHA1 Message Date
Glenn Maynard 3c3cd91949 cleanup 2006-02-13 01:32:25 +00:00
Glenn Maynard 5095a45ae6 workaround vc6 bug 2006-02-13 01:28:40 +00:00
Chris Danford 6116d9f1bc fix VC6 build 2006-02-13 01:07:44 +00:00
Steve Checkoway 731368a0e7 Use host_os and host_cpu. 2006-02-12 22:38:38 +00:00
Glenn Maynard e6ae006f60 Fix dangling pipe: we didn't close the child's ends of
the pipes in the parent, so it kept a reference to the
handles.  (This didn't cause problems normally, but since
the child's ends of the pipes remained open when it closed,
it reduced reliability in failure cases.)
2006-02-12 04:57:13 +00:00
Glenn Maynard b491a6d702 error strings 2006-02-11 22:53:28 +00:00
Glenn Maynard f7fa4b07f1 update 2006-02-11 10:47:39 +00:00
Glenn Maynard 23dcc99781 Add automatic error reporting. This sends crashinfo.txt
over HTTP as a POST form.  This is intended to decrease the
amount of effort required to submit bug reports, reduce the
potential for human error, and increase the consistency of
the form of bug reports (always a crashinfo.txt, no wrapping
or RARring, not pasted into BTS text fields, and no forgetting
it entirely).

This offers less chance to fix the bug than a real BTS entry.
We can't interact with the user (since the submission is
anonymous and not tied to an email), so we can't get more
information about the problem or offer solutions; we can only
fix it based on the crashinfo.  This will result in noise, due
to crashes caused by drivers.

We don't want people to send bug reports accidentally, but we
also don't want to encourage cancelling the report.  This dialog
defaults to "view", so pressing enter neither sends the report
nor cancels.

We don't want people to modify crashinfo.txt before they send
it, since we want consistency.  (Data sent is not re-read from
crashinfo.txt; it's simply kept in memory.)  We also don't want
to give people the impression that changes in "view" will change
what's sent.  At the same time, it's convenient to have the
crashinfo "view" function load notepad.  So, crashinfo.txt is
marked read-only, so attempts to save over it in notepad will fail.

In this mode, we don't offer the option to load log.txt, or
point to a BTS.  This is intended to make bug submission as
simple as possible for casual users.  Keep the dialog simple
and to the point.

The id number that's displayed after a submission is intended
to be used as a reference; we can say "reproduce the crash,
submit the report and tell us what number is shown in the corner",
and easily locate the report.  It's intended to be ignorable by
the most users, so no attempt is made at explaining what it means.
(It should probably be grayed out, but I havn't dug into it yet
to figure out how to gray it while still allowing the text to get
focus, so it can be copied.)

We send over HTTP, on port 80.  This is probably the most likely
way to be able to send data out without any configuration.

(The localization support is incomplete.)
2006-02-11 10:45:24 +00:00
Steve Checkoway b09d333d14 Add placeholder. 2006-02-11 09:31:39 +00:00
Glenn Maynard 088a5505dc update 2006-02-11 08:15:36 +00:00
Glenn Maynard a6bd91b9d4 use WindowsDialogBox 2006-02-11 08:00:38 +00:00
Glenn Maynard d94c5912c8 also fixup (dur; goofed up a partial commit) 2006-02-11 07:54:26 +00:00
Glenn Maynard 4d2ba02c06 fixup 2006-02-11 07:53:21 +00:00
Glenn Maynard bcab631922 pull out MakeCrashReport call 2006-02-11 07:52:39 +00:00
Glenn Maynard 9cbc530b64 Add networking helpers for the crash handler.
Most of this will eventually be moved to arch, once I spend some more time
polishing the interface and implementing the BSD sockets version.
2006-02-11 07:49:52 +00:00
Glenn Maynard 7bf1364fb5 Add a couple small helpers for two types of Windows windows. (I
tried merging these, but it's not worth it; they're too simple
and a little too different for it to be worth it.)

(How does one unambiguously refer to a Windows window without
sounding silly?)
2006-02-11 06:53:21 +00:00
Glenn Maynard 7a1852ef2b these have their own newlines 2006-02-11 05:36:43 +00:00
Glenn Maynard 48e1266e19 add a line header; easier to read and search 2006-02-11 05:34:55 +00:00
Glenn Maynard b1f072479a This is read into a string; no need to send the null terminator. 2006-02-11 05:33:33 +00:00
Steve Checkoway fbe91a6c7e Simplify. 2006-02-11 04:41:39 +00:00
AJ Kelly 235df13944 new splash 2006-02-11 04:25:13 +00:00
Glenn Maynard 218b7d194a add "Force Crash" for testing the crash handler 2006-02-11 03:47:42 +00:00
Glenn Maynard 4f1322da92 all else is equal, so we may as well use lowercase; that's what locale
identifiers do (eg. "en_US"), anyway.
2006-02-11 03:45:25 +00:00
Glenn Maynard 7f326ae2cf fix example 2006-02-11 03:41:05 +00:00
Glenn Maynard 30427807f6 Fix line ending glitches in crashinfo.txt due to changes in how it's written. 2006-02-11 03:12:17 +00:00
Steve Checkoway 4633edaefa Comment. 2006-02-10 15:05:51 +00:00
Steve Checkoway 3a61afbc08 Attempt to do this with slightly less voodoo. It was spamming output due to failure before, which was causing skips every time the log/info was flushed. 2006-02-10 13:36:26 +00:00
Steve Checkoway c0c7804333 Revert. 2006-02-10 11:48:41 +00:00
Steve Checkoway d2136fb15b Cleanup. There is no way to prevent being preempted on OS X. 2006-02-10 10:28:01 +00:00
Steve Checkoway f1e8662ac6 Spacing cleanup. 2006-02-10 10:14:15 +00:00
Steve Checkoway b6d4aa4ff7 Spacing cleanup. 2006-02-10 10:05:20 +00:00
Steve Checkoway 0955b5410b Cleanup. 2006-02-10 10:01:12 +00:00
Steve Checkoway 8e1f4254a7 Get thread backtrace context on i386. 2006-02-10 09:55:53 +00:00
Steve Checkoway bd614eed21 Simplify. 2006-02-10 09:42:37 +00:00
Steve Checkoway 5c5655b137 Check for NULL. 2006-02-10 09:41:42 +00:00
Steve Checkoway 3f199dbf2a Check all values returned from dictionaries. 2006-02-10 09:36:35 +00:00
Steve Checkoway dfa720254d dict -> properties 2006-02-10 09:21:39 +00:00
Steve Checkoway 7f097a9946 Document the API. 2006-02-10 09:21:20 +00:00
Steve Checkoway 69337c8e0f Follow the stricter API. 2006-02-10 08:54:22 +00:00
Steve Checkoway b1818e1831 Make API stricter so that a physical device cannot have logical devices of different types.
For example, if 15 joysticks already have IDs and an adaptor that has two logical joysticks is assigning IDs, it cannot have DEVICE_JOY16 for the first and DEVICE_PUMP1 for the second.
2006-02-10 08:54:07 +00:00
Steve Checkoway 4199cbc9c0 Create JoystickDevices for HID game pads (untested). 2006-02-10 08:50:24 +00:00
Steve Checkoway bb9848adcc Revert. 2006-02-10 04:49:45 +00:00
Chris Danford 79d1c0006e shorter help strings for localization 2006-02-10 04:37:38 +00:00
Chris Danford 95c88765a0 fix options rows tween from top of screen instead of initially being in the row's position 2006-02-10 04:33:54 +00:00
Glenn Maynard 92682e0ef0 move code 2006-02-10 04:25:50 +00:00
Glenn Maynard 8be243e3a0 tab/spacing cleanups 2006-02-10 01:56:23 +00:00
Glenn Maynard 0f249786d1 cleanup 2006-02-10 01:46:46 +00:00
Glenn Maynard 13096dedf0 This isn't in crash conditions anymore, so we can reuse this. 2006-02-09 23:55:28 +00:00
Glenn Maynard 9899823297 cleanup 2006-02-09 23:53:42 +00:00
Glenn Maynard 8814b127c7 hFontMono is unused 2006-02-09 23:53:23 +00:00