[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebDrawingArea - Paint.Text function missing


Le 30/08/2025 à 15:07, Bruce Steers a écrit :


On Sat, 30 Aug 2025 at 12:01, Benoît Minisini <benoit.minisini@gambas- basic.org <mailto:benoit.minisini@xxxxxxxxxxxxxxxx>> wrote:

    Le 30/08/2025 à 06:02, Bruce Steers a écrit :
     >
     >
     > On Sat, 30 Aug 2025 at 01:35, Linus <olivier.cruilles@xxxxxxxx
    <mailto:olivier.cruilles@xxxxxxxx>
     > <mailto:olivier.cruilles@xxxxxxxx
    <mailto:olivier.cruilles@xxxxxxxx>>> wrote:
     >
     >     If a create a simple demo project Web Application, even I
    don’t add
     >     a WebDrawingArea I have this error:
     >
     >     ERROR: #2: Cannot load class 'WFrmBug': File or directory
    does not exist
     >
     >     and the page don’t load
     >
     >     Olivier
     >
     >
     > Mine is doing it too.
     > ...
    This is an exported test form that is not put in the executable anymore.

    Hence the error, as the list of exported classes loaded at startup does
    not know that the class has not been put into the executable.

    I just commit a fix: now a warning message is printed if an exported
    class cannot be loaded at startup. There is no error anymore.

    Now I will just make the test form not exported anymore.

    Regards,

-- Benoît Minisini


I had an attempt at fixing it but clearly it needed your expertise.
It made no sense to me as i could see no results from searching the code for WFrmBug and it was a Test program so i didn't get why it was even being accessed?!

Thankfully though you did as it's all fixed now :)
Respects
BruceS

Maybe you didn't know that all exported classes of a component are immediately loaded when the component is loaded.

Other classes are loaded the first time they are used as usual.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: WebDrawingArea - Paint.Text function missingLinus <olivier.cruilles@xxxxxxxx>
References:
WebDrawingArea - Paint.Text function missingLinus <olivier.cruilles@xxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBruce Steers <bsteers4@xxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBruce Steers <bsteers4@xxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBruce Steers <bsteers4@xxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBruce Steers <bsteers4@xxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingLinus <olivier.cruilles@xxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBruce Steers <bsteers4@xxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: WebDrawingArea - Paint.Text function missingBruce Steers <bsteers4@xxxxxxxxx>