You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Close DLL's when Vcc closes; consolidate logger
This addresses issue #47; Cartridge modeless dialogs do not close
when Vcc closes.
Fix was to call UnloadDLL in Vcc main window when close event occurs.
Previously the unload was being attempted after the execution loop
exited which was failing because resources held by some dll's (mpi.dll)
were preventing loop exit.
Also consolidated acia logger to use main Vcc logger. Logger is only
used for debugging Vcc code. Consolidation permits uniform logging
with modules.
* Remove logging call erronously left in acia.c
* Reset BUS on Vcc exit. Acia load rom on dll load
1) Reset pak interface bus on Vcc exit. This forces acia
reset when Vcc exits.
2)Remove acia rom load from reset to load. This seems to resolve
issues with GO TO "BASIC" function in program pak.
* Fix config dialog creation for mpi and acia DLLs
This patch, part of the effort to get DLL dialogs to close properly
when Vcc closes, changes the behaviour of the subject dialogs. The
dialogs are still modeless but will no longer be covered by the VCC
window. (MS standards require modeless dialog windows not be be
occluded by the window's owner)
DialogBox() was being used to create the config dialog boxes for
mpi and acia DLLs. DialogBox() is only for modal dialogs but will
create a modeless dialogs if the parent window is specified as NULL.
This usage causes Vcc to crash when DLLs are unloaded without first
closing the dialog.
The incorrect calls were replaced with CreateDialog() which properly
creates modeless dialogs.
At this point the fd502 DLL still has the issue. To demonstrate run
fd-502 config from the Cartridge menu then while dialog is open either
unload the mpi module or eject FD-502 from it's mpi slot. Vcc will
crash as soon as any event is sent to the still visible dialog.
* Cleanups on command parsing
* Changes to fd502, harddrive, and becker dialogs
Config dialogs modeless but now stay on top of VCC window.
New disk file dialogs are changed to modal
* fd502 destroy config window on unload.
Config window was not being destroyed when DLL unloaded.
---------
Co-authored-by: ejaquay <[email protected]>
0 commit comments