Hrumm
This is an odd little thingie..
I converted from MSVC++4 to MSVC++6 and when I compiled my mud (The Never
Word)
I get this error:
TNW caused an invalid page fault in
module TNW.EXE at 015f:0045e47d.
Registers:
EAX=0078db68 CS=015f EIP=0045e47d EFLGS=00010202
EBX=00680000 SS=0167 ESP=0078db1c EBP=0078dc70
ECX=00504e40 DS=0167 ESI=81755904 FS=2d2f
EDX=0a0d96f0 ES=0167 EDI=0078dc70 GS=0000
Bytes at CS:EIP:
8b 42 0c 83 e0 10 85 c0 75 5c 8b 4d 0c 51 e8 f0
Stack dump:
0078fcd0 81755904 00680000 cccccccc cccccccc cccccccc cccccccc cccccccc
cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc
I ru the debugger (yes my pride and joy) and I get an access violation here
(in db.c) the (-> near the if statement is the little yellow arrow I get
when i run the debugger heh.. cute, no?)
do {
fgets(tmp, READ_SIZE, fl);
tmp[strlen(tmp) - 1] = '\0'; /* take off the trailing \n */
strcat(tmp, "\r\n");
-> if (!feof(fl)) {
if (strlen(buf) + strlen(tmp) + 1 > MAX_STRING_LENGTH) {
log("SYSERR: %s: string too big (%d max)", name,
MAX_STRING_LENGTH);
*buf = '\0';
return (-1);
}
strcat(buf, tmp);
}
The hell is going on here? heh this is a new little thingie
oh yeah FYI: Im using 3.0bpl16
--LordKaT
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT