Register for your free account! | Forgot your password?

You last visited: Today at 18:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Debugging issues

Discussion on Debugging issues within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 7
Received Thanks: 1
Debugging issues

I converted my project to x86 and i debug, the server turns on, i go to login, and it freezes at account server. I get these issues in vs any1 got a clue?

Also any1 got an idea as for schooling for C# C++ like classes i should take. is it just basic computer programming or game design? Cuz im enrolling within the next year just wanna know fersure what i should take.
Attached Images
File Type: jpg new problem.JPG (47.3 KB, 22 views)
File Type: jpg same.JPG (29.7 KB, 15 views)
Im2Frosty is offline  
Old 07/19/2012, 03:12   #2
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Set the calling convention for memcpy to cdecl.
InfamousNoone is offline  
Thanks
1 User
Old 07/19/2012, 03:27   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 7
Received Thanks: 1
debug claims native doesn't contain a definition for cdecl
Im2Frosty is offline  
Old 07/19/2012, 03:46   #4
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace ConquerOnline.Native
{
    public unsafe class Msvcrt
    {
        [DllImport(NativeConfiguration.MSVCRT, EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        private static extern void* Memcpy(void* dest, void* src, uint count);

        [DllImport(NativeConfiguration.MSVCRT, EntryPoint = "memset", CallingConvention = CallingConvention.Cdecl)]
        private static extern void* Memset(void* dst, byte fill, int length);

        [DllImport(NativeConfiguration.MSVCRT, EntryPoint = "srand", CallingConvention = CallingConvention.StdCall)]
        public static extern short srand(int seed);

        [DllImport(NativeConfiguration.MSVCRT, EntryPoint = "rand", CallingConvention = CallingConvention.StdCall)]
        public static extern short rand();

        #region memset
        public static void MemorySet(byte[] Dest, byte Fill, int Length)
        {
            fixed (byte* dest = Dest)
                Memset(dest, Fill, Length);
        }
        public static void MemorySet(byte[] Dest, byte Fill, uint Length)
        {
            fixed (byte* dest = Dest)
                Memset(dest, Fill, (int)Length);
        }

        public static void MemorySet(byte* Dest, byte Fill, int Length)
        {
            Memset(Dest, Fill, Length);
        }
        public static void MemorySet(byte* Dest, byte Fill, uint Length)
        {
            Memset(Dest, Fill, (int)Length);
        }

        public static void MemorySet(void* Dest, byte Fill, int Length)
        {
            Memset(Dest, Fill, Length);
        }
        public static void MemorySet(void* Dest, byte Fill, uint Length)
        {
            Memset(Dest, Fill, (int)Length);
        }
        #endregion

        #region memcpy
        public static void MemoryCopy(byte* Dest, byte* Src, uint Count)
        {
            Memcpy(Dest, Src, Count);
        }
        public static void MemoryCopy(byte* Dest, byte* Src, int Count)
        {
            Memcpy(Dest, Src, (uint)Count);
        }

        public static void MemoryCopy(void* Dest, void* Src, uint Count)
        {
            Memcpy(Dest, Src, Count);
        }
        public static void MemoryCopy(void* Dest, void* Src, int Count)
        {
            Memcpy(Dest, Src, (uint)Count);
        }

        public static void MemoryCopy(byte[] Dest, byte[] Src, int Count)
        {
            fixed (byte* dest = Dest, src = Src)
                Memcpy(dest, src, (uint)Count);
        }
        public static void MemoryCopy(byte[] Dest, byte[] Src, uint Count)
        {
            fixed (byte* dest = Dest, src = Src)
                Memcpy(dest, src, Count);
        }
        #endregion
    }
}
.
I don't have a username is offline  
Thanks
1 User
Old 07/19/2012, 06:16   #5
 
elite*gold: 0
Join Date: Jun 2012
Posts: 7
Received Thanks: 1
i still dont understand what was that code for?
Im2Frosty is offline  
Old 07/19/2012, 09:05   #6


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
memcpy copies data in memory from one location to another, in this case its part of the socket system.
Korvacs is offline  
Thanks
1 User
Old 07/19/2012, 16:14   #7
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Quote:
Originally Posted by Im2Frosty View Post
i still dont understand what was that code for?
I suggest learning general coding rather than diving into private servers. You're shooting yourself in the foot.
InfamousNoone is offline  
Thanks
1 User
Old 07/19/2012, 20:18   #8
 
elite*gold: 0
Join Date: Jun 2012
Posts: 7
Received Thanks: 1
yea, i was going to try to learn via having a server but its not working out. i appreciate the help tho guys.
Im2Frosty is offline  
Thanks
1 User
Old 07/20/2012, 03:59   #9
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
My mind was just blown. Someone on E*pvp finally acknowledges that they should learn general coding before trying to run a server? I am shocked.
InfamousNoone is offline  
Old 07/20/2012, 16:28   #10
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by InfamousNoone View Post
My mind was just blown. Someone on E*pvp finally acknowledges that they should learn general coding before trying to run a server? I am shocked.
Miracle happens.
I don't have a username is offline  
Reply


Similar Threads Similar Threads
JIT debugging
01/12/2012 - DarkOrbit - 2 Replies
guys can any one tell me how to enable JIT debugging it ive me this error ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example:
Debugging
07/16/2010 - Grand Chase - 0 Replies
D quote above is quoted from 745896321. As stated, it is possible to run d GCHAX (by makim) on a 64bit-running OS ... but does any1 care to explain how ?
debugging
01/28/2010 - Last Chaos - 4 Replies
hi.. hab probleme mit ollydbg und last chaos also: was ich bisher mache .. lc starten, einloggen, olly starten, attachen nach dem attachen funktioniert manchmal alles, meistens jedoch bleibt olly bei einer exception hängen und das spiel stürzt ab. hat LC eine anti debug methode, oder mache ich etwas anderes falsch^^? wenn ja: wie kann ich die bypassen =) ? mfg d0m
Debugging Aion
09/19/2009 - Aion - 8 Replies
I am trying desperatly to debug/hook functions in Aion. I have run the GG Killer, and that lets me get very close, but as soon as I set a breakpoint in CE or olly, it terminates. Guessing there is a seperate thread that is constantly checking for breakpoints? Any suggestions on how to proceed. I dont want a tutorial or somebody to do it for me, just some pointers so I can try to do it myself.



All times are GMT +1. The time now is 18:47.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.