C
C#

help

❔ Application crashes

UUUnknown User11/20/2022
Message Not Public
Sign In & Join Server To View
Pphaseshift11/20/2022
What's the error?
UUUnknown User11/20/2022
2 Messages Not Public
Sign In & Join Server To View
Pphaseshift11/20/2022
Well there you go Probably no current user
UUUnknown User11/20/2022
2 Messages Not Public
Sign In & Join Server To View
Pphaseshift11/20/2022
Are you? So you verified current user is not null?
AAnchy11/20/2022
looks like you may need to subscribe to the ready event before accessing some objects
UUUnknown User11/20/2022
2 Messages Not Public
Sign In & Join Server To View
AAnchy11/20/2022
and also initialize the client the github repo has some examples on how to use it
UUUnknown User11/20/2022
7 Messages Not Public
Sign In & Join Server To View
KKouhai /人◕ ‿‿ ◕人\11/20/2022
Try to subscribe to OnReady before running this code
UUUnknown User11/20/2022
Message Not Public
Sign In & Join Server To View
KKouhai /人◕ ‿‿ ◕人\11/20/2022
UUUnknown User11/20/2022
3 Messages Not Public
Sign In & Join Server To View
KKouhai /人◕ ‿‿ ◕人\11/20/2022
Have you tried adding a logger as well?
UUUnknown User11/20/2022
Message Not Public
Sign In & Join Server To View
AAnchy11/20/2022
try subscribe to the event before calling Initialize as you may be subscribing after the client is ready
UUUnknown User11/20/2022
2 Messages Not Public
Sign In & Join Server To View
AAnchy11/20/2022
you need to provide the error, and probably more code than you are showing
UUUnknown User11/20/2022
Message Not Public
Sign In & Join Server To View
KKouhai /人◕ ‿‿ ◕人\11/20/2022
Initialize(); calls Initialize(); on drpcclient?
AAnchy11/20/2022
where is your rpc instantiation and Initialize looks like it is not called on your RPC
UUUnknown User11/20/2022
Message Not Public
Sign In & Join Server To View
KKouhai /人◕ ‿‿ ◕人\11/20/2022
And is drpcclient even initialized?
AAnchy11/20/2022
this looks like the constructor for a WPF Window
UUUnknown User11/20/2022
2 Messages Not Public
Sign In & Join Server To View
AAnchy11/20/2022
right, you are trying to subscribe to an event before you even instantiate DiscordRpc as well looks like you're trying to subscribe twice
UUUnknown User11/20/2022
5 Messages Not Public
Sign In & Join Server To View
UUUnknown User11/20/2022
3 Messages Not Public
Sign In & Join Server To View
AAnchy11/20/2022
look into binding and INotifyPropertyChanged
UUUnknown User11/20/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
What does [..^1] represent in this line of code? [Answered]var allWithoutLastChar = txtBox_Calculation.Text[..^1];❔ Can't get around on how to instantiate this.I can't get around on how to instantiate this in my service.cs so i can call it properly in my contr❔ Registering a User with Identity and EfCore calls the OnConfiguring Method of my AppDbContext?Is this supposed to be happening? It seems incredibly inefficient if so. I have attached an animatedHow to convert this method into a generic one?```C private List<string> GetEnumNamesCorrected() { var correctedNames = new List<st❔ Inconsistent accessibility [Answered]I have this bit of code here ```cs enum UnitName { Warrior, Archer, Cleric } public reaNSwag openapi2tsclient keep property namesThe generator here makes the names camel case by default and does a mapping. ```ts this.country = _❔ Data trigger [Answered]Hi, i am stuck with a little problem that i can't figure out due to being new to WPF, i have this da❔ How do you merging Dictionaries into one Dictionary?Has anyone merged two dictionaries of same type into one? ``` I read something like this var resu❔ Awaiting for multiple interactions DSharp+I'm using DSharp+ Library Right now i'm doing this: ```cs var result = await interactivity.WaitForBu✅ Not able to Insert data to table using DapperHey folks! I'm trying to have Dapper insert a MapsModel to the database with a relation to the Playe✅ I don't understand GCThe output of this code is True, False. Why? Both instances of Class1 don't have any reference pointunable to use while proparly [Answered].Unable to create an object of type 'UnitOfWork'. [Answered]Hello everyone. I have two projects; one is an API and the other is a DAL (Data Access Layer). I wan❔ WPF binding expression of property from ItemsControl item with viewmodel propertyLets say I need to draw list of circles in WPF using ItemsControl and put it in Canvas so i can posi❔ Disable Swagger index.html RoutingI have just added and configured Swagger on my project with a custom rote, however, when launching mdotnet new consolewhen i create new dotnet project in vscode it's empty like this how can i make it full❔ How to pack third-party files together with exe and then access them from the code?How to make a "packer" in C#? I have a program, when launched, it should check whether it is instalNeed some help with marshalim using GetFunctionPointerForDelegate with CreateDelegate , so i can get a pointer to the method in❔ how to add the screen zoom in and out to audio (UNITY)how to add this advanced effect?Is it possible to subtract a character from a string?I've found that I can add strings, but can't figure out how to subtract strings, or characters from