❔ My Label Doesn't show up even though no errors.
Hi, I am making like PC Stats app like HWInfo or something like that, but I am using Open Hardware Monitor libary but they say that they do have support for CPU Temps but I dont just get the CPU Temp Label to work.
https://codeshare.io/ZJNE6e
29 Replies
In the gap thats where it should be.
seems like one of your if statements arent hitting
id put a breakpoint and debug
wait let me test
nope @IceGPT
still not showing up
do you want me to give you the Form1.Designer.cs or
so both if statements are hitting and the cputemp.text is being applied?
yeah
could be an issue in databinding in the xaml maybe?
windows forms doesnt use xaml...
or wpf
oh I have no idea about winforms
wait is there Qt for C#
cause I might as use that for the GUI
Can you set the default text of lblCpuTemp and have it show up?
give me a sec
wait I am still gonna try a Console.WriteLine to see if it writes to the console at least
well I am not seeing anything in the Output
imma go look at open hardware docs
So when you place a breakpoint on the line where lblCpuTemp.Text is assigned a value, does it display a value after the assignment statement is executed?
I dont think the whole entire code for the cpu temp even is getting ran
so your first if statement didnt hit then
oh it is
wtf
the Console.WriteLine("cool") solved it
this must be a joke
a console write line saved the day
I might need to try furmark and see if its perhaps getting the same info off my gpu
ok yeah it is
your first if statement that checks for the cpu is going to be ignored btw
then thats the problem?
friedice
REPL Result: Success
Console Output
Compile: 497.504ms | Execution: 97.039ms | React with ❌ to remove this embed.
i might as just try to use a diff libary for the cpu temps
yes
an easier way to do this without having to console log would be to use breakpoints and debug
$debug
Tutorial: Debug C# code - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
man these fucking libraries are either fucking broken or they dont support my shit
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.