DOA in Windows Service

HolgerS

Member
Hi,

any chance to compile a Windows Service Application with DOAs without any references of the "Forms" unit and any "messagebox" etc calls ?

From the In the 4.0 "What's new" text:
"NONVISUAL: removes all references to visual units for character based Linux servers "

Does this work with Windows too ?

Regards

Holger
 
The NONVISUAL compiler directive will also work on Windows. For a Windows application this will never be a requirement though, it will merely reduce the size of your executable/dll. Direct Oracle Access will not spontaneously create forms or display messageboxes, unless you explicitly program it.

Note that you can only use this directive if you have the Direct Oracle Access source code option.
 
When you are writing a service for Windows NT/2000/XP you can create forms and put usefull information in it. Just make sure no user interaction is required. You will never see the forms unless you click the box to interact with the desktop.

I have found this to be helpfull on fixing problems with a service... Tell it to interact with the desktop and see what is happening.
 
Back
Top