Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2006, 02:52 PM
Zuesrooster
Fire Beetle
 
Join Date: Mar 2006
Location: NYC
Posts: 20
Question ZoneDebug.exe crash when I build

I set up a test server, when i use the precompiled .exe I get no errors and everything seems to work fine. When I download the source and compile my own .exe, I can't get the world server to run, it always throws an "stack around variable "queries" corrupt. Also when I use my compiled Zonedebug.exe the .exe crashes when I hail an NPC. It seems to be at this method:

int Parser::numtok(string text, const char * character) {
string::iterator iterator = text.begin();
int returnvalue=0;
while(*iterator) {
if (*iterator == *character) returnvalue++;
iterator++;
}
return returnvalue;
}

I changed the while(*iterator) to while(i < text.length()) and replaced *iterator in the loop with text[i]. This seemed to fix the hailing crash (NPC's still don't respond to quest's) but now i get an exception when it does a CastToClient(), seems to be when it is trying to add me into the aggro list. Everything works perfect including quests when I used a precompiled .exe so I am ruling out everything except for either my Visual Studio's Express Edition is screwed up, or something I am missing in the source. Does anyone have any idea's what i could be doing wrong?
Reply With Quote
  #2  
Old 08-07-2006, 10:54 AM
fireclav
Sarnak
 
Join Date: Jun 2006
Location: nowhere
Posts: 56
Default

y would u post that in this section?
Reply With Quote
  #3  
Old 08-07-2006, 12:12 PM
Zuesrooster
Fire Beetle
 
Join Date: Mar 2006
Location: NYC
Posts: 20
Default Resolution

Sorry If I posted this in the wrong area, I should have read the descriptions better.

If anyone is interested, I managed to fix the crashing on hailing NPC's by defining
#define _HAS_ITERATOR_DEBUGGING 0
#define _SECURE_SCL 0

Apparently VS 2005 added some additional Iterator checking and defining those two as false leaves out the extra checks. This fixed my problem in Express Edition, I don
Reply With Quote
  #4  
Old 09-07-2006, 04:53 AM
CrabClaw's Avatar
CrabClaw
Hill Giant
 
Join Date: Jun 2006
Location: Plane of Knowledge
Posts: 191
Default

Are the above fixes in the newest version? I still get off and on crashes when I hail the roaming NPCc in the PoK.
Reply With Quote
  #5  
Old 09-07-2006, 06:36 AM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Crabclaw,

It seems that this is only effected if you compile with VS2005 Pro or Express and Standard as well, I would think. The compiled version from here doesn't do it according to Zeusrooster's ealier post in this thread.

With that said, what compiler is being used to make the release version?
Reply With Quote
  #6  
Old 09-07-2006, 02:35 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

the fix listed above should be in, as well as a rewritten set of parser routines to fix the iterator problems.

VC.net toolkit 2003 is being used to build released (MS got rid of this when express came out though).
Reply With Quote
  #7  
Old 09-08-2006, 05:26 AM
Thristam
Hill Giant
 
Join Date: Jun 2006
Posts: 117
Default

Im a bit confused. Does this mean the above corrections have been already added to .845 or will be in the next iteration? if so i can test the VS2k5 Pro and be able to tell if the NPC hailing crash and aggro issue are resolved with that product.

Oh, and if that fixes it, your my hero Zeusrooster
Reply With Quote
  #8  
Old 09-11-2006, 07:54 AM
Zuesrooster
Fire Beetle
 
Join Date: Mar 2006
Location: NYC
Posts: 20
Default

I believe I saw the fix in the last post of the code on 8-22-06.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:59 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3