xsharp.eu • Can't compile OleWebBrowser
Page 1 of 1

Can't compile OleWebBrowser

Posted: Fri Nov 19, 2021 3:50 pm
by FdeRaadt
Good afternoon guys,

I'm trying to export some Libraries from an old project to a newer one.
I've done this by making AEF's of the Libraries i wish to export.
When i loaded up the new project i used the File > Import function to import all the Libraries from the AEF's.

When i run the compiler at the new project/library/module it results in 65 out of 66 dead entities.
This is very weird because i've done the same proces in a barebones project which didnt give me any errors.

The Module in question only uses base libraries such as OLE, GUI CLASSES and SYSTEM CLASSES.
These base libraries have been included by properties but still result in 65/66 dead entities.

I shall include some screenshots for addional context.

Has this happened to anyone before?
I'm probadly missing something very simple but i can't figure it out at the moment.

With Kind Regards

Frank

Can't compile OleWebBrowser

Posted: Sat Nov 20, 2021 5:42 am
by wriedmann
Hi Frank,
please try to reindex your repo, following by a complete rebuild of the entre project.
Wolfgang

Can't compile OleWebBrowser

Posted: Sat Nov 20, 2021 9:50 am
by Karl-Heinz
Hi Frank,

i suggest to do a *external* reindex.

- close VO
- Doubleclick in the cavo bin folder the file "reindex.exe".
- now reindex the "Kleijn202103" project.

If there are still problems to build the "__OleWebBrowser" app. Select the app, do a right click and select "Touch"

regards
Karl-Heinz

Can't compile OleWebBrowser

Posted: Sun Nov 21, 2021 7:08 am
by ic2
Hello Wolfgang, Karl-Heinz,

We tried reindexing and touching. We've deleted the mef's and reimported it, same result (while the same AEF imports & compiles without problems in any other repo). And every other AEF (which does not include this OleWebBrowser) compiles fine in the same repo.

I've never seen this before but what we didn't try is an external reindex. We'll do that Monday.

Dick

Can't compile OleWebBrowser

Posted: Mon Nov 22, 2021 10:16 am
by FdeRaadt
Hello everyone,

I've tried the external reindex.
After that i also did "Touch" the project.

Unfortunately the result is still the same.

Frank

Can't compile OleWebBrowser

Posted: Mon Nov 22, 2021 12:44 pm
by robert
Frank,
Can you ZIP the repo folder and mail it to me ?
Your image shows that you're using VO 2.8 SP4. Do your other projects also use 2.8 SP4 ?

Robert

Can't compile OleWebBrowser

Posted: Mon Nov 22, 2021 2:13 pm
by FdeRaadt
Hello Everyone,

What i've tried which seems to work are following steps.

[*]
[*]Export all AEF's from the Repo with the problem.
[*]Create a new project
[*]Import all AEF's with the File/Import (recommended to skip readme's to save yourself some unnecessary clicks)
[*]Go to Tools/More VO Productivity pack, system builder, Ok

for some reason my 65 out of 66 dead entities are gone.
I have no clue what caused the issue or why this fix works.
All i know is that the problem magicly disappeared and I can continue with my life

Frank

Can't compile OleWebBrowser

Posted: Mon Nov 22, 2021 2:36 pm
by ic2
Hello Robert,

What we often do is copy a whole project directory. Frank copied the last directory from the "life" project for reference as he his working on the X# conversion and documents the changes which must be made in the life VO project first before a 'real' conversion will be done.

We've exchanged this other repo's for years without issues but I suspect that there has been some issue in this specific repo (which is not copied often); an issue which didn't manifest until copied now, although you would expect it to work the same.

I think you should not spend your time in finding out "why" as the rebuild strategy worked. I was just wondering if there would be some other cause or setting for the OleWebBrowser failing to compile, apparently it should have worked...

Dick

Can't compile OleWebBrowser

Posted: Mon Nov 22, 2021 8:30 pm
by Jamal
Frank,

Was the library created using an older of version of VO?

May be the OLE classes are incompatible since VO 2.8.x generates and uses new classes with different names and the compiler thus cannot find them.

Could you provide one of the existing generated methods to verify if that's the case?

Jamal

Can't compile OleWebBrowser

Posted: Tue Nov 23, 2021 10:20 am
by ic2
Hello Jamal,

No, it was a copied & working (on the source Pc) repo from the same (latest) VO version.

Dick