Here is a selection of answers to the most frequently asked questions about Freedom:

Q: Argh! Freedom's radio buttons are octagonal in monochrome!

A: When trying to implement AES font-independent round radio buttons, Chrisker spent several hours wrestling with VDI circles. You can't shake the suspicion that the VDI programmers knew nothing about circle-drawing algorithms and instead preferred to rely on Random().. )o: The actual success of Chrisker's efforts can only be appreciated when running Freedom with >=16 colors and a 3D AES. However, with smaller AES fonts, the octagons are indistinguishable from circles or ellipses.

Q: Why does the system file selector appear for certain programs without any apparent reason?

A: Due to Liberty's ability to repair defective AES calls, the above condition should no longer occur. If it still happens, there are really only three reasons:

  1. The program makes AES calls before appl_init or doesn't do appl_init at all (technical term: "pig program"..)
  2. Certain programs make AES calls in an unclean way. Some calls don't use the same global field in the AES parameter block that appl_init initialized. Often this is because the programs were developed with a GEM lib that has no bindings for some "newer" AES functions (e.g. fsel_exinput), so the programmer must make their own bindings. In these, they then use a different global field than the lib, often out of necessity when there's no way to access the lib's GEMPARBLK because the lib is written in Pascal, Basic, etc. The GEM lib from Pure Pascal even uses incorrect global fields by default. With Pure C, on the other hand, it's very easy to use the same GEMPARBLK as the lib for custom bindings. Under MiNT, passing an invalid global field even causes problems for the AES itself: in this case, the MiNT ID of the application must always first be converted to the Appl ID.
  3. Eight applications already have a Freedom selector window open.

Q: Freedom appears as a modal dialog for no apparent reason?!

A: Freedom uses the AES's MCTRL semaphore to detect floating dialogs, since in this case it naturally can't appear as a window... A few programs also bracket the file selector with MCTRL (e.g. Gemini), so Freedom must assume the file selector was called from a floating dialog. If this is never the case for a program, you can add it to the exception list ('#IGNOREMCTRL') in the configuration file. Candidates for this are e.g. Gemview, Imploid and Gemini, but not e.g. CAT and Maxidat, which both call the file selector from floating dialogs as well. For programmers, here's the guideline again: If the FSEL cookie is installed and the version number >= 2.00, the fsel_[ex]input call should not be bracketed with MCTRL, otherwise it should always be! With UPDATE you should always bracket it!

Q: When I move Freedom, the windows of the calling application suddenly disappear or get 'painted over', but after closing Freedom they're all back or look correct again?

or: When the Freedom window was closed, 'screen garbage' appeared!?

A: This is a fundamental problem with Freedom. Since the calling application is waiting for the file selector, there's no one there to redraw its windows if needed. To avoid screen garbage, Freedom can either fill windows that receive a redraw request with an image or hide them. If windows suddenly 'disappear', the hide method is active (can be changed with the Config-EPX). Both methods have advantages and disadvantages; the hide method is more stable and secure, since with the other method non-functional windows remain on screen and users might be 'tempted' to move them to access windows underneath. After file selection, many programs can't handle the changed window positions -> screen garbage appears.

For programmers: The image-fill method has another crucial problem: While Freedom sends a WM_MOVED followed by a WM_REDRAW after moving application windows. But 1. many applications don't process any messages immediately after file selection, and 2. sometimes another WM_REDRAW sent by the AES comes in between, causing the WM_MOVED to no longer arrive as the first message at the application, resulting in the window being redrawn at the wrong position. Also, with more messages queued by Freedom, which inevitably occur with protocols like XAcc, messages can get lost, which happens above a certain threshold with all known AES versions. The (mildest) effect is that application windows that were moved during file selection receive no redraw/moved messages, even though these were sent (verifiable in Sysmon!). Under MagiC, with many windows, triggering SMC_TIDY_UP might be considerable as a workaround instead of sending many redraws...

Q: When Kobold or Parafin, called by Freedom, close their window, a seemingly random window tops itself under MagiC?

A: This faulty topping comes from MagiC! MagiC tries to prevent the top window and the current menu bar from belonging to different programs. To do this, it ignores (to the user's delight) the window stack when closing an application's last window. Normally, this effect would occur every time Freedom closes its last window (which it does very often!) Fortunately, we came up with a trick: When MagiC is present, Freedom lowers the relevant window before closing it (if you look very carefully, you can see it). If the last window isn't the topmost when closing, MagiC behaves quite "normally". We can only hope that Andreas will override his beta testers' wishes on this point... After all, you can't expect all programmers to use this trick...

Q: Does Freedom actually survive a resolution change?

A: Yes and no. Under multitasking operating systems (MTOS, MagiC, NAES, Geneva etc.) the resolution change is not a problem. Under SingleTOS you should definitely 'terminate' Freedom first. You do this by selecting the accessory entry while holding the Control key. Freedom2 then announces in an alert box that a resolution change is possible.

Q: Why does the system alert + system selector appear under MiNT with "Load...."?