fbpx
Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC: Porting Vulcan Net to XSharp

Porting Vulcan Net to XSharp 1 year 4 months ago #3726

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi All

I was porting a small app from VulcanNet 2.0 to XSharp. The app moves the data between the DBF files and the tables in MDB file.
In most cases, I repeat these two errors:


1. Field 'WindowName.components' is never assigned to, an wil always have its default value null

2. The type or namespace name 'dbServer' coould not be found........

Juraj

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

Porting Vulcan Net to XSharp 1 year 4 months ago #3727

  Chris's Avatar Chris Offline Posts: 1109
Hi Juraj,

The first one is just a warning and you can workaround it by going to the designer.prg file where "components" is declared and change the declaration from

PRIVATE components AS System.ComponentModel.IContainer

to (just add the assignment)

PRIVATE components := NULL AS System.ComponentModel.IContainer

About the second thing, can you please check that the reference to VulcanVORDDClasses.dll still exists in your project references? If it does, then you probably just need to go to the Project settings, in the Language page and enable the option "Enable Implicit Namespace lookup".

Chris
XSharp Development Team
chris(at)xsharp.eu

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

Porting Vulcan Net to XSharp 1 year 4 months ago #3729

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi Chris

thank you for the advice, especially for dbServer, I had to go into the property and change "Enable implicit ...".

Juraj

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8927

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi All,
In October 2018 I ported the Vulcan app to XSharp, the client installation was OK and the app worked well.
Build with the current XSharp version at that time.
It was necessary to make some update in the application. After build the application in my computer(with Win10) work OK.
In customer computer does not start. It appears in Task Manager and closes after a few seconds without any error message.
Customer have a HP ProDesk 400 with Windows 7 Profesional.
Versions Windows, .Net ,Visual Studio and XSharp are attached.
The problem is only with the application in Vulcan dialect , the test app in Core dialect runs fine.

Juraj
Attachments:

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8934

  Chris's Avatar Chris Offline Posts: 1109
Hi Juraj,

I do have a Win7 machine to test with, can you please send me the app to test it, EXACTLY in the form that you send it to the customer?
XSharp Development Team
chris(at)xsharp.eu

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8935

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi Chris

I sent to your email. I don't know if the attachment was blocked with antivirus protection. Let me know.

Juraj

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8938

  Chris's Avatar Chris Offline Posts: 1109
Hi Juraj,

I did get it, but please send the COMPLETE app, with dlls etc, in order to be able to reproduce the problem the same way as your customer can.
XSharp Development Team
chris(at)xsharp.eu

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8940

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi Chris,

I sent complette directory from customer PC to your email.

Juraj

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8941

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi Chris,

Event Viewer from customer PC:
Sorry, is in slovak language. "Nazov" is "name", "chyba" is "error", "Čas" is "Time", "Cesta" is "Path"

Názov chybovej aplikácie: MRestLT.exe, verzia: 1.0.65534.65534, časová značka: 0x5ccd56ee
Názov chybového modulu: KERNELBASE.dll, verzia: 6.1.7601.24408, časová značka: 0x5c92f101
Kód výnimky: 0xe0434352
Odstup chyby: 0x0000c5af
Identifikácia chybného procesu: 0x52c
Čas spustenia chybnej aplikácie: 0x01d502674883d36a
Cesta chybnej aplikácie: G:\XSMDBRest\MRestLT.exe
Cesta chybného modulu: C:\windows\syswow64\KERNELBASE.dll
Identifikácia hlásenia: 864107ec-6e5a-11e9-9767-c4346b79fcc0

- System
- Provider
[ Name] Application Error
- EventID 1000
[ Qualifiers] 0
Level 2
Task 100
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2019-05-04T10:51:10.000000000Z
EventRecordID 9563
Channel Application
Computer MTPT-HP
Security
- EventData

MRestLT.exe
1.0.65534.65534
5ccd56ee
KERNELBASE.dll
6.1.7601.24408
5c92f101
e0434352
0000c5af notep
52c
01d502674883d36a
G:\XSMDBRest\MRestLT.exe
C:\windows\syswow64\KERNELBASE.dll
864107ec-6e5a-11e9-9767-c4346b79fcc0

Juraj

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8942

  Chris's Avatar Chris Offline Posts: 1109
Hi Juraj,

Thanks, unfortunately this did not give much info, but as I explained by PM, the problem is most likely a (vulcan) dll mismatch, please check what I told you in private. Also make sure the customer is not running your app from a network drive. (it is possible to do that, but he will need to provide specific rights to the app/folder to do that).
XSharp Development Team
chris(at)xsharp.eu

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8943

  hsc's Avatar Topic Author hsc Offline Posts: 93
Hi Chris,

after change VulcanRT and VulcanRTFunc from 3.0....... to 2.0... in project and rebuild, aplication work ok. Thank you for your advice.
It would be possible to replace the Vulcan runtime for the XSharp runtime in this project in order to exclude runtime issues in the future?


Juraj

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

Porting Vulcan Net to XSharp 3 weeks 1 day ago #8944

  Chris's Avatar Chris Offline Posts: 1109
Hi Juraj,

OK, great to hear it's all working now! Yes, of course you can use the X# runtime instead of the vulcan one (especially since from what I see you do not use any dbf stuff), but still you will need to be distributing the same X# dlls that you used for compilation (there are new versions if X# dlls with each new build).

In order to do it, remove the references to VulcanRT and VulcanRTFuncs and then add references to XSharp.Core, XSharp.RT and XSharp.VO. Normally, your app should still compile without any code changes after doing that, but please make enough testing of your app's behavior at runtime to make sure it works as before. The X# runtime is already mature enough and is used by several people already in production, but possibly some incompatibility with the vulcan one has crept in somewhere, so better give your app a good test with it, to be sure.
XSharp Development Team
chris(at)xsharp.eu

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

  • Page:
  • 1