C
C#6mo ago
Erek Hai

Please Help

I dont know what causes the problem everything seems fine pepehands
10 Replies
Erek Hai
Erek Hai6mo ago
** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at BattleOfBritain.GameScreen.EnemiesProjectileTimer_Tick(Object sender, EventArgs e) in C:\C#\BattleOfBritain\Form1.cs:line 354 at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Erek Hai
Erek Hai6mo ago
No description
mg
mg6mo ago
Something is null. Check everything you're accessing in that method enemiesProjectile, enemiesProjectile[i], enemies, etc. and see which it is
SG97
SG976mo ago
$debug
MODiX
MODiX6mo ago
Tutorial: Debug C# code and inspect data - 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.
Erek Hai
Erek Hai6mo ago
nope, couldnt make it work, I guess I will dump the whole code maxpain even chatgpt couldnt fix it
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Erek Hai
Erek Hai6mo ago
I was very short on sleep yesterday, thank you for your help. When I debug the code VS showed the problem Im pretty beginner, sorry
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Erek Hai
Erek Hai6mo ago
When I saw snowgirl said debug, I thought “damn I’m already debugging, why he/she wrote that”. However I wasn’t, pretty shocking right maxpain
Want results from more Discord servers?
Add your server
More Posts
Problem with System.ActionHi, I'm basically a newbie to coding and started a while ago to learn C# and English is not my natioHow do I use a string from one class to another?```c# using System; using System.Net.Http; using System.Threading.Tasks; public class Keys { publHow can I reference a Blazor Hybrid project’s form or component in WinForms?I’ve created a Blazor Hybrid project and referenced it in a WinForms project, but the styles are nothow to handle big float numbers without bugging?basicly as it shows the big, it kinda bugs doing such conversion, the point is on wrong place and it✅ Updating MigrationsFrom my understanding Migrations are the code for EF to create a SQL DB. Ive followed this crash couAny tips for someone beginner to learn ASP.NET MVC CoreI have done a few minor "projects" but am just looking to see if anyone has any tips on how to get bCan't see Histogram instrument tagI'm creating a `Histogram<double>` instrument through `IMeterFactory.CreateHistogram<double>(...)` aIs it possible to build a custom Expression<Func<T, bool>> by chaining "Or" operations to use in EF?Hi all, this is my first post here. I want to check if it's possbile to chain Expression.Or operatioSystem.Net.ServicePointManager.CloseConnection MissingWhat verion of System.Net has "void System.Net.ServicePointManager.CloseConnectionGroups(string)", iWhy is my list output not using the method to check true/false``` public class InterfacePA { public static void Main(string[] args) { Console.Writ