<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Integer list between objects does not work under Windows but works under OS X</title>
		<atom:link href="http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 16:35:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-58407</guid>
					<title><![CDATA[Integer list between objects does not work under Windows but works under OS X]]></title>
					<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-58407</link>
					<pubDate>Sat, 13 Aug 2011 19:18:22 +0000</pubDate>
					<dc:creator>BenKissBox</dc:creator>

					<description>
						<![CDATA[
						<p>Hello, I am facing a really weird problem. I am writing Max externals both for Mac and Win platforms, and my external which works perfectly under Mac OS does not work as expected under Windows.</p>
<p>I have two externals, one sending a int list, the second one receiving the int list.</p>
<p>On sender side, I create the outlet like this in the new() method:<br />
<code><br />
x->HDOutlet=listout(x)<br /></code></p>
<p>I send the int list like this:<br />
<code><br />
atom_setlong(argv, 1);<br />
atom_setlong(argv+1, 2);<br />
outlet_list(x->HDOutlet, 0L, 2, &#038;argv[0]);<br /></code></p>
<p>If I put a print object on the outlet, I see this (as expected) on Max window<br />
hdtest 1 2</p>
<p>On receiver side, I have created the inlet like this<br />
<code><br />
class_addmethod (c, (method)hd_test_hdlist, "int", A_GIMME, 0);<br /></code></p>
<p>and the hd_test_hdlist method is defined like this :<br />
<code><br />
void hd_test_hdlist (t_hd_test *x, t_symbol* s, long argc, t_atom* argv);<br /></code></p>
<p>Here is my problem : when I check argc on OS X, it equals 2 (which is correct), but on Windows I get 0&#8230; The code of my external is exactly the same on Windows and Mac, so I have no idea why I get this behaviour.</p>
<p>Any idea of what could explain that ?</p>
<p>Thank you by advance</p>
<p>Benoit</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209933</guid>
					<title><![CDATA[Re: Integer list between objects does not work under Windows but works under OS X]]></title>
					<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209933</link>
					<pubDate>Sat, 13 Aug 2011 19:54:15 +0000</pubDate>
					<dc:creator>BenKissBox</dc:creator>

					<description>
						<![CDATA[
						<p>I just made a quick test : I put a message on my patch, containing two long (so I have a message like (1 2) on my patch</p>
<p>I connected this message to the receiver inlet, and I get the same result as with my sender. So I suppose that the problem comes from the inlet declaration.</p>
<p>Is my method to receive a list of long on default inlet is correct ?</p>
<p>Thanks for your help</p>
<p>Benoit</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209934</guid>
					<title><![CDATA[Re: Integer list between objects does not work under Windows but works under OS X]]></title>
					<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209934</link>
					<pubDate>Sat, 13 Aug 2011 21:38:37 +0000</pubDate>
					<dc:creator>Luigi Castelli</dc:creator>

					<description>
						<![CDATA[
						<p>You have to declare the method to receive lists as follows:</p>
<pre><code>class_addmethod (c, (method)hd_test_hdlist, "list", A_GIMME, 0);</code></pre><p>The rest of your code seems correct.</p>
<p>- Luigi</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209935</guid>
					<title><![CDATA[Re: Integer list between objects does not work under Windows but works under OS X]]></title>
					<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209935</link>
					<pubDate>Sun, 14 Aug 2011 05:04:32 +0000</pubDate>
					<dc:creator>BenKissBox</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Luigi,</p>
<p>thank you for your help, this solved my problem.</p>
<p>This is a bit funny to see that OS X version of Max interprets correctly a list of long on the inlet, when the listener is configured as &#8220;int&#8221;.. I was starting to get crazy with that.</p>
<p>Benoit</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209936</guid>
					<title><![CDATA[Re: Integer list between objects does not work under Windows but works under OS X]]></title>
					<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209936</link>
					<pubDate>Sun, 14 Aug 2011 05:33:55 +0000</pubDate>
					<dc:creator>nicolas danet</dc:creator>

					<description>
						<![CDATA[
						<p>Hello, </p>
<blockquote><p>
This is a bit funny to see that OS X version of Max interprets correctly a list of long on the inlet, when the listener is configured as &#8220;int&#8221; &#8230;
</p>
</blockquote>
<p>perhaps because your &#8220;int&#8221; method was not correct too, as it is supposed to get A_LONG ;-)</p>
<pre><code>class_addmethod (c, (method)myobject_int, "int", A_LONG, 0);</code></pre>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209937</guid>
					<title><![CDATA[Re: Integer list between objects does not work under Windows but works under OS X]]></title>
					<link>http://cycling74.com/forums/topic/integer-list-between-objects-does-not-work-under-windows-but-works-under-os-x/#post-209937</link>
					<pubDate>Sun, 14 Aug 2011 12:50:58 +0000</pubDate>
					<dc:creator>BenKissBox</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Vanille,</p>
<p>I was just pointing out that Mac version was behaving differently than Win version (it&#8217;s strange, since the underlying code is normally the same in Max)</p>
<p>Anyway, with a crap declaration like I did, anything can happen&#8230; </p>
<p>Benoit</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

