Amzi! Prolog Listener
Version: 3.3 Mar96+ 16-bit 286 Protected Mode Windows
May 12 1996 18:46:51
Consulting ENV.PRO
yes
?- consult('C:\\AMZIEXPL\\CDEBUG.PRO')
yes
?- run.
Thank you for using the C Debugger Expert, by Shabsi Walfish
If you do not understand a prompt at any time, you may type 'help'.
Is the error a runtime or compilation error (or warning)? [runtime,compilation]
runtime
What is your level of experience with C programming? [beginner,intermediate,advanced]
beginner
Does it crash after the user supplies input? [yes,no]
yes
You should check to make sure that the input from the user is being properly stored in the variable as expected by using a pr
intf() to display the input, and then exiting. The crash most likely results from code following the input prompt.
Did that solve your problem? [yes, no]
no
Did an fopen() or similar function return a null file pointer? [yes,no]
no
Did you use the scanf function? [yes,no]
yes
You might want to try using fgets() or gets() instead of scanf(), and converting the result with the atof() or atoi() as nece
ssary.
Did that solve your problem? [yes, no]
yes
If you wish to run the program again, simply type 'run'.
yes
?- run.
Thank you for using the C Debugger Expert, by Shabsi Walfish
If you do not understand a prompt at any time, you may type 'help'.
Is the error a runtime or compilation error (or warning)? [runtime,compilation]
compilation
What is your level of experience with C programming? [beginner,intermediate,advanced]
intermediate
Did the compiler give you a warning message? [yes,no]
yes
Did the compiler warn you about an arguement type being converted? [yes,no]
yes
Did you define a function in your program which is causing the problem? [yes,maybe,no]
yes
Did you use a char array or string in your program? [yes,no]
no
Did the compiler return a parse error? [yes,no]
no
Did you use any pointers in your program? [yes,no]
yes
If the compiler is warning you about returning the address of a local variable, try making it global.
Did that solve your problem? [yes, no]
yes
If you wish to run the program again, simply type 'run'.
yes
?- run.
Thank you for using the C Debugger Expert, by Shabsi Walfish
If you do not understand a prompt at any time, you may type 'help'.
Is the error a runtime or compilation error (or warning)? [runtime,compilation]
runtime
What is your level of experience with C programming? [beginner,intermediate,advanced]
advanced
Did you define a function in your program which is causing the problem? [yes,maybe,no]
maybe
Did you use recursion? [yes,no]
yes
If your program is taking a very long time to solve a problem, or is crashing due to stack overflow or excessive memory usage
, it is likely that the problem is your recursive function. Consider using an iterative solution instead if possible, or try
using Dynamic Programming methods.
Did that solve your problem? [yes, no]
no
Is it a security related bug? [yes,no]
no
Does the problem involve opening a file? [yes,no]
yes
Did an fopen() or similar function return a null file pointer? [yes,no]
yes
Make sure your program isn't using too much memory. There may not be enough left to open your file. Also, make sure you haven
't exceeded the maximum number of open files supported by your OS.
Did that solve your problem? [yes, no]
yes
If you wish to run the program again, simply type 'run'.
yes
?- run.
Thank you for using the C Debugger Expert, by Shabsi Walfish
If you do not understand a prompt at any time, you may type 'help'.
Is the error a runtime or compilation error (or warning)? [runtime,compilation]
runtime
What is your level of experience with C programming? [beginner,intermediate,advanced]
advanced
Did you define a function in your program which is causing the problem? [yes,maybe,no]
no
Is it a security related bug? [yes,no]
yes
Is it possible you have a buffer overrun? [yes,maybe,no]
maybe
Use fgets() rather than gets() or scanf() for all user input to prevent buffer overrun attacks.
Did that solve your problem? [yes, no]
yes
If you wish to run the program again, simply type 'run'.
yes
?- run.
Thank you for using the C Debugger Expert, by Shabsi Walfish
If you do not understand a prompt at any time, you may type 'help'.
Is the error a runtime or compilation error (or warning)? [runtime,compilation]
compilation
What is your level of experience with C programming? [beginner,intermediate,advanced]
beginner
Did the compiler give you a warning message? [yes,no]
no
Did the compiler return a parse error? [yes,no]
yes
You probably forgot a semi-colon at the end of a line, or added one where it didn't belong.
Did that solve your problem? [yes, no]
no
You probably misplaced some () or {} pairs... double check them. Semicolons are another possibility, as are misplaced commas.
Did that solve your problem? [yes, no]
no
I was unable to solve your problem, sorry.
If you wish to run the program again, simply type 'run'.
no
?-