Re: [fpc-pascal] Internal error 200706094

2014-09-30 Thread leledumbo
> How can I rewrite this code to make it correct? I want to use constants to calculate offsets from untyped pointer. You don't have to: http://wiki.freepascal.org/Lazarus_Faq#.27Fatal:_Internal_error_YYZZW.27 so just report and wait for a fix, or fix it yourself if you can then post a patch

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Reinier Olislagers
On 29/09/2014 19:30, Reinier Olislagers wrote: > Re bug report: agreed. I'll raise it. http://bugs.freepascal.org/view.php?id=26801 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pasc

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 29/09/2014 19:30, Reinier Olislagers wrote: Re bug report: agreed. I'll raise it. Jonas has already closed it, noting "http://msdn.microsoft.com/en-us/library/windows/desktop/ms682583%28v=vs.85%29.aspx "*** The entry-point function should perform only simple init

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Michael Van Canneyt
On Tue, 30 Sep 2014, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 29/09/2014 19:30, Reinier Olislagers wrote: Re bug report: agreed. I'll raise it. Jonas has already closed it, noting "http://msdn.microsoft.com/en-us/library/windows/desktop/ms682583%28v=vs.85%29.aspx "*** The en

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Tue, 30 Sep 2014, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 29/09/2014 19:30, Reinier Olislagers wrote: Re bug report: agreed. I'll raise it. Jonas has already closed it, noting "http://msdn.microsoft.com/en-us/library/windows/desktop/ms682583%28v=

[fpc-pascal] fpcup: FPC trunk 64-bit for Windows

2014-09-30 Thread Juha Manninen
I downloaded fpcup64.exe from https://bitbucket.org/reiniero/fpcup/downloads After installation everything works well, but the FPC version is 2.6.5. How to update it to FPC trunk? I need it for testing purposes. Regards, Juha ___ fpc-pascal maillist

Re: [fpc-pascal] fpcup: FPC trunk 64-bit for Windows

2014-09-30 Thread Reinier Olislagers
On 30/09/2014 14:40, Juha Manninen wrote: > After installation everything works well, but the FPC version is 2.6.5. > How to update it to FPC trunk? I need it for testing purposes. RTFM... Fix for now (by heart, may be missing something): remove the fpc directory change fpcurl for general all etc

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Michael Van Canneyt
On Tue, 30 Sep 2014, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Tue, 30 Sep 2014, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 29/09/2014 19:30, Reinier Olislagers wrote: Re bug report: agreed. I'll raise it. Jonas has already closed it, noting "http://msdn.microso

Re: [fpc-pascal] fpcup: FPC trunk 64-bit for Windows

2014-09-30 Thread Reinier Olislagers
On 30/09/2014 14:49, Reinier Olislagers wrote: > On 30/09/2014 14:40, Juha Manninen wrote: >> After installation everything works well, but the FPC version is 2.6.5. >> How to update it to FPC trunk? I need it for testing purposes. > RTFM... > > Fix for now (by heart, may be missing something): >

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: However I'd precede that by a thought based on what Jose said. In your example, you're opening the database in the initialisation block of businesslayer.pas, which is invoked at an arbitrary position in the init sequence of the DLL/so. If that operation were moved i

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Sven Barth
Am 30.09.2014 15:07 schrieb "Mark Morgan Lloyd" < markmll.fpc-pas...@telemetry.co.uk>: >> As far as I know, the initialization entry point is called automatically. >> But the compiler experts should confirm this. IIRC the behaviour changed as the support for libraries improved; > > > ..(pending com

[fpc-pascal] Free Pascal Directories

2014-09-30 Thread Brian
Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , there is one aspect I haven't managed to overcome. For a number of reasons Lazarus was not used , and Geany is used as the IDE , which works well. Unlike Virtual Pascal which allowed me to put

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Michael Van Canneyt
On Tue, 30 Sep 2014, Brian wrote: Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , there is one aspect I haven't managed to overcome. For a number of reasons Lazarus was not used , and Geany is used as the IDE , which works well. Unlike

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Philippe
some days before we had same type of thread ... the "problem" is -Fu is not recursive! Em 30.09.2014 11:07, Michael Van Canneyt escreveu: > On Tue, 30 Sep 2014, Brian wrote: > >> Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , ther

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Michael Van Canneyt
On Tue, 30 Sep 2014, Philippe wrote: some days before we had same type of thread ... the "problem" is -Fu is not recursive! And luckily not. The result would be a disaster ! However, you can use wildcards: -Fu/home/some/dir/* Michael. ___ fpc-

Re: [fpc-pascal] fpcup: FPC trunk 64-bit for Windows

2014-09-30 Thread Juha Manninen
On Tue, Sep 30, 2014 at 4:01 PM, Reinier Olislagers wrote: > Run with fpgui and select the profile you want to run (a full build > seems best for the initial run) I did a new build with fpcup64.exe --fpcURL=trunk and it works very well. This is quite a big tool already. Lots of options and feat

Re: [fpc-pascal] fpcup: FPC trunk 64-bit for Windows

2014-09-30 Thread Reinier Olislagers
On 30/09/2014 17:01, Juha Manninen wrote: > On Tue, Sep 30, 2014 at 4:01 PM, Reinier Olislagers > wrote: >> Run with fpgui and select the profile you want to run (a full build >> seems best for the initial run) > > I did a new build with > fpcup64.exe --fpcURL=trunk > and it works very well. Go

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Michael Thompson
On 30 September 2014 16:27, Philippe wrote: > some days before we had same type of thread ... > > the "problem" is > > -Fu is not recursive! > We're programmers. Creating our own tools for mundane work is not a "problem" :-) A few year back at my old company, for Delphi work we developed a sma

Re: [fpc-pascal] fpcup: FPC trunk 64-bit for Windows

2014-09-30 Thread Michael Thompson
On 30 September 2014 17:01, Juha Manninen wrote: > On Tue, Sep 30, 2014 at 4:01 PM, Reinier Olislagers > wrote: > > Run with fpgui and select the profile you want to run (a full build > > seems best for the initial run) > > I did a new build with > fpcup64.exe --fpcURL=trunk > and it works ver

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Marco van de Voort
In our previous episode, Sven Barth said: > It is indeed true that all units are initialized once the main code block > of the library is called, but you are still inside the library > initialization initiated by the OS and thus you are subject to its > restrictions which in the case of Windows inc

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Sven Barth
On 30.09.2014 20:17, Marco van de Voort wrote: In our previous episode, Sven Barth said: It is indeed true that all units are initialized once the main code block of the library is called, but you are still inside the library initialization initiated by the OS and thus you are subject to its res

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Sven Barth
On 30.09.2014 16:27, Philippe wrote: some days before we had same type of thread ... the "problem" is -Fu is not recursive! That's not what Brian asked for. He asked whether he can use multiple directories, not whether he can use them recursively. And the former is definitely the case. Re

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Sven Barth said: It is indeed true that all units are initialized once the main code block of the library is called, but you are still inside the library initialization initiated by the OS and thus you are subject to its restrictions which in th

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Mark Morgan Lloyd
Sven Barth wrote: The only other alternative would be to add the RTL initialization code to each exported function. I don't consider this a viable alternative. Which is more or less what Reinier's working code did. I'd hate that to be an implicit default. Note: Dynamic packages won't have

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Sven Barth
Am 30.09.2014 22:19 schrieb "Mark Morgan Lloyd" < markmll.fpc-pas...@telemetry.co.uk>: > > Sven Barth wrote: > >> The only other alternative would be to add the RTL initialization code to each exported function. I don't consider this a viable alternative. > > > Which is more or less what Reinier's

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread leledumbo
> That's not what Brian asked for. He asked whether he can use multiple > directories, not whether he can use them recursively. And the former is > definitely the case. And indeed it's a disaster, because you might to restructure your units directory if it works recursively depending on how you

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-09-30 Thread Reinier Olislagers
On 30/09/2014 22:05, Mark Morgan Lloyd wrote: > Marco van de Voort wrote: >> In our previous episode, Sven Barth said: >>> It is indeed true that all units are initialized once the main code > Reinier: did you get as far as looking in Dynlibs for an error message > immediately after trying to conne

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Graeme Geldenhuys
On 2014-09-30 16:47, Michael Thompson wrote: > Shouldn't take you long to generate a similar app for automating a string > for -Fu. :-) +1 :-D Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ __

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Graeme Geldenhuys
On 2014-09-30 14:58, Brian wrote: > For example if I decide to use fpGUI , I would like to put all the fpGUI > source code into one directory fpGUI is scattered over multiple directories too, so no idea why you thought all units must be in a single directory. In the /src/ directory is a "extrafp