-
Mar 9th, 2023, 05:34 PM
#1
Thread Starter
Member
how fix Object reference not set to an instance of an object. c#
hello
how fix Object reference not set to an instance of an object. c#
Code:
ByPH.ReadProcessMem((ulong)address, out numArray, numArray.Length, out num);
-
Mar 9th, 2023, 05:36 PM
#2
Re: how fix Object reference not set to an instance of an object. c#
Step 1: Post in the C# section of the site.
I've asked the mods to move this thread there, so please don't create another thread there, which will make even more work for the mods.
-
Mar 9th, 2023, 06:24 PM
#3
Re: how fix Object reference not set to an instance of an object. c#
NullReferenceExceptions are generally very easy to diagnose because you do the same thing every time. When the exception is thrown, you simply check each reference used on that line to see which is null that shouldn't be. It's pretty much always going to be something before a dot so, in this case, ByPH or numArray. I'm going to guess the latter, given that that array is apparently supposed to be being passed out of the method. How to then fix it depends on the specifics of the situation, but you'd need to actually explain those specifics if you'd like our help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|