- This topic has 1 reply, 1 voice, and was last updated 6 years, 2 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Hi Kim
I have this code:
ci.Username := ActorName;
ci.Token := DM.kbmMWSimpleClient1.Token;
DM.kbmMWTCPIPIndyMessagingClientTransport1.SendMessage
(
‘MSG.SYS.’ + lDBAlias + ‘.’ + UserId.ToString + ‘.>’,
”,
ci,
nil,
[msg, arrId]
);
All works fine when arrId: TArray<integer>, but when arrId: TArray<int64> I get error ‘Error creating variant of safe array.’
Is this Delphi limitation or something in SendMessage?
Thanks
Zoran
Rio 10.3.3, kbmMW 5.10.10 Ent, Win 10 Ent
Never mind.
If I define arrId: variant and do
arrId := VarArrayCreate([0,0], varVariant);
and then populate it with my int64 values, all works fine…
I’m puzzled why it also works when arrId: TArray<integer> and not when arrId: TArray<int64>?
Sorry for the false alert…