All Questions
10,867
questions
-10
votes
0
answers
95
views
Do C#, Java, and other MSLs have use-before-initialized and use-after-destroyed type safety problems? [closed]
Based on the article they do:
C#, Java, and other MSLs still have use-before-initialized and use-after-destroyed type safety problems too: They guarantee not accessing memory outside its allocated ...
0
votes
0
answers
38
views
I need to debug cpp code in library called from a csharp code using vscode in linux
My cpp library is called libcalctest.so
I have built a csharp wrapper around it called as MyCalcWrapper which calls the functions in libcalctest.so via pinvoke
I am using MyCalcWrapper in a csharp ...
0
votes
0
answers
35
views
High Performance WriteableBitmap backbuffer C++/CLI
How to improve the image FPS rate. Now is single digit of FPS. It doesn't seems normal with current refresh rate though.
Code explaination:
Backend threads calling c++/cli functions below and event ...
0
votes
0
answers
20
views
AsyncWebserver_Teensy returns invalid status line
Problem
My teensy is connected to 4 Serial devices and I use the Webserver provide access to them over a local network. I have a Raspberry Pi that is requesting data from the Webserver in multiple ...
1
vote
0
answers
20
views
C# Source Generator Native Marshaling - Use Type Defined in Another Assembly?
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 ...
-7
votes
1
answer
107
views
C++ typedef struct equivalent in C#
I am trying to convert some C++ code into C#
#pragma pack (push, 1)
typedef struct od
{
unsigned short Reserved1;
unsigned char Reserved2;
od()
: Reserved1(0)
, Reserved2(...
1
vote
1
answer
100
views
Adding a C++ DLL as a reference to C# works on x86 but fails on x64
Using Microsoft Visual Studio Professional 2019:
Created a simple addition function in C++ to generate a DLL file.
In a new C# project, referenced the above DLL file.
Win32: For both the C++ DLL and ...
0
votes
0
answers
31
views
Opensource SonarQube and heterogeneous source code (C++, C#, Java, Python)
I work on relatively large project which uses multiple programming languages - C++ 23, C# (.NET 8), Java 17, Python 3.
At the moment, SonarQube (opensource version) has separate project for each ...
0
votes
0
answers
32
views
C++/FIX8 to C#Quickfix/n migration
I want to migrate my C++/FIX8(runs on Linux) client for dropcopy to C#/Quickfixn(will run on linux). I have a couple of questions.
Samples on https://github.com/connamara/quickfixn/tree/master uses ....
0
votes
0
answers
39
views
Error encountered when calling VTK processing functions generated in C++ from C#
I am a beginner in C#.
I wrote a method in C++ to process vtkPolyData, wrapped it into a DLL for use in C# environment. In C#, I'm using pointers to pass parameters, but encounter a error
'System....
1
vote
0
answers
69
views
Full duplex named pipes on Windows
I would like to implement full duplex named pipe communications on Windows. The server needs to be in C++, and needs to be able to connect to multiple clients simultaneously. The client needs to be ...
2
votes
1
answer
89
views
Exception on loading C# dll on a secondary thread in C++ MFC
I have a .NET Framework 4.8 console application and a test project in the same framework in C#, that use some dlls, with the following structure:
The c++ dll is in MFC.
The problem is the following ...
0
votes
0
answers
48
views
Unity C++ WebGL build Error _ZN2cv3MatC1Ev
I'm trying this link to use OpenCV in unity. It works in UnityEditor but doesn't work in WebGL builds. Gives me errors when I try to build..
Errors :
Library\Bee\artifacts\WebGL\build\...
0
votes
0
answers
67
views
Created COM object with .Net 8. It just works (TM) but I am struggling with deps.json and consuming with Native code
I have a .Net 4.72 DLL, exposed to COM using ComVisible(true) and the rest. I'll put example in a sec. I have been modernizing this DLL to .Net 8. This DLL consumes some registered ocx files via ...
1
vote
1
answer
62
views
Function pointers vs polymorphism in a game engine ECS architecture [closed]
So I have a question about ECS and how to structure it in a way that's performant in C++. Say I want to have components that are just data, and systems that are just logic, and I want to execute all ...