Re: [Lazarus] External SigFPE

2013-07-09 Thread Kostas Michalopoulos
On Sat, Jun 29, 2013 at 8:08 AM, Ludo Brands ludo.bra...@free.fr wrote: for speed optimization. If you want to raise the exception on the correct location you should insert an fwait opcode after every floating point operation which is very expensive. Is there a way to enable this in FPC?

[Lazarus] TIniFile and BOM

2013-07-09 Thread Jansen, Dirk
Hello, the TIniFile object has some problems with ini-files starting with a UTF-8 BOM. A section starting in the first line will be ignored and notepad.exe always adds the BOM if it thinks the file is an utf8 file. If I fix this in the IniFile.pas how do I manage to get this fix into the FPC

Re: [Lazarus] TIniFile and BOM

2013-07-09 Thread Michael Van Canneyt
On Tue, 9 Jul 2013, Jansen, Dirk wrote: Hello, the TIniFile object has some problems with ini-files starting with a UTF-8 BOM. A section starting in the first line will be ignored and notepad.exe always adds the BOM if it thinks the file is an utf8 file. If I fix this in the IniFile.pas how

Re: [Lazarus] External SigFPE

2013-07-09 Thread Marco van de Voort
On Tue, Jul 09, 2013 at 10:27:59AM +0200, Kostas Michalopoulos wrote: for speed optimization. If you want to raise the exception on the correct location you should insert an fwait opcode after every floating point operation which is very expensive. Is there a way to enable this in FPC?

Re: [Lazarus] External SigFPE

2013-07-09 Thread Sven Barth
Am 09.07.2013 14:58 schrieb Marco van de Voort mar...@stack.nl: On Tue, Jul 09, 2013 at 10:27:59AM +0200, Kostas Michalopoulos wrote: for speed optimization. If you want to raise the exception on the correct location you should insert an fwait opcode after every floating point operation

[Lazarus] Improper initialization of manged types

2013-07-09 Thread Anthony Walter
Problem: Free Pascal is not properly initializing and finalizing an interface type resulting in code being invoked for a garbage pointer. The error is highlighted at the end. Previously I filed a bug report on this issue and received feedback that the bug could not be reproduced, but it's hitting

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Sean O'Connor
while not being an experienced programmer myself, one thing does spring to mind. so apologies if if I am mistaken. but it does seem possible that the compiler migvht be compiling to 64 bit as opposed to 32 bit.. I hope that helps somewhat but i am sure others with greater knowledge than I will

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Anthony Walter
Thanks for the feedback Sean. What's happening is I have a laptop with removable hard drive. I had done development for a few weeks on a drive with a 64-bit Linux OS installed using a 64-bit build of FPC. Now that I have completed my milestones I am preparing to publish updates, but before doing

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread waldo kitty
On 7/9/2013 15:55, Anthony Walter wrote: Thanks for the feedback Sean. What's happening is I have a laptop with removable hard drive. I had done development for a few weeks on a drive with a 64-bit Linux OS installed using a 64-bit build of FPC. Now that I have completed my milestones I am

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Anthony Walter
If anyone is confused as to what is happening with TVec(n)Prop here are some examples from my tests. Camera has TVec3Props called Direction (Heading, Pitch, Roll) and Position (X, Y Z) which allows a Storyboard to hold a direct reference to those Camera properties allowing for animation of the

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Anthony Walter
waldo-kitty: Yes, I've deleted everything in my /lib/i386-linux folder save for my static libraries libSDL2.a (from RC3 sources) and libtess.a (from mesa glu tessellation sources), which I've compiled myself from C sources using gcc/ming-w64 for 32/64 Linux and Windows. --

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Marc Santhoff
Am Dienstag, den 09.07.2013, 15:55 -0400 schrieb Anthony Walter: I guess what I am going to do now is take another hard drive and do a fresh 32-bit Linux install, copy my sources, and rebuild the FPC compiler with the same sources along with my libraries (the dependencies) and see if these

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Mattias Gaertner
On Tue, 9 Jul 2013 16:19:58 -0400 Anthony Walter sys...@gmail.com wrote: waldo-kitty: Yes, I've deleted everything in my /lib/i386-linux folder save for my static libraries libSDL2.a (from RC3 sources) and libtess.a (from mesa glu tessellation sources), which I've compiled myself from C

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Anthony Walter
The actual backing storage IDependencyProperty is handled by a class (an object). Records types are used to manage references back to a shared copy of the property (perhaps a Storyboard has a copy of the Alpha value of a color component being animated), or to hold an unlinked (no backing

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread waldo kitty
On 7/9/2013 16:43, Mattias Gaertner wrote: On Tue, 9 Jul 2013 16:19:58 -0400 Anthony Waltersys...@gmail.com wrote: waldo-kitty: Yes, I've deleted everything in my /lib/i386-linux folder save for my static libraries libSDL2.a (from RC3 sources) and libtess.a (from mesa glu tessellation

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Paul Ishenin
10.07.13, 1:55, Anthony Walter пишет: Previously I filed a bug report on this issue and received feedback that the bug could not be reproduced, but it's hitting me me big time when building on 32-bit Linux (I been working on 64-bit Linux withe same same compiler source without these problems).

Re: [Lazarus] Improper initialization of manged types

2013-07-09 Thread Anthony Walter
http://bugs.freepascal.org/view.php?id=24449 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] WindowsVersion

2013-07-09 Thread Richard Mace
Hi, Could someone let me know what until WindowsVersion is in please? I am trying to write an app which detects which version of Windows the app is being run on, and have found the following example, but it won't compile because of the Str255 type and WindowsVersion: Thanks in advance function