HN2new | past | comments | ask | show | jobs | submitlogin

Delphi 10.2 was advertised to support making Linux web services, so I decided to put it to test. I created a Windows Apache module, added a Linux 64bit target, added a data provider and a database connection. The idea is to provide the database as a soap service on Linux to get a quick and cheap(!) Data layer.

The provider plays nicely with the client dataset and let's you interact with UI elements, sending automatic updates to the database through the soap service.

So when I switched to the Linux build, I noticed that data provider component in the components toolbar was disabled. That means it isn't supported on Linux.

Tricking the IDE with a Windows project, placing the provider in a data module and switching it to Linux target, I tried to get it to work on Apache. No response from soap.

After a couple of hours of eyeballing and recompiling the provided Delphi sources, I realized that the support is actually there, but there were some programming errors such as not implementing the entire interface, and somehow the memory manager behaved weirdly on Linux, causing another interface to go nil while refcount still didn't reach zero.

All in all, Delphi makes it easy to build Windows applications, complete with data layers and Model-view style. I just wish they would hurry up with the Linux server support.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: