I want to create a LaTeX editor.
Behind the scene, the editor will call pdflatex.exe.
I need a method to prevent pdflatex.exe to stop working because of an invalid input file.
Is there anybody here knows the protocols, rules, conventions used by pdflatex.exe ?
Note: I created the question in StackOverflow as well.
Edit
Using suggestions from @Martin and @arx (a SO member), my actual problem is solved. THANK you!

(pdf)latexwith-interaction=nonstopmode(or what the MikTeX equivalent is). Then it will not stop on errors. Your editor can detect compile errors by watching the return value of thepdflatexsubprocess and by locking on the "console" or log output. – Martin Scharrer♦ Mar 6 '11 at 14:42pdflatexwants to read from standard input, i.e. waits for user input. – Martin Scharrer♦ Mar 6 '11 at 14:43-halt-on-erroroption in pdfTeX, LuaTeX and XeTeX. – Andrey Vihrov Mar 6 '11 at 14:47