Comment #7 on issue 123 by [email protected]: GUI dependencies in library
projects not exposing any gui dependency
http://code.google.com/p/gambas/issues/detail?id=123
Seemed OK for a few days but now I'm getting two problems with one project.
It uses 4 libraries and 1 local component.
When this project is first opened, the IDE displays an
error "CComponent.Load.453 Not an object". This occurs with the line:
All[sLig].Load
where
sLig="webaccess3.gambas,phApplication3.gambas,horseBO.gambas,phDB9a.gambas"
being the only item in Require[] (i.e. hLibraryInfo.Require). Execution
then falls straight to the Finally/Catch clauses.
Clicking OK, brings up the project, but...
If I try and open the project properties form, then at line 376 of
FPropertyProject.RefreshComponents:
$cComp[sDep].Check(sLib)
where
sLib="/share/projects/gambas3_proj/horse/datasources/racepages/racepages.gambas"
and
sDep="webaccess3.gambas,phApplication3.gambas,horseBO.gambas,phDB9a.gambas"
Here, $cComp[sDep] is null and another "Not an object" error occurs.
(By the way, when running the IDE normally, at this point it crashes with
the "A fatal error...)
Points to note:
1) using build 4477
2) most of these libraries are used in various combinations in other
projects without a problem.
3) all the libraries other than "racepages" has declared dependencies that
include other libraries.
4) if I remove ALL the required dependencies from the racepages Component
properties then the error does not occur.
Thoughts:
1) I think this is a bug as the IDE just reports the "Not an object" error
that refers to it's own code (not the loaded project code) and crashes when
the project properties form is opened.
2) Do you expect the hLibInfo.Require to be a comma delimited string? I
don't know but it looks a bit weird to me.
cheers
Bruce
p.s. If you need to see the project, it will take me some time to develop a
demo. The real projects are very large. Here is some info about them
phApplication3 : 500 LOC. Components:
gb.gb.db,gb.form,gb.gui,gb.image,gb.settings Libraries: None
Component-Requires:gb.db, gb.form,gb.gui,gb.imagegb.settings
phDB9a : 1427 LOC. Components: gb,gb.db,gb.settings Libraries:
phApplication3 Component-Requires: gb.db, gb.settings, phApplication3
horseBO : 3398 LOC. Components: gb,gb.db Libraries: phApplication3,
phDB9a Component-Requires: phDB9a
webaccess3: 172 LOC, Components: gb,gb.net,gb.net.curl Libraries: None
Component-Requires: gb.net, gb.net.curl
horsepages: 5364 LOC. Components:
gb,gb.db,gb.db.form,gb.form,gb.gui,gb.image,gb.net,gb.net.curl,gb.settings
Libraries: webaccess3,phApplication3,phDB9a,horseBO Component-Requires:
Currently NONE (so the current application can work)
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user