From: Mohammed R. <p_m...@ho...> - 2002-03-06 07:44:16
|
Hey guys, i wrote a program to solve the knight's problem.(move to every block on the chess board using the knight's movements, but never reach the same block twice.) I feel though i coded the program right my system is unable to run the program. In order to test it i compiled the program with two compilers, as a result both the exe files gave errors. but the exe file created by dev-c++ compiler ran longer than the other(i.e it could try more to reach the result). the error message for both theexe files was " this program has performed an illegal operation and will be shut down" but the details causing the error were diffrent in the either case: When compiled with Dev-c++ compiler: KNIGHT caused a stack fault in module KERNEL32.DLL at 0167:bff7a2a1. Registers: EAX=0054fffc CS=0167 EIP=bff7a2a1 EFLGS=00000216 EBX=78037780 SS=016f ESP=00552018 EBP=00552024 ECX=c1413f00 DS=016f ESI=00000024 FS=4d3f EDX=bffc9490 ES=016f EDI=81661bc0 GS=0000 Bytes at CS:EIP: 58 5f 8b e5 5d c3 a1 e8 9c fc bf 8b 08 ff 41 38 Stack dump: 81660a14 00000002 c1413f00 00552044 bff75d40 00000002 00000024 78037780 bffa0001 81660a14 00000000 00552480 78011eb2 0000000c 0055206c 00000002 When compiled with borland v5.5 compiler: KNIGHT caused a stack fault in module KNI.EXE at 0167:0041557a. Registers: EAX=00000006 CS=0167 EIP=0041557a EFLGS=00010206 EBX=00562018 SS=016f ESP=00562000 EBP=0056205c ECX=005624f1 DS=016f ESI=005624f1 FS=4d1f EDX=00000000 ES=016f EDI=0000000a GS=0000 Bytes at CS:EIP: 55 53 56 57 8b 5c 24 14 8b 4c 24 18 0b c9 75 08 Stack dump: 00415991 0000000a 00000000 00000024 005625e6 00562664 004159a4 0000000a 00000000 00000024 005625fe 00562664 00000001 00000020 0056260e 00562664 cud some one tell me what i cud do? i didnt use dynamic memory allocation in my program. -riyaz ======================================================================== P.Mohammed riyaz Student, Computer Science And Engineering ======================================================================== _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |