On 26 Dec 2015, at 5:23pm, Bart Smissaert <bart.smissaert at gmail.com> wrote:
>> all is perfectly fine when the SQL statement has only one UDF in it > > Just a correction on this. Have now also seen problems when there is only > one UDF in the SQL statement. > It is not entirely predictable, so sometimes get crash and on other > occasions I don't. That is typical of memory mis-management problems everyone runs into from time to time. You are probably releasing or overwriting memory which SQLite thinks it can depend on. Unfortunately I don't know the version of BASIC you're using, but your commands 'ReDim', for example, make me think memory is being released. Simon.