[fpc-devel] Unit initialization not called in arm-wince DLLs?

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Nov 20 14:54:02 CET 2006


On 20 nov 2006, at 14:45, TOndrej wrote:

> (gdb) p WIDGETSET
> $2 = (TWIDGETSET) 0x949960
>
> (gdb) x/x WIDGETSET
> 0x949960:       0x00175568
>
> So, is this the global variable I'm looking for, ie.
> InterfaceBase.WidgetSet? What happens if I have another global
> variable of the same name in another unit?

It depends on the current execution context. The unit-specific names  
are U_<UNITNAME>_<VARIABLENAME>.

> Sorry about the confusion, I should probably read the FPC
> documentation more carefully.
> Is the symbol naming convention documented somewhere?

Not that I know.


Jonas




More information about the fpc-devel mailing list