Mode switch delphi not allowed here

Hi,
I tried to install version 1591 to lazarus 3.4. But I got an error of “Mode switch Delphi not allowed here” in “RemObject.inc”. Any suggestion for this issue?

Thanks!
Timothy

Hi,

I can’t reproduce this:

Hi,
I retried to remove all things and reinstall it again. It shows the same error as below.

Hi,

How I can reproduce it?

Hi,
I remarked {$MODE DELPHI} and then I installed successfully. Thanks.

image
image

May I know anything is missing? Besides, am I convert delphi to Lazarus by Lazarus’s tool?

Hi,

why do you convert Remoting SDK/Data Abstract packages?
we already ship lazarus packages (.lpk) …

Hi,
Sorry that I haven’t clarify more clearly. Am I convert my delphi project to lazarus by Lazarus’s tool?

Hi,

As I understand, firstly you should install RO/DA into Lazarus.


check your project options and set Delphi mode:

it should solve issue with RemObjects.inc

Hi,

It’s may be due to an incompatibility between the Delphi mode and certain Lazarus settings or code structures.

You can try by adjusting the project’s compiler settings to be more compatible with Delphi mode by going to Project > Project Options > Compiler Options > Parsing and selecting “Delphi.”

I hope this will help.

Thanks