Change the calling convention of the imported function to cdecl (I think the blowfish library is C or C++, right?). I learned this a while back when I was having the same problem after upgrading to .NET 4.0; it turns out that .NET 3.5 disables PInvoke debugging messages. Basically the parameters of that function are getting ordered incorrectly when they get passed to the native function... which means that the stack will get used up and throw an exception eventually, causing your server to crash.
the calling convention in native code, you can specify a calling convention __cdecl, __stdcall etc, it's basically the way arguments are passed to a function when it's called on x86, it determines how args are pushed/popped onto stack and return value stored in eax etc, the difference between __cdecl and __stdcall is whether the caller or callee cleans up the stack .
Error : Invalid Client Program will be terminated plz help 08/26/2017 - Silkroad Online - 16 Replies When i have install silkroad and the luncher starts it comes up and error invalid client, program will be terminated. what is wrong plz answer :)
[ERROR] ( undefined file pleasez réinstall the program ) 10/09/2011 - Kal Online - 4 Replies Hello guys .
i have 3 problems with connecting on a PServer , i'm out of idea so i post here , its my last chance ..
Ive download an PServer .
Extracted it , updated it .
when i start the game , it work , 2 mins after login/playing , my game crash , it close totally without any error .
When i want restart it , it say this error like 10 time every second
5375 Program.cs error ?mysql? 08/28/2011 - CO2 Private Server - 6 Replies Hey Guys,
igot an error when i try to start a 5375 server.
so i just debug the server in C# and got this error.
it is at the code in program.cs
[Help] Program.cs minor (yet annoying) error 06/13/2011 - CO2 Private Server - 4 Replies okay, so let me cut to the chase. I have been getting this problem in my program.cs file and I have not yet figured out how to solve it... I tried commenting it but yet nothing has happened. when I debug the build the whole solution it brings up the server command prompt with all the data loading then stops at the bottom saying this error (NullReferenceException):
on this piece of code:
if (EntityUID.Now == 0)
{
Console.Clear();
...
could any one tell me how to fix this error in Program.cs ? 03/04/2010 - CO2 Private Server - 12 Replies could any one tell me how to fix this error in Program.cs ?
using System.Threading;
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using NewestCOServer.Game;
namespace NewestCOServer