These are chat archives for IndySockets/Indy

8th
Mar 2018
DelphiWorlds
@DelphiWorlds
Mar 08 2018 05:36
Is the Bindings property editor somewhere in the Indy source? Can't seem to find it
DelphiWorlds
@DelphiWorlds
Mar 08 2018 05:41
Backing up a little.. Using a binding that's added at design time seems to be different to what I'm doing at runtime:
var
  LBinding: TIdSocketHandle;
begin
  IdIPMCastClient1.IPVersion := TIdIPVersion.Id_IPv6;
  IdIPMCastClient1.DefaultPort := 6000;
  IdIPMCastClient1.MulticastGroup := 'FF02::1';
  IdIPMCastClient1.Bindings.Clear;
  LBinding := IdIPMCastClient1.Bindings.Add;
  LBinding.IPVersion := IdIPMCastClient1.IPVersion;
  LBinding.IP := '::';
  LBinding.Port := IdIPMCastClient1.DefaultPort;
  IdIPMCastClient1.Active := True;
end;
When there are no connections to an IPv6 network, it crashes on the setSockOpt call (called from TIdStackVCLPosix.SetSocketOption) when AddMulticastMembership is called. If I use the bindings editor to do the same thing (at least I hope it's the same), it does not crash
DelphiWorlds
@DelphiWorlds
Mar 08 2018 05:48
D'Oh.. Just realised I can look at the form as text..
I'm guessing I'm doing something in the wrong order
DelphiWorlds
@DelphiWorlds
Mar 08 2018 05:53
er... nope. Using a design-time binding, but setting Active to True in FormCreate also causes the crash, so it's a matter of timing..
Kudzu
@czhower
Mar 08 2018 16:55
blob
@rlebeau
Daily occurrance... often multiple times per day... and on all 3 of my PCs..... and this is just one of the issues.
Ludwig Behm
@lbehm
Mar 08 2018 18:12
@czhower Write everything in JS, they said... You donn't have to mind the memory they said...
Kudzu
@czhower
Mar 08 2018 20:28
Dont get me started on JS.. .one fo the worst designed langauges ever.. decades behind others yet they think its cutting edge...... they get a new fewature in ES2015 other langs have had for 20 years and they all crow like they are the most advanced thing out there.... but until they get a feature all they do is downplay it....