This error started after the update the current SVN.Error BASE/42 Scope violation (protected): IMAGE:OPARENT
Error in IMAGE
Moderator: Rathinagiri
Error in IMAGE
Hi Friends, compiling and running the file \samples\image\demo_1.prg displays the following error:
Re: Error in IMAGE
Hi Pctoledo,
I'm working to have data protected: this is the problem.
Could you please give me more detail about error?
Best regards
I'm working to have data protected: this is the problem.
Could you please give me more detail about error?
Best regards
Luigi from Italy
www.L3W.it
www.L3W.it
Re: Error in IMAGE
Hi Luigi, more detail about error, please... compiling and running the file \samples\image\demo_1.prg.
Re: Error in IMAGE
Hi PcToledo,
I'm investingating about this problem: it seem to be related with the name of the class "IMAGE". If I change the name (ie LUIGI) work fine. Very strange and difficult to find. I have asked help and now we are two people.
Please give me time.
Cheers
I'm investingating about this problem: it seem to be related with the name of the class "IMAGE". If I change the name (ie LUIGI) work fine. Very strange and difficult to find. I have asked help and now we are two people.
Please give me time.
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it
Re: Error in IMAGE
Hi friends.
Today I find the problem but not the solution.
The problem seems to be Harbour when is defined a class with the same name of a method within other class.
I have reduced the HMG4 core code to the minimal required and I removed method image from control.prg and voilà: image class work properly.
MrDuck (many thanks for help and support) is writing to Harbour mailing list...to know how to.
ASAP I will inform community.
Cheers
Today I find the problem but not the solution.
The problem seems to be Harbour when is defined a class with the same name of a method within other class.
I have reduced the HMG4 core code to the minimal required and I removed method image from control.prg and voilà: image class work properly.
MrDuck (many thanks for help and support) is writing to Harbour mailing list...to know how to.
ASAP I will inform community.
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it
Re: Error in IMAGE
Hi friends.
For everyone who want see the problem, here you can find a simple console mode program.
Cheers
For everyone who want see the problem, here you can find a simple console mode program.
Cheers
- Attachments
-
- ClassTest.zip
- console test
- (1.25 KiB) Downloaded 220 times
Luigi from Italy
www.L3W.it
www.L3W.it
Re: Error in IMAGE
Hi friends. We have a news and no very good. Anyway this is the answer.
Perhaps, we can naming "Images" but it's very, very similar.
Someone can search all "Image" methods and why they are used?
This will be another incompatibility
Cheers
In this situation, IMHO we must change the "METHOD Image( aValue )" within CLASS control and everywhere, but...........
In general using class names as method names creates problem
with supercasting.
By default each ancestor is added as a method which can be used
for supercasting. It is also used to resolve name conflicts in
method names and check scopes. When you overwrite IMAGE method
then class code does not find IMAGE as class ancestor of current
object so it does not allow to execute any protected method of
this object.
Przemysław Czerpak
Perhaps, we can naming "Images" but it's very, very similar.
Someone can search all "Image" methods and why they are used?
This will be another incompatibility
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it
Re: Error in IMAGE
Hi friends.
To have a good solution in this moment, I change from IMAGE class to BITMAP class.
Please update from svn and read comment here viewtopic.php?f=32&t=1777&start=40
Cheers
To have a good solution in this moment, I change from IMAGE class to BITMAP class.
Please update from svn and read comment here viewtopic.php?f=32&t=1777&start=40
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it