Re: [Lazarus] Lazarus and MySQL 5.7

2016-11-19 Thread Graeme Geldenhuys via Lazarus
On 2016-11-19 03:25, Terry A. Haimann via Lazarus wrote:
> What version of Lazarus can connect to MySQL 5.7 using TSqlConnector?

Technically it's got nothing to do with the Lazarus version, but rather
the FPC version. FPC is the one where the database components are
defined, in the FCL.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] LHelp or help systems that also work on..

2016-11-19 Thread Lars via Lazarus
On Fri, November 18, 2016 5:08 am, Andrew Haines via Lazarus wrote:
> lhelp uses IPC to communicate so it wouldn't be too bad to write a Delphi
> unit to control it. Compiling lhelp though is a fpc only job.
>
> https://github.com/graemeg/lazarus/blob/upstream/components/chmhelp/packa
> ges/help/lhelpcontrol.pas
>


Thanks for the tip. So I see many people are using SimpleIPC. Has anyone
come across any problems. When I tried it when it very first came out
almost days or weeks after the first release of it, I noticed some
duplicate messages being passed. Not sure if it was my problem or the IPC
unit problem. Seemed like a really neat tool, SimpleIPC.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] LHelp or help systems that also work on..

2016-11-19 Thread Lars via Lazarus
On Sat, November 19, 2016 3:24 pm, Lars wrote:
> On Fri, November 18, 2016 5:08 am, Andrew Haines via Lazarus wrote:
>
>> lhelp uses IPC to communicate so it wouldn't be too bad to write a
>> Delphi
>> unit to control it.

p.s. in addition to my last message, wouldn't SimpleIPC need to be ported
to delphi then..  or at least some of it's mechanism.

Would be neat if simpleipc was available in delphi so fpc programs could
communicate to delphi programs.  If only simpleipc was standardized and
available in all languages ;-)
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] LHelp or help systems that also work on..

2016-11-19 Thread Andrew Haines via Lazarus

On 11/19/2016 05:33 PM, Lars via Lazarus wrote:

On Sat, November 19, 2016 3:24 pm, Lars wrote:

On Fri, November 18, 2016 5:08 am, Andrew Haines via Lazarus wrote:


lhelp uses IPC to communicate so it wouldn't be too bad to write a
Delphi
unit to control it.

p.s. in addition to my last message, wouldn't SimpleIPC need to be ported
to delphi then..  or at least some of it's mechanism.

Would be neat if simpleipc was available in delphi so fpc programs could
communicate to delphi programs.  If only simpleipc was standardized and
available in all languages ;-)


Looking at the simpleipc unit I see

TMsgHeader = Packed record
Version : Byte;
MsgType : TMessageType;
MsgLen  : Integer;
  end;

I guess the message content, assuming any following data, is after 
MsgLen. This would be easy to implement.


Regards,


Andrew Haines

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] stale pipe workarounds

2016-11-19 Thread Lars via Lazarus
Hi while researching help systems I came across the code which uses IPC to
communicate and see that people are adding stale pipe work arounds.

So this can't be resolved in the ipc code itself and must be in the
application?  Just wondering why these work arounds are needed and when
they occur. The stale pipe code work around is at

https://github.com/graemeg/lazarus/blob/upstream/components/chmhelp/packages/help/lhelpcontrol.pas

So does anyone who uses IPC have to be aware of this and add the work
around to all ipc code in all applications?  Or it only happens in certain
cases? It just makes me scared that there is this hack/fix needed.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] stale pipe workarounds

2016-11-19 Thread Andrew Haines via Lazarus

On 11/19/2016 10:50 PM, Lars via Lazarus wrote:

Hi while researching help systems I came across the code which uses IPC to
communicate and see that people are adding stale pipe work arounds.

So this can't be resolved in the ipc code itself and must be in the
application?  Just wondering why these work arounds are needed and when
they occur. The stale pipe code work around is at

https://github.com/graemeg/lazarus/blob/upstream/components/chmhelp/packages/help/lhelpcontrol.pas

So does anyone who uses IPC have to be aware of this and add the work
around to all ipc code in all applications?  Or it only happens in certain
cases? It just makes me scared that there is this hack/fix needed.


FPC now has this stale pipe detection included. The fix was added to the 
code lazarus uses until the next official version of FPC was released 
and went into the develop version of fpc in early 2012. At this point it 
could probably be removed form lazarus since there have been multiple 
releases of fpc since then.


https://github.com/graemeg/freepascal/blob/master/packages/fcl-process/src/unix/simpleipc.inc#L97

https://github.com/graemeg/freepascal/commit/439236b9df1e952ad0fc1da42f05851dfea459ac


Regards,

Andrew Haines


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] LHelp or help systems that also work on..

2016-11-19 Thread Lars via Lazarus
On Fri, November 18, 2016 6:16 am, Graeme Geldenhuys via Lazarus wrote:
> On 2016-11-18 11:36, Lars via Lazarus wrote:
>
>> Since I use both Lazarus and Delphi and never just use one or the
>> other, is there any help system that works in both delphi and Lazarus?
>
> Yes, Docview and INF help can be used in both cases.

Docview is an fpGui based project?

If so that would be interesting and maybe my ticket into finally looking
at some fpGui code
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus