Problem in Converted Vulcan app in X #

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
TrevorLE
Posts: 267
Joined: Thu Apr 21, 2016 12:02 pm
Location: Australia

Problem in Converted Vulcan app in X #

Post by TrevorLE »

I am doing some initial testing on porting some Vulcan apps to X# and have hit a problem as follows

I have attached 2 images showing a small converted app that compiles in Vulcan - but in X# gets an "expecting EOS" error when compiling. I am assuming it is because the variable name "winHtmlBody.ToolStripSeparator1" has the full stop in it, but this compiled okay in Vulcan.

thanks
Trevor
Attachments
Capture1.PNG
Capture1.PNG (140.78 KiB) Viewed 338 times
Capture.PNG
Capture.PNG (138.06 KiB) Viewed 338 times
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Problem in Converted Vulcan app in X #

Post by robert »

Trevor,

The fact that Vulcan allows a dot in the protected variable name is clearly a bug in Vulcan. I just created the following test code in Vulcan:

Code: Select all

CLASS foo
	PROTECT test.var AS LONG
END CLASS
If you look (with Reflector or ILSpy) in the generated assembly then you will see that the "test." part of the variable name gets thrown away by the Vulcan compiler:

Code: Select all

public class foo
{
	protected int var;

	[CompilerGenerated]
	public foo()
	{
	}
}
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply