Thanks Alex for all that work! I had not checked all combinations as 
listed by Bill Lam (32bit J - 32bit C#, 64bit J - 32bit C#, etc), but 
essentially J6-32bit seems fine, but there's something with SetB and 
GetB in J6-64bit.

The behaviour with "10 + IntArray" is seriously worrying.

Also, I tried declaring something in J manually and fetch it back in C#.

Console.WriteLine("Manually set this in J:  IntArray2 =: 3 14 15 92 65 35");
Console.ReadLine();
object intArrayObj2 = jSession.Variable("IntArray2");
Console.WriteLine("J returned int array value : " + 
(IntArrayToString((int[])intArrayObj2)));
Console.ReadLine();

And the return was: 3 0 14 0 15 0.

I guess this is consistant with the behaviour of 10 + IntArray.

Martin Pelletier

On 2010-10-13 08:04, Alex Rufon wrote:
>
> In summary - there is something wrong with SetB and GetB functions in 64-bit 
> but everything works as expected if using 32-bit.
>

-- 
Martin Pelletier
Informatique / Software Development
Infodev Electronic Designers International Inc.
Tel : +1 (418) 681-3539, poste /ext. 114
Fax : +1 (418) 681-1209

Confidentiality Note: This e-mail may contain confidential information 
belonging to Infodev Electronic Designers Inc. If you are not the intended 
recipient, be aware that any disclosure, copying, distribution or use of the 
contents of this e-mail is strictly prohibited. If you have received this 
e-mail in error, please delete this e-mail and notify the sender immediately.

Note de confidentialité: Ce courriel peut contenir des informations 
confidentielles qui appartiennent à Infodev Electronic Designers Inc. Si vous 
avez reçu ce courriel par erreur, veuillez l'effacer et aviser l'expéditeur 
immédiatement. Toute diffusion, utilisation ou copie de ce message ou des 
renseignements qu'il contient par une personne autre que le (les) 
destinataire(s) désigné(s) est strictement interdite.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to