* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Graphics / Re: Graphics Contest 2017, please vote now!
« Last post by Akira1364 on Today at 12:51:09 am »
This is very strange. Is it possible that the compiler is referring to the Width and Height properties of TRect, and not TBGRABitmap? What version of FPC are you using? Also, when you right-click on the TRect part of the variable declaration "Rect: TRect" (at line 722 of my most recent upload) and choose "find declaration of TRect", which file exactly are you brought to?
2
Graphics / Re: Graphics Contest 2017, please vote now!
« Last post by J-G on Today at 12:41:45 am »
Here's a direct link to my original post:
Thanks - that make life so much easier  -  well so I thought :)

I first deleted all the old files, then extracted the new  -  only to find that the 'new' .zip was only 3 files; frmMain.ifm & .pas plus uniGraphics.pas. The other 4 files were recovered from the [bin] and - - - - -  compile fails again for no identifier idents to member "width" and "height".

At least I no longer have hints about duplicates though!
3
General / Re: An optimisation level better =0 hangs computer.
« Last post by han on Today at 12:39:41 am »
Thanks for the hints. I will try them tomorrow. The 40.000 lines astronomy freeware application has a long history and  uses a lot of complicated math and string & data manipulations. A part of the code is published.  A small part are third party copyrighted routines.

I noticed compiling seems to run out of control at the same phase as visible in the three screenshots. I will investigate if I can tweak sometihing to fix it. I will also try going back to older compilers and code.

The weirdest thing that is seems to behave randomly. Sometimes it compiles sometimes not in Linux. At least the operating system stays now functional in a Linux virtual machine and I386 allowing some experiments and more testing. In win64 is just crashes the operating system.
4
General / Re: Help with Property/Component editors
« Last post by howardpc on Today at 12:31:13 am »
May be simplest to share compilable code that reliably produces the invalid typecast.
Hopefully someone can successfully debug it, post correct code and explain how they went about it. It's hard to give that explanation in the abstract.
5
General / Re: Help with Property/Component editors
« Last post by PatBayford on Today at 12:13:22 am »
So far so good, however, I now have an "Invalid type cast" error when the editors/s are invoked. How do I get to debug the editors? The instructions in the article are so vague as to be useless!
Thanking you all in advance  :)
6
General / Re: JCF problems with BitPacked records..
« Last post by Leledumbo on August 20, 2017, 11:58:30 pm »
JCF parser cannot handle a lot of FPC specific syntax yet, bitpacked is one of them (generics is another). Temporarily use packed record and restore to bitpacked after formatting.
7
Unix / Re: Interactive Tprocess?
« Last post by Leledumbo on August 20, 2017, 11:55:05 pm »
Tprocess seems simple enough; but how do I answer the prompt questions?
The same way you read output from it, only use different property (input) and method (write). Don't forget to append a newline as that's what most prompt expects (Python's `input()` included) before releasing control back to the application.
8
Spanish / Re: Acerca de la función Length.
« Last post by AntonioFS on August 20, 2017, 11:52:14 pm »
Hello again.
Now it is correct, but first you have to add the LazUtils package in the Project Inspector, otherwise it will still give us a compilation error.

Effectively with Utf8Length (string) gives us the exact number of characters, whether or not they are accented.

Bart, thank you very much for this important note.

Best regards.
Antonio F.S.

------------

Hola de nuevo.
Ahora sí está correcto, pero antes hay que añadir el paquete LazUtils en el Inspector de proyectos, pues de no ser así nos seguirá dando error de compilación.

Efectivamente con Utf8Length(cadena) nos da el número exacto de caracteres, aunque éstos estén o no acentuados.

Bart, muchas gracias por este importante apunte.

Atentamente.
Antonio F.S.
9
Third party / Re: Lazarus apps showcase website
« Last post by lainz on August 20, 2017, 11:37:44 pm »
Typo: AWGG, not AWWG

Thanks. Fixed.

good idea Lainz ! :)

Thanks!

I think, the Double Commander should be listed there (I like this app very much): https://doublecmd.sourceforge.io/

Done. Also I added PeaZip, is a very popular compression utility.
10
Spanish / Re: Acerca de la función Length.
« Last post by Bart on August 20, 2017, 11:19:38 pm »
It is in unit LazUtf8.

(Note: I don't speak or unerstand the spanish language)

Bart
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus