Re: Shared Variable - Exception Invalid_argument("Marshal.from_size")

Gerd Stolpmann <[email protected]> Tue, 01 Oct 2013 16:30:58 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <1380637858.23931.20.camel@zotac>
--===============5274367375747414668==
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature"; 
	boundary="=-HIAavejACY5jbKT38PdG"


--=-HIAavejACY5jbKT38PdG
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Am Donnerstag, den 26.09.2013, 17:52 +0200 schrieb Davide Ramaglietta:
> 	Hi,
>=20
> I'm sorry to bother you again.=20
> I eventually got my asynchronous processor, thanks to your precious hints=
.=20
>=20
> I have now a new problem on which I'm stuck. I want to store a global sta=
te between all my processes (just an integer counter).=20
> I followed the instructions that are in the "Netplex_advanced" documentat=
ion but when I try to get the value with Stats_var.get I get the following =
exception:=20
>=20
> Exception Invalid_argument("Marshal.from_size")
>=20
> I think the problem arises because the variable misses the initialization=
.=20
> If the cause of the exception is actually this, my problem is that I don'=
t know how to access to the variable.
>=20
> Any hint would be great.

Yes, this looks like a missing initialization. You should ensure that
Netplex_sharedvar.create_var is called once in every process (with param
enc:true), before you try to get or set values.


Gerd

>=20
> Thank you for your time and consideration,
> Davide.
>=20
>=20
> -------------------------------------------------------------------------=
-----
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most =
from=20
> the latest Intel processors and coprocessors. See abstracts and register =
>
> http://pubads.g.doubleclick.net/gampad/clk?id=3D60133471&iu=3D/4140/ostg.=
clktrk
> _______________________________________________
> Ocamlnet-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel
>=20

--=20
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    [email protected]
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------

--=-HIAavejACY5jbKT38PdG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAABAgAGBQJSStyiAAoJEAaM4b9ZLB5TAX4IAJCXfD+H7q53ygPt+c6MWRBF
3M9fc72JuoTIMYu15tg/l1leTzRKYhJr03l9XDphzqI2eFZaEY0Dk6QdxCtpUrHY
EyYREfKgLFyR0KxK3FROrgSeWFBBK1Qnbf/rgC6pjy2ZNIm+jKY5mX/1AOmLPOeC
8nsGG0eRJVRoUp0qQSvy58/z/c/qHGlPsTIFWV2hH/2HkPGNYf8TyOuuo5wCJfiW
YjWpNOxRAttSDOJR+SzrQWSGcWMAxVLB2jq7OA1AoHsaCioa9QoWumE7s2nvWnVF
9Ksfx5PBkVt55r1L8xXCQBmgh3umKCcpNvELXhnGuEBmfcZZwlcWDr9fog/pQAs=
=i6Ar
-----END PGP SIGNATURE-----

--=-HIAavejACY5jbKT38PdG--



--===============5274367375747414668==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
--===============5274367375747414668==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel

--===============5274367375747414668==--