Top "Marshalling" questions

Marshalling is the process of transforming the memory representation of an object to a data format suitable for storage or transmission

Jaxb marshaller always writes xsi:nil (even when @XmlElement(required=false, nillable=true))

I have a java property annotated with @XmlElement(required=false, nillable=true). When the object is marshalled to xml, it …

jaxb marshalling xml-nil
Passing a C# class object in and out of a C++ DLL class

I've been working on a prototype code application that runs in C# and uses classes and functions from older C++ …

c# c++ pinvoke marshalling dllimport
How do I pass a const char* to a C function from C#?

I try to call a plain C-function from an external DLL out of my C#-application. This functions is defined …

c# .net dll pinvoke marshalling
Marshal.PtrToStructure throwing System.ArgumentException error

I'm attempting to get a KBDLLHOOKSTRUCT from a keyboard-hook's lParam. private static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam) { …

c# marshalling argumentexception
marshal data too short

My application requires to keep large data objects in session. There are like 3-4 data objects each created by parsing …

ruby-on-rails session marshalling
Strange Jackson Illegal character ((CTRL-CHAR, code 0)) Exception in Map Reduce Combiner

I have a Map-Reduce job with a mapper which takes a record and converts it into an object, an instance …

java json hadoop jackson marshalling
MarshalAs(UnmanagedType.LPStr) - how does this convert utf-8 strings to char*

The question title is basically what I'd like to ask: [MarshalAs(UnmanagedType.LPStr)] - how does this convert utf-8 strings …

c# c++ marshalling
Java Code to XML/XSD without using Annotation

I need to marshall and unmarshall a Java class to XML. The class in not owned by me, that I …

java xml jaxb marshalling unmarshalling
C# Marshalling double* from C++ DLL?

I have a C++ DLL with an exported function: extern "C" __declspec(dllexport) double* fft(double* dataReal, double* dataImag) { [...] } The …

c# c++ interop marshalling dllimport
Why can't I return a char* string from C++ to C# in a Release build?

I'm attempting to call the following trivial C function from C#: SIMPLEDLL_API const char* ReturnString() { return "Returning a static …

.net pinvoke marshalling access-violation