i made the switch from cfxServer to fxServer successfuly , so i begin to code the server side who were in lua to his new form in c# with no trouble, everything seems to work well execpt two things :
the first thing is i have these 3 error message in the log (it’s doesn’t seem to block any script working )
here is the error in the log file of fivem client side
[ 191647] C:\Users\304bl\AppData\Local\fivem\FiveM.app\citizen\clr2\lib\mono\4.5 Microsoft.CSharp.dll is not a platform image (even though the dir matches).
[ 191662] DEBUG-304bl: Receive Chest !
[ 191662] DEBUG-304bl: Receive list 1
[ 191662] DEBUG-304bl: who :1 / idchest :10
[ 191662] DEBUG-304bl: Size dataList : 4
[ 191850] C:\Users\304bl\AppData\Local\fivem\FiveM.app\citizen\clr2\lib\mono\4.5 System.Configuration.dll is not a platform image (even though the dir matches).
[ 191850] C:\Users\304bl\AppData\Local\fivem\FiveM.app\citizen\clr2\lib\mono\4.5 System.Xml.dll is not a platform image (even though the dir matches).
second thing more weird then the first one , the function i were using on client side for receive the chest of a player from the database is crashing my game with an error who say it can’t access to it’s physical memory
so i juste create another function and copy paste the code from one to another and now it’s working , i never seen such things in any langage so i’m really confusing
i hope i have been clear enough, if anyone have idea about what can cause these things
after look at my script closer , this error block my script.
the only different things with that EventHandlers i use is about params i give List .
i had no problem giving list from lua to c# client side , but for a reason i don’t see , i have an error when i do something with the list i receive in param :
79920] Error invoking callback for event inv_CL:getChest: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MethodAccessException: Error verifying ClassLibrary2.Inv:constructListInv (System.Collections.Generic.List`1<string>,System.Collections.Generic.List`1<int>,System.Collections.Generic.List`1<string>,int,int): Method System.Array:Empty<object> () is not accessible at 0x05ce
[ 79920] at ClassLibrary2.Inv.testChest (System.Collections.Generic.List`1[T] _list, System.Collections.Generic.List`1[T] _sizes, System.Collections.Generic.List`1[T] _listWeap, System.Int32 _idChest, System.Int32 _who) [0x003d4] in <d3e6443aebb24cde899c262c6c48ece7>:0
[ 79920] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
[ 79920] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <a4e3abdd630b4c98a9d6f31a99197de6>:0
[ 79920] --- End of inner exception stack trace ---
[ 79920] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <a4e3abdd630b4c98a9d6f31a99197de6>:0
[ 79920] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a4e3abdd630b4c98a9d6f31a99197de6>:0
[ 79920] at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <a4e3abdd630b4c98a9d6f31a99197de6>:0
[ 79920] at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <a4e3abdd630b4c98a9d6f31a99197de6>:0
[ 79920] at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <a4e3abdd630b4c98a9d6f31a99197de6>:0
[ 79920] at CitizenFX.Core.EventHandlerEntry+<Invoke>d__5.MoveNext () [0x0010d] in <6fd6647c1346498da22e5c8bcafdf6db>:0
the more strange is the fact i’m able to see data from the list i receive , but when i start parsing all the data i get that error who is blocking my script
ps: the parsing fonction i use call constructListInv() is exactly the same then before switching on fxserver and on my server side everything is ok i get the data from the db , i put it in list , i send my 3 list from the triggerclientevent .