Audio (340) Datatype (50) Demo (203) Development (592) Document (22) Driver (100) Emulation (146) Game (984) Graphics (491) Library (112) Network (230) Office (65) Utility (907) Video (68)
Total files: 4310
Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
|
Betterclosescreen | Description: | Ensures that public screens always get closed | Download: | betterclosescreen.lha (TIPS: Use the right click menu if your browser takes you back here all the time) | Size: | 65kb | Version: | r3 | Date: | 04 Jul 2011 | Author: | Chris Handley | Submitter: | Chris Handley | Category: | utility/misc | Replaces: | utility/misc/betterclosescreen.lha | License: | Public domain | Distribute: | yes | Min OS Version: | 4.0 | FileID: | 6493 | | | Comments: | 8 | Snapshots: | 0 | Videos: | 0 | Downloads: | 256 (Current version) | | 303 (Accumulated) | Votes: | 0 (0/0) (30 days/7 days) | |
This is a little Shell program which patches CloseScreen() so that it can never
fail for public screens. If closing would fail (usually due to a foreign
'visitor' window) then it waits one second & tries again, until it succeeds.
I wrote this patch because Ringhio notifications (e.g. from TuneNet) seem to
prevent most Amiga programs from closing their screen (including all MUI ones!),
because they wrongly assume the screen closed correctly.
Changes for this release:
* Programs using CloseScreen(NULL) will no-longer crash. Thanks to Chris Young
for the bug report.
* Quitting with Ctrl-C will now abort any CloseScreen() calls that have gotten
stuck waiting for the screen to close.
* Refactored the patching code into a separate reusable module. :-)
|