DBFCDX DBServer:SetOrder() fails

This forum is meant for questions and discussions about the X# language and tools
Jamal
Posts: 315
Joined: Mon Jul 03, 2017 7:02 pm

DBFCDX DBServer:SetOrder() fails

Post 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,
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

DBFCDX DBServer:SetOrder() fails

Post 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 :)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Jamal
Posts: 315
Joined: Mon Jul 03, 2017 7:02 pm

DBFCDX DBServer:SetOrder() fails

Post 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
2020-08-28_20-51-30.jpg (84.33 KiB) Viewed 242 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
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

DBFCDX DBServer:SetOrder() fails

Post 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..
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

DBFCDX DBServer:SetOrder() fails

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply