WaitOne for EventWaitHandle makes program crash without error?
im using mutex and some events to sending some data to other program, but my program crashes completely after
bool a = attachEvent0.WaitOne(waitTime);
without any errors.
it doesn't run the codes after :/
btw when the attachEvent0
is already signaled(turned on?), it works well without crashing,,,...I can't get the value I selected from the picker in the viewmodel
I select a value from the Picker. I see that it changes in the OnPropertyChanged() method in my ViewModel, but the value I select in the Task creation method is reset
Issue with verifying jwt toke in front end
So i am developing a full stack website and for authorization authentication i am using jwt token. Issue i am facing is that [Authorize] is not working. I am able to generate jwt token in session but i am unable to pass it ( i think). I tested the api using swagger. If i use swagger it works but in swagger i have to copy paste the token. I am having with imlpementing it in front end where it automatically takes the token which is generated.
Getting a (very) high resolution timer in C#
Hello folks! I'm currently working on some numeric-integration related stuff (specifically, creating a fixed timestep system for a game), and in order to be able to correctly interpolate subframes between steps (and we're talking about 120-240 steps per second), I need some high resolution timer - preferably sub-milisecond precision!
Does anyone have recommendations for facilities in .NET that would allow me to get such a timer?
(Please ping me on reply, thank you in advance!)...
Incremental generator not outputting generated members
I have an incremental generator that theoretically generates all members properly, given they are shown inside of the IDE, but they're not actually being outputted to my project's
.dll
or obj/
.
On the generator's project it does generate an obj/generated/
directory, but it's empty nonetheless....Opus, sodium and ffmpeg for docker linux app
Ive spent 1 hour trying to add the DLLs only to figure out my project is built for docker linux.
Any help in adding the above to my C# .NET Core 8 webapi ?
The usage is for Discord.NET discord bot voice....
Identity framework yay or nay?
I am building a local password manger (for a local server). It's meant to be used by 1 user so one account. It should only have a master password.
Does it make sense to use identity framework for that?...
how to get undefinied type in a <>
here a example what i want like to do:
```cs
Type type = ...;
SyncedVariable<typeof(type)> s = new SyncedVariable<typeof(type)>();...
Optimizing the pipeline on my Z80 emulator
Hello! I've come to ask you all a question about optimization of lambda expressions. Currently, my pipeline looks like this:
```cs
private readonly Action[] instructionTable = new Action[256];
// in ctor, for example:...
DbUpdateConcurrencyException
Hello, I have an issue with Entity Framework. In my application, I have created an endpoint for creating employee accounts, which creates an account using Identity, and also creates the Employee and EmployeeProfile models. When I call the endpoint, I get the following error:
Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded.
Can anyone point me in the right direction as to where the problem might lie and what I should fix? I’m attaching screenshots of the code....
✅ Navigation Property
Any reason as to why I'm getting this message/warning?
...
The relationship defined by this property contributes to a dependency loop.
The relationship defined by this property contributes to a dependency loop.
Which package for asp.net middleware
I want to write my own middleware for asp.net as a class library but I cannot access
HttpContext
, RequestDelegate
or IApplicationBuilder
.
Which package do I have to add to use those classes and interfaces?...Visual Studio - "browse files" window not responding in any case + closes Visual Studio
Hello I'm using Visual Studio 2022 professsional.
I have problem with all things which uses window for "browsing files" to select e.g. location of the new project or adding existing project to solution.
The window typically looks like you want to save something in notepad as "save as"....
Using SSE and Rest together
I’m developing a web application using ASP.NET for the backend and React for the frontend. I’ve learned that while REST APIs typically require polling for regular updates from the server, Server-Sent Events (SSE) offer a way to handle real-time updates. Would it be reasonable to use REST API calls for standard client-server interactions and SSE for global server updates? I’m considering this approach but am aware that using two different communication methods might seem unusual. It’s also worth...
error CS0506. How to fix?
Im working on a 3D FPS shooter in Unity and the error says that
protected override void Interact()
isn't marked as override
but it is. Here is my script:
```using System.Collections;
using System.Collections.Generic;
using UnityEngine;
...Generated files are not being emitted
I have a source generator which I know is functioning. Viewing the assembly in JetBrains Rider, I can see that all the generated files are present within the assembly and are still there beyond cache resets and rebuilds.
I'm trying to view the generated files within VSCode, which to my understanding currently isn't possible to view the direct assembly as in Rider. As an alternative, I want them to emit to a certain directory and have my compiler just ignore them for builds.
As of now, I see the "Generated" directory appear on builds. However, it is completely empty. These are the settings I have present on my consumer project (as in, the one referencing the source generator)....
Help with finding a good start for a Project
Hello everyone,
I recently started my apprenticeship as a C# Software Developer. I have basic knowledge of C#, HTML, CSS, and SQL Server.
Recently, I got moved into an another team, so I’m not really programming actively anymore. I want to change that and start programming (and also building up my portfolio) in my free time, where I would probably just game anyways....