#1 2016-05-09 09:47:48

Eric
Member
Registered: 2012-11-26
Posts: 129
Website

Compile error with XE and minor service issues

When compiling with Delphi XE:

* in SynCommon, SearchRecToDateTime there is a warning about F.Time being deprecated, can be fixed by changing the ifdef to "{$ifdef ISDELPHIXE}" (rather than XE2)

Minor windows service issues:

* mORMotService redefines types from WinSvc, notably TServiceStatus, but does not exposes the corresponding API calls, so it conflicts with it. Solution is to move the API calls from implementation to interface (so unit can be used as an alternative to WinSvc), or to move all structure declarations from interface to implementations (so they will not conflict).

* after a TServiceController.Delete, a call to .State returns ssErrorRetrievingState instead of ssNotInstalled

Offline

#2 2016-05-09 11:22:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,666
Website

Re: Compile error with XE and minor service issues

Please see http://synopse.info/fossil/info/f686cd0d19
and http://synopse.info/fossil/info/4102d9f50b

It should fix the issues.

Thanks for the feedback!

Offline

#3 2016-05-09 12:29:36

Eric
Member
Registered: 2012-11-26
Posts: 129
Website

Re: Compile error with XE and minor service issues

Thanks!

Offline

Board footer

Powered by FluxBB