Category "c++sharp"

Out of memory crash caused by update function on Unity/Android/OculusQuest

The update function below is causing some kind of memory build up on my builds and crashing the game about 5 seconds into the scene even though everything seems

Response.redirect execute the code inside the pageload twice

I have this link http://localhost:54818/offerslinks/offers.aspx?ID=1 when i clicked it. it loads the page and executes this code twice enter image description

DynamoDB object persistence with System.TimeSpan throws System.InvalidOperationException

I try to save a class with a TimeSpan property. public class MyItem { public TimeSpan MyTimeSpan {get;set;} = TimeSpan.Zero } when i try to save the object

C# WPF Datagrid slow Scrolling

I have a problem with scrolling my datagrid. I am using a WPF C# application with the 4.7.2 .NET Framework. I load about 5000 datasets into a datatable, which I

Hot Chocolate Graph QL.. Extend An Object With Existing Resolvers c#

Is it possible to pass an existing resolver into an Extension of an object method, so I can reuse the resolver? I am getting "Unexpected Execution Error : "No s

How to import shared proto file into local one?

I have project Protobuf.Shared which contains shared proto files. This project is packed into NuGet package. Project structure: - .nuspec - proto - shared.prot

Un-escape specific characters when serializing to JSON in C#

I have a simple task which is to unescape an apostrophe when serializing to JSON using System.Text.JSON: using System; using System.Text.Encodings.Web; using Sy

Why materialSkin.2 buttons are kind of fixed design winforms?

i have a problem when i want to edit a button from MaterialSkin.2 winforms, why this is happening, are they fixed from developers or what

What is the fastest way to determine biome? (Unity2D C#)

I've proceduraly generated map and defined biomes based on this scheme: Take 3 different maps created via Perlin Noise Using presets determine which is the best

Datatable rows select operation showing error when column name has special characters. (C#)

I am trying to perform select operation on a datatable to extract some values from a column. The column that I am targeting has some special characters in it. s

Make Form2 label text value change by combobox and update exactly when combobox was updated

In Form2 I set a public static string to form2text then I set label text value equal to form2text In Form1 under comboBox1_SelectedIndexChanged: Form2.form2text

Flyout for autocomplete in WinUI 3 TextBox

Can anyone explain what the ProofingMenuFlyout is for in WinUI 3 on a TextBox? The documentation for it is bare with no example on how to use it. What I'm actua

Add custom fields in Log4Net PatternString

I'm working on getting my logging pattern into a standard set by my company and could use some help. I need to log from my application into JSON, so I put toget

How does one create text that can overlay all windows like the Windows Activation Watermark?

I would like to create a count down timer that displays in the lower right hand of the screen with slightly transparent text that can be seen no matter what you

How to struct an object to represent a list of topics?

I'm coding at C# and I'm trying to make an OOP representation of a list of topics. I tried countless approaches but I still not being able to reach the desired

"is not registered in resolver" exception when serializing with abstract class using MessagePack

Trying to serialize componentMappers . The Exception is throwed at .Serialize(): var componentMappers = new Bag<ComponentMapper>(); var componentMappersS

ASP .NET Core custom authentication scheme with external login

I have a website where users log in on an external website and are redirected back with a token in the querystring. I then validate the token and create the aut

.NET 6 console app using NuGet library written for .NET 5 runs fine under Windows but crashes on Mac M1 with System.BadImageFormatException

Under Windows I have used the SaxonCS library (available on NuGet https://www.nuget.org/packages/SaxonCS/ that is written against .NET 5 successfully in both .N

is there a better way to add a list of integers containing users id as serialized json string to SQL as one record?

I'm working on a Blazor app that's similar to Facebook groups, I have to make a notification function where users can receive a notification message when someon

Is there any way to show in the inspector a scene with the possible zones to spawn the player?

I'm trying to make an intiutive inspector to select a scene and the possibility of select a "zone" as well to the player spawn position in the scene selected. R