Lazarus

Announcements => Third party => Topic started by: tonyw on October 25, 2018, 04:26:59 pm

Title: IBX 2.3.1
Post 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.
Title: Re: IBX 2.3.1
Post by: zoltanleo on October 31, 2018, 09:51:53 pm
What is new, please? Have you added the new functionality discussed here?
http://forum.lazarus.freepascal.org/index.php/topic,40933.msg284673.html#msg284673
Title: Re: IBX 2.3.1
Post by: Soner on November 06, 2018, 09:50:54 pm
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.
Title: Re: IBX 2.3.1
Post by: tonyw on November 08, 2018, 05:59:00 pm
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?
Title: Re: IBX 2.3.1
Post by: Soner on November 08, 2018, 09:28:33 pm
@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.
Title: Re: IBX 2.3.1
Post by: marcov on November 09, 2018, 01:34:39 pm
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)
Title: Re: IBX 2.3.1
Post by: Soner on November 09, 2018, 05:40:07 pm
@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.
Title: Re: IBX 2.3.1
Post by: marcov on November 09, 2018, 07:06:44 pm
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.
Title: Re: IBX 2.3.1
Post by: Soner on November 10, 2018, 02:26:52 pm
 @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.
Title: Re: IBX 2.3.1
Post by: tonyw on November 11, 2018, 05:33:31 pm
Thanks for the heads up. I'll review the use of IsMultiThread in IBX.
TinyPortal © 2005-2018