gschoch
(Günther Schoch)
1
Hi
I tried to disable the AsyncSupport for the TROCodegen4 Generate methods.
(background: for large projects, the Async section does only overfill the INTF files and we have not implemented the RO Async Logic in the backend).
gen:= TROCodegen4.Create; ...
gen.AsyncSupport:= '0';
...
var aResFiles := gen.Generate(..., cg4l_Delphi, cg4m_Intf);
...
but somehow, the switch has no influence on the INTF file.
Further debugging into RemObjects_SDK_CodeGen4_TLB is not possible.
I would appreciate a hint, on the exact usage of the parameter.
best regards
EvgenyK
(Evgeny Karpov)
2
Hi,
this option is valid only for .NET codegen :
Delphi specific keys are started with Delphi
:
property DelphiFullQualifiedNames: string index 7 read GetAddParam write SetAddParam;
property DelphiScopedEnums: string index 8 read GetAddParam write SetAddParam;
property DelphiLegacyStrings: string index 9 read GetAddParam write SetAddParam;
property DelphiAsyncCallback_as_reqular_method: string index 12 read GetAddParam write SetAddParam;
property DelphiHydra: string index 13 read GetAddParam write SetAddParam;
property DelphiXE2Mode: string index 15 read GetAddParam write SetAddParam;
property DelphiFPCMode: string index 16 read GetAddParam write SetAddParam;
property DelphiCodeFirstMode: string index 17 read GetAddParam write SetAddParam;
property DelphiGenericArrayMode: string index 18 read GetAddParam write SetAddParam;
You can check github page of this project: GitHub - remobjects/ROCodeGen: The code generation logic for RemObjects Remoting SDK.
gschoch
(Günther Schoch)
3
Thank you for the fast answer. That means, I have to rephrase my question to
“is there a way to turn off for Delphi Service "intf " the async Interface generation (using TROCodegen4)”
means “not to produce”
Ixxx_Async = interface(IROAsyncInterface)
Ixxx_AsyncEx = interface(IROAsyncInterfaceEx)
regards
bugs://D19508 was closed as fixed.
EvgenyK
(Evgeny Karpov)
6
Hi,
this will work for Delphi/CBuilder codegen
gschoch
(Günther Schoch)
7
cool - thank you! Will use this new feature as soon as the next stable version is shipped!
EvgenyK
(Evgeny Karpov)
8
Hi,
You can build rodl2code and use codegen w/o waiting.
gschoch
(Günther Schoch)
9
I assume, I would need “Elements” to build rodl2code? But anyhow, the problem is not blocking for us and I can wait.
EvgenyK
(Evgeny Karpov)
10
Hi,
Yes, we have used Elements for creating it.
gschoch
(Günther Schoch)
12
thank you - will give it soon a try.