Re: [fpc-pascal] Reading resources

2015-07-19 Thread Bart
On 7/19/15, Juha Manninen wrote: > This ResExplorer would be a good starting > point if only it worked. A bit off-topic, but you noticed the spurious memory leaks in the example program? Heap dump by heaptrc unit 9055 memory blocks allocated : 2926212/2955096 8023 memory blocks freed : 2901

[fpc-pascal] UniversalTimeToLocal(UT: TDateTime) / LocalTimeToUniversal(LT: TDateTime)

2015-07-19 Thread Michael Van Ham
Hello FreePascal developers, I believe that since SVN commit 30628 UniversalTimeToLocal(UT: TDateTime) and LocalTimeToUniversal(LT: TDateTime) are reporting incorrect values. The multiple parameter versions of these functions had their offset handling changed to a more expected format as describ

Re: [fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

2015-07-19 Thread Sven Barth
Am 19.07.2015 21:37 schrieb "Florian Klämpfl" : > > Am 16.07.2015 um 22:40 schrieb Sven Barth: > > > > In the end your code above will look like this in mode ObjFPC: > > > > === code begin === > > > > var > > X: specialize SmartObj >, > > string> >; > > // the spaces between the "> >" are added,

Re: [fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

2015-07-19 Thread Florian Klämpfl
Am 16.07.2015 um 22:40 schrieb Sven Barth: > > In the end your code above will look like this in mode ObjFPC: > > === code begin === > > var > X: specialize SmartObj TList >, > string> >; > // the spaces between the "> >" are added, because I don't know yet whether > I'll be able to deal > wi

[fpc-pascal] Reading resources

2015-07-19 Thread Juha Manninen
Lazarus examples folder has an application ResExplorer made by Alexey Lagunov. It does not work well, images and other resource contents are not shown. Only the resource name shows correctly. It uses FPC resource classes. How to use them properly? I am testing now with FPC trunk but 2.6.4 works the