error caused by "some f***ed up hardcore s**"

06/27/2010 12:05 _DreadNought_#1
Error:
A call to PInvoke function 'Conquer_Online_Server!Conquer_Online_Server.Netwo rk.Cryptography.Blowfish::BF_set_key' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

and on this bit of code
Code:
public void SetKey(byte[] data)
        {
            _encryptNum = 0;
            _decryptNum = 0;
            BF_set_key(_key, data.Length, data);
        [B][SIZE="3"][FONT="Arial Black"][COLOR="Red"]}[/COLOR][/FONT][/SIZE][/B]
Error is on the curly bracket that stands out, but this error is so called ""some f***ed up hardcore s**" so it looks like this error is kinda byound me, I tryed restart pc :/ btw impulses 5180 source.

#edit just needed to use .net 3.5 not 4.0

request close, im fully 5180 except arena. THANKS IMPULSE FOR THE SUPPORT
06/27/2010 12:50 Korvacs#2
This line will be causing the problem:

Code:
BF_set_key(_key, data.Length, data);
Go into that and see what happens there.
06/27/2010 14:44 _DreadNought_#3
Nope :D, it was be using .net framework 4.0 when the pinvoke has changed in that so I have to use framework 3.5
#Request close
06/27/2010 15:48 Korvacs#4
Well fair enough, but the error still took place inside that call, says so in your error message >_>".
06/27/2010 17:27 _DreadNought_#5
Yeah ^-^ can u close thread please ?
06/27/2010 18:03 Korvacs#6
Its not epvpers policy to close threads just because they have been delt with, other people may have a use for it.
06/27/2010 20:05 -impulse-#7
Quote:
Originally Posted by Korvacs View Post
Its not epvpers policy to close threads just because they have been delt with, other people may have a use for it.
Indeed. There are many other people with this trouble...I helped so far two people with this error.
06/28/2010 17:36 _DreadNought_#8
Okay, I didn't relise that anybody else have this problem.