[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] strlower causes EAccessViolation

2015-01-05 Thread Michael Van Ham
On Mon, Jan 5, 2015 at 3:39 PM, Sven Barth wrote: > Am 05.01.2015 21:33 schrieb "Michael Van Ham" : > > > > > Hello, > > > > The simple program below compiles and produces the expected output in > 2.6.4. In 2.7.1 (3.1.1 now) an EAccessViolation is cau

[fpc-pascal] strlower causes EAccessViolation

2015-01-05 Thread Michael Van Ham
Hello, The simple program below compiles and produces the expected output in 2.6.4. In 2.7.1 (3.1.1 now) an EAccessViolation is caused. The strlower function seems to be in strings.inc and written in assembler. Unfortunately I can not decipher the assembly to research further. --- program test

[fpc-pascal] memory leak in TCustomSQLQuery.Create

2014-12-29 Thread Michael Van Ham
Hello, In TCustomSQLQuery.Create, FRefreshSQL:TStringList is created on line 2095, but never freed. This causes a small memory leak. Please see the attached test program demonstrating the issue. Reported on the bugtracker here: http://bugs.freepascal.org/view.php?id=27220 Please review the atta

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Michael Van Ham
On Fri, Dec 19, 2014, 12:49 Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList;