Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
95 views

I have a .dll written in C++ with a C style API. I have successfully implemented various interop methods but this one is causing exceptions. BL_API BLResult BL_CDECL bl_image_write_to_file(const ...
NWoodsman's user avatar
  • 515
0 votes
2 answers
130 views

I have setup a Flask project using the flask restx to help me validate the input JSON payload. Note: I am also using restx's Namespace for other things too, so I have ns instead of blueprint I have ...
user2526586's user avatar
  • 1,342
1 vote
0 answers
132 views

Background I have an application that uses gRPC to communicate with other services. Nothing fancy. The data exchange includes fields representing SHA-1, SHA-256 and UUIDs, which are stored as bytes. ...
Marek R's user avatar
  • 40.3k
-4 votes
1 answer
206 views

I'm working with a Go application where I need to pass raw JSON data to a struct field, but I am encountering issues with extra escaping when marshaling the struct, especially when the raw JSON ...
Sparsh's user avatar
  • 1
0 votes
0 answers
74 views

I'm using cxf xjc plugin version 4.0 to transform a schema to a java class, but this is generating a class that when a list is null, it returns an empty list, but I need the null, so I'm using JAXB ...
Lauro182's user avatar
  • 1,717
1 vote
1 answer
86 views

I’ve created a .NET DLL with exported functions using DllExport, and I would like to call one of these exported functions from the Pascal Script in Inno Setup to retrieve their return value. Please ...
ElektroStudios's user avatar
-1 votes
1 answer
63 views

Would using encoder.Encode within Go's customized json marshal function be causing goroutine stack overflow? Please take a look at (enclosed below) https://go.dev/play/p/KXLH0B20b1u Using encoder....
xpt's user avatar
  • 23.6k
0 votes
1 answer
23 views

An example of replacing a lambda with a subclass in code is as follows: scale = tf.Variable(1.) scale_layer = tf.keras.layers.Lambda(lambda x: x * scale) Because scale_layer does not directly track ...
joseph king's user avatar
0 votes
0 answers
39 views

Is there a way to "force" the marshaller to respect the order of the elements inside the XmlElementsRefs annotation applied to a list of objects? I have a Java Class which has an attribute ...
Antonio's user avatar
  • 89
0 votes
1 answer
79 views

Here is a simplified version of the actual problem. I have an enum with each entry having multiple properties enum MyEntries{ ENTRY1("1","property1"), ENTRY2("2",...
MPS's user avatar
  • 1
-1 votes
2 answers
126 views

how can I translate this unmanaged structure into c#. typedef struct _EC_VARIANT { union { BOOL BooleanVal; UINT32 UInt32Val; ...
nikolya92's user avatar
-3 votes
1 answer
103 views

Supose I have the structure: type foo struct { Name string `json:"name"` AgeYears int `json:"age" rlp:"optional"` AgeTimestamp time....
Rafael's user avatar
  • 153
1 vote
1 answer
1k views

I have a native function that will write a string to a buffer provided in the call along with its size. Let's call it GetFooString(LPStr str, int strLen). I found out so far that with DllImport the ...
patvax's user avatar
  • 659
1 vote
1 answer
69 views

I have a list called Documents that is comprised of different Document objects I created. I am trying to serialize the list to look like this: <Documents> <Document> . . . &...
zaidabuhijleh's user avatar
1 vote
0 answers
91 views

We're currently modernizing our native interop implementations for marshaling data between C# and mainly C++ using source generators together with MarshalUsing attributes and CustomMarshallers, etc. A ...
Johann Studanski's user avatar
0 votes
1 answer
127 views

Background Upgrading from Spring Framework 4.3.30.RELEASE to 5.0.20.RELEASE Using oxm:jaxb2-marshaller Problem After upgrading the Spring Framework dependency version, the application fails to start ...
Kenny Linsky's user avatar
  • 1,796
1 vote
2 answers
115 views

Looks like it is not really feasible or very tricky still I'll take a try. Say we have a config data of a fluent structure for user to provide. E.g. configRoot: fluentSubSection: someProp: 12 ...
404's user avatar
  • 533
0 votes
0 answers
49 views

I have this structure: [StructLayout(LayoutKind.Explicit, Size=56)] public struct SaveDataDialogNewItem { [FieldOffset(8)] public IntPtr iconBuf; [FieldOffset(16)] public ulong ...
Steinbitglis's user avatar
  • 2,634
0 votes
1 answer
168 views

When converting [DllImport("advapi32.dll", SetLastError = true)] internal static extern bool QueryServiceStatusEx(SafeHandle hService, int infoLevel, IntPtr lpBuffer, uint cbBufSize, out ...
TomB's user avatar
  • 805
1 vote
0 answers
125 views

I'm working on an IME tool. To figure out the caret position of the foreground window, I'm supposed to use SendMessage() to send a WM_IME_REQUEST (0x0288) message, along with the parameters: wParam: ...
Simon Verbeke's user avatar
1 vote
1 answer
227 views

I need to use C library for working with NetCDF file format in my C# project. To receive some portion of informtaion from NetCDF file, i need to use methods nc_open to open CDF file, nc_inq_att to get ...
FSnowman's user avatar
1 vote
0 answers
46 views

When i am doing unmarshalling and marshaling for xml file that have different name spaces i want explicitly apply name space type to each child. Original document: <?xml version="1.0" ...
Oleh Kochetkov's user avatar
0 votes
0 answers
70 views

I am using a software package that offers an "extension" package, largely undocumented, that allows for creation of extensions that allow automation within the program. It's a COM interface ...
GisMofx's user avatar
  • 1,034
-1 votes
1 answer
134 views

not a lot of experience in C++. Attempting to Marshal char* in C to string in C#, using [MarshalAs(UnmanagedType.LPStr)], but I get a "a heap has been corrupted" exception. It does however ...
isswf's user avatar
  • 191
1 vote
0 answers
82 views

I have to interact with a provided C library where one of the functions is declared as follows: int GetFileList(struct spiflash_file **ptr_spiflash_filelist, int **file_num); where **...
Marcomattia Mocellin's user avatar

1
2 3 4 5
76