Lazarus
Announcements => Third party => Topic started by: tonyw on October 25, 2018, 04:26:59 pm
-
The Lazarus fixes branch for 2.0.0 has removed deprecated methods from Lazutils. This has resulted in IBX 2.3.0 being unable to compile. An update to IBX is now available that fixes this problem and is available from
https://mwasoftware.co.uk/svn-repository
Release tag R2-3-1
Release R2-1-3 includes the fix necessary for IBX to compile with the latest Lazarus test versions. The update is available in svn only for now. A zip will be made available once lazarus 2.0 goes mainstream.
-
What is new, please? Have you added the new functionality discussed here?
http://forum.lazarus.freepascal.org/index.php/topic,40933.msg284673.html#msg284673
-
Error with examples\ibtable. It stops execution with message:
" Error reading Depts.MasterDetailDelay: ....
.... you probably need to add -dUseCThreads to the Custom options .... "
But it is definied in project custom options.
Lazarus Svn 2.1.0 r59470 (From today)
Fpc 3.2.0 (2018/9/23)
Ibx 2.3.1 r242 (from Today)
All 32Bit on Windows 10 64Bit.
EDIT:
Same error with examples\isqlmonitor project.
-
This is a rather weird error to be getting as this error message is intended to be a check on a linux system to make sure that a thread manager has been loaded. On Windows, a thread manager is always present.
The global variable "IsMultiThread" is checked and you get this error message if it returns false and a non-zero master/delay delay timer is set.
I have checked both examples with RC2 and fpc 3.04 i.e. the default release and see no problem. I don't have fpc 3.2.0 readily to hand. Maybe it is not enabling the Windows thread manager by default?
-
@tony
You have right, the examples compile with fpc 3.0.4. runs without error.
It seams that the fpc svn has bug and IsMultiThread set wrong.
-
Please file a bug for ismultithread. Thank you.
(added later: seems that ismultithread only goes true AFTER the first thread has been started. Probably some thread initialization has been delayed till the first thread is actually started)
-
@marco
I wrote here http://forum.lazarus-ide.org/index.php/topic,42265.0.html (http://forum.lazarus-ide.org/index.php/topic,42265.0.html) about IsMultiThread issue.
-
I meanwhile looked up the formal documented behaviour (https://www.freepascal.org/docs-html/rtl/system/ismultithread.html), and I think the original usage was simply illegal.
-
@toni
Did you see the discussion about IsMultiThread here http://forum.lazarus-ide.org/index.php/topic,42265.0.html (http://forum.lazarus-ide.org/index.php/topic,42265.0.html).
Your are using the IsMultiThread variable wrong, you need something like IsMultiThreadSupported.
Good luck.
-
Thanks for the heads up. I'll review the use of IsMultiThread in IBX.