fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Build error xsc

Build error xsc 1 year 4 months ago #3878

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 110
Hello,

When trying to compile exported VO code following errors and warning occur.


Same errors and warnings have been corrected in VO and exported again. As you can see no source file is given where these errors and warning comefrom.
How to solve this problem?
Compiler 1.1.1

Thanks for helping
Regards,
Stefan
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by SHirsch.

Build error xsc 1 year 4 months ago #3879

  wriedmann's Avatar wriedmann Away Posts: 1567
Hi Stefan,

maybe you have posted this to the wrong forum, because your question is about the X# compiler and not VO and Vulcan.

Let me see please if I understand your problem correctly: you have exported your VO application as AEF, and used the XPorter to create a new Visual Studio project.
Afterwards you have fixed these errors on the VO side, exported again to AEF and then re-executed the XPorter? And in Visual Studio the code of the first version showed up?

If this is true, please double check that you used the correct AEFs as XPorter source and that you have used the correct destination path in the XPorter.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3880

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 110
Hi Wolfgang,

your description is correct.

I checked the AEF and saved the output of VOXPorter to a secondary folder.
Attached a screenshot of the next AEF where you can see both messages. The same appeared with the first AEF. After correcting all errors and warnings with a source file given, the errors with XSC as file still remain.

Stefan
(Is it possible the move to correct forum?)
Attachments:

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3881

  wriedmann's Avatar wriedmann Away Posts: 1567
Hi Stefan,

(unfortunately I'm not an administrator and therefore I cannot move the thread, but maybe Chris or Robert will do it later).

The errors you posted now (they are are hard to read from the image) seem to leed to missing dependencies.
Do you have Vulcan.NET installed on your machine? Please doublecheck the dependencies of your project - they should include the the various VulcanVO*.dll files.
If you have no Vulcan installed, they are not in the GAC, and you need to point to the correct location.
Please make sure that you don't overwrite your project files when using Xporter more than once (fortunately there is such an option). Otherwise the XPorter will overwrite your changes to the dependencies and other changes in the Visual Studio project.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3882

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 110
Hi Wolfgang,

I referenced Grafx.Classmate.Base, ..Functions, ..Gui, ..Interface, mscorlib, SDK_DEFINES, System, System.Code, VulcanRT, VulcanRTFuncs, VulcanVOSystemClasses and VulcanVOWin32APILibrary.
Vulcan is Version 2.1.212 (the last one I had access to)
The references for Classmate I had compiled successfully with X# yesterday.

I think more than these libraries are not necessary.

Any other ideas?

Stefan

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3883

  wriedmann's Avatar wriedmann Away Posts: 1567
Hi Stefan,

unfortunately I have no idea about ClassMate: could it be that there is another namespace than Vulcan.VO?

If yes, you should add a "using" statement at the top of your prg file.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3885

  robert's Avatar robert Offline Posts: 994
Stefan,

Stefan Hirsch wrote: (Is it possible the move to correct forum?)


I have moved the thread to the correct forum.
To answer your other questions I need to see your code and the full text of the error message. The screen dumps do not have enough info.

Robert
XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3887

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 110
Hi Wolfgang,

I don't think it has to do with namespaces. Here the error for better readablity again:

Schweregrad: Fehler
Code: XS1503
Beschreibung: Argument 2: cannot convert from 'dword' to 'word'
Projekt: 10_kdBase10_1016
Datei: XSC
Zeile: 1

same message from output window:
XSC(1,12379): error XS1503: Argument 2: cannot convert from 'dword' to 'word'

Normally in column 'Datei' is the source file and in 'Zeile' the line of the error. Here is XSC as source file with line 1 as position of the error.

What does 12379 mean? Is there an temporary file that I can look into? May there is some more information available.


Stefan

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3888

  wriedmann's Avatar wriedmann Away Posts: 1567
Hi Stefan,

in the last image you had posted I had seen errors like "The type or namespace could not be found" - therefore my idea about namespaces.
This explains maybe why I don't like images from error messages at all: a copy of the text is much easier to read (and makes it possible for Google to index the message for subsequent searchers too).

But now Robert can take over - my knowledge is too limited, unfortunately.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3889

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 110
Hi Wolfgang,

you are right. In this screenshot my focus was on column 'Datei' and not the error message. I tried to show the difference between the messages. These namespace errors are explainable and correctable (came from another library that depends on the current problematic one).

Regards,
Stefan

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3891

  Chris's Avatar Chris Offline Posts: 1164
Hi Stefan,

As Robert said, can you please zip the whole solution folder and send it to either of us to have a look? Preferably to me, to look closely into it and prepare a cut down sample for Robert to fix more easily.

I have seen it also myself that in a few cases the compile did not report correct column/line information and thought we had fixed all those cases, but apparently there do exit some more. But we need the code to be able to reproduce and fix those as well.

TIA,
Chris
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3892

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 110
Hello Chris,

I send my sources to Robert one minute before your message.
If you give me your e-mail address I will send you the sources too.

Stefan

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3893

  robert's Avatar robert Offline Posts: 994
Chris,

Check your mail.

Robert
XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Build error xsc 1 year 4 months ago #3896

  Chris's Avatar Chris Offline Posts: 1164
Stefan, Robert,

Thanks, nice circular reference thing we did here :)

To be serious though, Stefan, thanks for your report and for providing the code for investigation! As it turns out, the compiler errors are reported because of:

1. in "Ads, ServerInfo.prg":
ACCESS FCount as DWORD PASCAL 
   LOCAL nFCount as DWORD
   ...
   AdsGetNumFields(self:hTable, @nFCount)

"nFCount" must be defined as WORD, as this is what AdsGetNumFields() expects.

2. in "Ads, Server.prg":
ACCESS FCount as DWORD PASCAL 
   LOCAL nFCount as DWORD
   ...
   self:LastError:Error := AdsGetNumFields(self:hCursor, @nFCount)

same thing, "nFCount" should be defined as WORD

3. also in "Ads, Server.prg":
ACCESS RecNo as int PASCAL 
   LOCAL nRecNo as int
   ...
   self:LastError:Error := AdsGetRecordNum(self:hCursor, ADS_IGNOREFILTERS, @nRecNo)

Here "nRecNo" must be defined as DWORD.

After making those changes, the library compiles fine!

Of course the actual problem here is that the compiler did not report file/line information together with the error messages, so it was impossible for Stefan to find what was causing them. I will create a small repro sample for this and log it in order to be fixed.

Chris

ps. my email is same as Robert's, except replace "robert" with "chris".
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

Last edit: by Chris. Reason: formatting

Build error xsc 1 year 4 months ago #3897

  Chris's Avatar Chris Offline Posts: 1164
Hi Stefan,

Just to let you know (and everybody else), we have also found what's causing the problem with no location info shown on some error messages. This happens with errors within ACCESS/ASSIGN bodies, which are declared within PARTIAL CLASSes. (Like your accesses inside the partial classes kdAdsServer and kdAdsServerInfo).

Thanks for your help finding this problem, I think it should be fixed in the next release.

Chris
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Page:
  • 1