New PC now I get this error...

10/26/2021 00:38 denominator#1
I have a new PC and had this source working, today I decided to load it up and it threw this error

Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at MrRayzo.CachedAttributeInvocation`3.TryGetInvoker(TKey key, Tuple`2& folded)
   at MrRayzo.CachedAttributeInvocation`3.TryGetInvoker(TKey key, TAction& action)
   at MrRayzo.Program.Game_Receive(SecuritySocket obj, Packet stream) in C:\Users\alank\Desktop\Server7135\GameServer\Program.cs:line 1029
The line in question is "if (Pool.MsgInvoker.TryGetInvoker(PacketID, out hinvoker))"
10/29/2021 17:01 pintinho12#2
Then probably:
1. Pool is null, but it's probably static then...
2. MsgInvoker is null
10/29/2021 19:37 denominator#3
But why was it working fine on my old PC but not this one? I basically copied the source folder and moved it to my new PC and expected it to work as it had been doing
11/01/2021 12:46 pintinho12#4
You should debug to check the variable initialization or maybe create a static constructor
11/04/2021 12:48 tkblackbelt#5
Quote:
Originally Posted by denominator View Post
But why was it working fine on my old PC but not this one? I basically copied the source folder and moved it to my new PC and expected it to work as it had been doing
That doesn't really matter. Its a different system so you probably forgot something.

Just debug each part of that line to see where you get a null value. Then figure out why that happens. Once you, you will see why your fancy new pc couldnt run it :)