Mijn server met een remote data module werkt prima, op het volgende probleem na. Als het hoofdvenster zichtbaar is en Application.Terminate wordt uitgevoerd, verschijnt er - NIET door mij geschreven - automatisch een waarschuwingsbericht:
COM Server Warning
There are still active COM objects in this application. One or more clients may have references to these objects, so manually closing this application may cause those client application(s) to fail.
Are you sure you want to close this application?
[Ja- en Nee-buttons]
Als het hoofdvenster onzichtbaar is via Application.MainForm.Visisble := True, werkt Application.Terminate niet. De waarschuwing verschijnt niet en de applicatie blijft vrolijk doorlopen. Ik wil graag dat de waarschuwing dan zichtbaar wordt. Hoe doe ik dat? En als dat niet lukt, hoe sluit ik mijn applicatie toch af als hij onzichtbaar is?
COM Server Warning
There are still active COM objects in this application. One or more clients may have references to these objects, so manually closing this application may cause those client application(s) to fail.
Are you sure you want to close this application?
[Ja- en Nee-buttons]
Als het hoofdvenster onzichtbaar is via Application.MainForm.Visisble := True, werkt Application.Terminate niet. De waarschuwing verschijnt niet en de applicatie blijft vrolijk doorlopen. Ik wil graag dat de waarschuwing dan zichtbaar wordt. Hoe doe ik dat? En als dat niet lukt, hoe sluit ik mijn applicatie toch af als hij onzichtbaar is?
Een goede grap mag vrienden kosten.