| Subject |
Re: custom controls in the INI file |
| From |
Gaetano <gaetanodd@hotmail.com> |
| Date |
Sat, 19 Dec 2020 07:13:59 +1000 |
| Newsgroups |
dbase.getting-started |
I am loosing it...
I am now re-testing the French version of the code but despite doing this:
set proc to :dUFLP:GDLconvert.cc (French version)
oCon = new GDLconvert()
the function being used is the one from the file GDLconvertbe.cc
(Belgian version) because the outputs reflected "nonante" instead of
"quatre-vingt-dix" as defined in the French version of the file that I
was re-testing.
I think this happens when a programs errors out and you hit "cancel".
The procedure GDLconvertbe.cc did not get closed and that seems to cause
the FP's of that CC file to be orphaned in memory but still accessible
and somehow prioritized by dBase if they happen to carry the same name
as the procedure in a different CC file you are subsequently loading in
memory.
I tried "close proc GDLconvertbe.cc" from the command line but that
didn't help. The only way out was to close an re-open dBase.
When I hit "cancel" instead of "fix", I would expect dBase to release
whatever was associated with that PRG that caused the error. Is that
what should be happening?
Cheers,
Gaetano.
On 18/12/2020 06:32, Ken Mayer wrote:
> On 12/17/2020 11:43 AM, Gaetano wrote:
>>
>> I should have provided some background. I was losing my mind while
>> finalizing the French num2words functions because while I was making
>> changes to the code, they were not reflected in the output and while
>> debugging the code to find out where things were going wrong, I saw
>> the "old" code was being debugged. The "old" code" turned out to be
>> the code of the CC file loaded in the INI file.
>>
>> Since I did not add the CC file to the INI file of dBase, I was
>> wondering how a CC file actually gets in there...
>
> Ah. As you noted, usually it's a case of accidentally double-clicking
> the file. I have done that because I get used to double-clicking a form
> or a prg file in the Navigator and having them open in the designer or
> Source Editor ...
>
> Ken
>
|
|