Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-06

Polish translation of error*.msg

7 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Wojciech Malinowski

Hi,

I've translated errore.msg to Polish. Who should I send it to get it added to CVS?

It is possible to include it in 1.0.8 release? I suspect it's too late but who knows :)

--- Wojciech virrar Malinowski --- ---- JID: ---- ------ e-mail: ------

Reply by email

Unknown author
to Wojciech Malinowski
Wojciech Malinowski wrote 7 lines
Hi, I've translated errore.msg to Polish. Who should I send it to get it added to CVS? It is possible to include it in 1.0.8 release? I suspect it's too late but who knows :)

It's not too late. 1.0.8 has again been delayed, because of a serious bug in the m68k version :/

So you can send it to me and I will include it.

Michael.

Reply by email

Zbigniew Kuczbanski
to Unknown author

Hi,
I download new version FPC 1.0.8 (05-06-2003) from FTP for Win32. I need use FPC to create DLL for Win32 system and load many DLL in one apllication.

And I have problem, because only fist DLL is load correctly. Next DLL I cant load.
What is wrong? Is any workaround thhis problem.

I attach example code, two DLL's and one application. Eatch DLL creates log file and write to file "dllx.log" text "DLLx is loaded."
Sample DLL have names "Dll1.pas" and "DLL2.pas"
Sample program have name "testDLL.pas"

When I compile this program use Delphi, both DLL load correctly. Any sugestions?

Best regards
Zbigniew Kuczbanski

Reply by email

Peter Vreman
to Zbigniew Kuczbanski
you wrote 17 lines
Hi, I download new version FPC 1.0.8 (05-06-2003) from FTP for Win32. I need use FPC to create DLL for Win32 system and load many DLL in one apllication. And I have problem, because only fist DLL is load correctly. Next DLL I cant load. What is wrong? Is any workaround thhis problem. I attach example code, two DLL's and one application. Eatch DLL creates log file and write to file "dllx.log" text "DLLx is loaded." Sample DLL have names "Dll1.pas" and "DLL2.pas" Sample program have name "testDLL.pas" When I compile this program use Delphi, both DLL load correctly. Any sugestions?

Here is no problem:

C:\down>testdll
DLL1 is loaded
DLL2 is loaded

Peter

Reply by email

Pierre Muller
to Peter Vreman
Peter Vreman wrote 24 lines
At 08:55 12-6-2003, you wrote: >Hi, >I download new version FPC 1.0.8 (05-06-2003) from FTP for Win32. >I need use FPC to create DLL for Win32 system and load many DLL in one >apllication. > >And I have problem, because only fist DLL is load correctly. Next DLL I cant >load. >What is wrong? Is any workaround thhis problem. > >I attach example code, two DLL's and one application. >Eatch DLL creates log file and write to file "dllx.log" text "DLLx is >loaded." >Sample DLL have names "Dll1.pas" and "DLL2.pas" >Sample program have name "testDLL.pas" > >When I compile this program use Delphi, both DLL load correctly. >Any sugestions? Here is no problem: C:\down>testdll DLL1 is loaded DLL2 is loaded

I suspect that your problem does copme from some
options that you use (options that might be hidden in your config file).

By default all generated DLL get the same Image Base 0x10000000. Thus to be able to load two DLL compiled without specifying the ImageBase, you will need to generate relocatable DLLs.

In order to get a relocatable DLL, you need to use -WR option, which is incompatible with debugging information
(because the relocation process tried to relocate some values in the debugging sections, but fails to do that correctly and changes the relocation section itself..
leading to an unsuable DLL).

The other solution is to specify explicitly another ImageBase for the second DLL using
-WB11000000 for instance.

Reply by email

Zbigniew Kuczbanski
to Pierre Muller

----- Original Message -----

Earlier message 49 lines
From: "Pierre Muller" To: Sent: Thursday, June 12, 2003 5:17 PM Subject: Re: [fpc-devel]FPC 1.0.8 - dont load many DLL > At 16:59 12/06/2003, Peter Vreman wrote: > >At 08:55 12-6-2003, you wrote: > >>Hi, > >>I download new version FPC 1.0.8 (05-06-2003) from FTP for Win32. > >>I need use FPC to create DLL for Win32 system and load many DLL in one > >>apllication. > >> > >>And I have problem, because only fist DLL is load correctly. Next DLL I cant > >>load. > >>Any sugestions? > > > >Here is no problem: > > > >C:\down>testdll > >DLL1 is loaded > >DLL2 is loaded > I suspect that your problem does copme from some > options that you use (options that might be hidden in your config file). > > By default all generated DLL get the same Image Base 0x10000000. > Thus to be able to load two DLL compiled without specifying > the ImageBase, you will need to generate relocatable DLLs. > > In order to get a relocatable DLL, you need to use -WR option, > which is incompatible with debugging information > (because the relocation process tried to relocate some values > in the debugging sections, but fails to do that correctly > and changes the relocation section itself.. > leading to an unsuable DLL). > > The other solution is to specify explicitly another ImageBase > for the second DLL using > -WB11000000 for instance. Thanks, This work fine. I heve suggestions, its possible to add this information to documentation, for example in prog.pdf section "Programming shared libraries". This is VERY important information for Win32 DLL. Where I can find more information about anatomy of DLL ? Best regards Zbigniew Kuczbanski

Reply by email

Michael Van Canneyt
to Zbigniew Kuczbanski
Zbigniew Kuczbanski wrote 47 lines
----- Original Message ----- From: "Pierre Muller" To: Sent: Thursday, June 12, 2003 5:17 PM Subject: Re: [fpc-devel]FPC 1.0.8 - dont load many DLL > At 16:59 12/06/2003, Peter Vreman wrote: > >At 08:55 12-6-2003, you wrote: > >>Hi, > >>I download new version FPC 1.0.8 (05-06-2003) from FTP for Win32. > >>I need use FPC to create DLL for Win32 system and load many DLL in one > >>apllication. > >> > >>And I have problem, because only fist DLL is load correctly. Next DLL I cant > >>load. > >>Any sugestions? > > > >Here is no problem: > > > >C:\down>testdll > >DLL1 is loaded > >DLL2 is loaded > I suspect that your problem does copme from some > options that you use (options that might be hidden in your config file). > > By default all generated DLL get the same Image Base 0x10000000. > Thus to be able to load two DLL compiled without specifying > the ImageBase, you will need to generate relocatable DLLs. > > In order to get a relocatable DLL, you need to use -WR option, > which is incompatible with debugging information > (because the relocation process tried to relocate some values > in the debugging sections, but fails to do that correctly > and changes the relocation section itself.. > leading to an unsuable DLL). > > The other solution is to specify explicitly another ImageBase > for the second DLL using > -WB11000000 for instance. Thanks, This work fine. I heve suggestions, its possible to add this information to documentation, for example in prog.pdf section "Programming shared libraries". This is VERY important information for Win32 DLL.

I will add this to the documentation.

Michael.

Reply by email