Page 2 of 2
DBFCDX DBServer:SetOrder() fails
Posted: Fri Aug 28, 2020 9:15 pm
by Jamal
Hi Wolfgang,
May be this one:
Code: Select all
SetMacroCompiler(typeof(XSharp.MacroCompiler))
Reference:
https://www.xsharp.eu/help/xsharp_macrocompiler.html
However, when building the app, the X# compiler complains that it cannot find
MacroCompiler.
Anyway, as I mentioned the the app is working fine after I added a reference to C:Program Files (x86)XSharpRedistXSharp.MacroCompiler.dll,
DBFCDX DBServer:SetOrder() fails
Posted: Fri Aug 28, 2020 10:40 pm
by Chris
Hi Jamal,
You would need to add a direct reference to the macro compiler dll in order to do that, so that the compiler can see the macro compiler class. And the class name is XSharp.Runtime.MacroCompiler, not XSharp.MacroCompiler. This command is designed to be used if you want to override the standard macro compiler, with another custom one.
Normally there's no reason to manually load the standard macro compiler dll, the runtime should be doing that itself. Unless maybe for some reason the dll did not exist before? Anyway, reinstalling X# has now definitely put it in the GAC, so we will never know what had caused the original problem
DBFCDX DBServer:SetOrder() fails
Posted: Sat Aug 29, 2020 12:57 am
by Jamal
Hi Chris,
FYI, I used the function documented here:
https://www.xsharp.eu/help/xsharp_macro ... l_dll.html which refers to the FULL Macro compiler. Anyway, I included a reference to XSharp.MacroCompiler.Full.dll, then used the following:
Code: Select all
SetMacroCompiler(typeof(XSharp.MacroCompiler))
which compiled fine, however, upon starting the app debug, I got the following warning from VS:
- 2020-08-28_20-51-30.jpg (84.33 KiB) Viewed 253 times
The URL listed seems invalid and and kept popping up when I selected the first option. I copy and pasted url into Chrome and it's not found. Here is the link as listed in alert:
https://raw.githubusercontent.com/X-Sha ... /Script.cs
This is not a critical issue for me, but seems to a bug and I just want you to be aware of it.
Jamal
DBFCDX DBServer:SetOrder() fails
Posted: Sat Aug 29, 2020 7:10 am
by Chris
Hi Jamal,
Oh, thanks, did not realize you were talking about the full macro compiler! That also seems to be working fine here though, that's strange..
DBFCDX DBServer:SetOrder() fails
Posted: Sat Aug 29, 2020 10:19 am
by robert
Chris,
Jamal is not a subscriber so he is using the Public build.
I think that the difference is in the public DLLs compared to the subscriber dlls.
Robert