Version française
Home     About     Download     Resources     Contact us    
Browse thread
trouble with Marshal.to_string
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Anil Madhavapeddy <anil@r...>
Subject: Re: [Caml-list] trouble with Marshal.to_string
On 8 Oct 2005, at 16:34, Norman Ramsey wrote:


> Dear Camllists,
>
> I'm having trouble using Marshal.to_string.  My call looks like this:
>
>   Marshal.to_string f [Marshal.Closures]
>
> but unfortunately Marshal.to_string raises an exception:
>
>   Fatal error: exception Invalid_argument("output_value: abstract  
> value (Custom)")
>

Are you using any C bindings which create custom blocks?  That error  
occurs if your custom block does not define a serialization function  
(documented here: http://caml.inria.fr/pub/docs/manual-ocaml/ 
manual032.html#s:custom).

Anil