Re: Error Trapping for trying to run an exe file without supporting files

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Paul,

Well, the easiest way to do this is to check for the file presense
before running any real code.

I use to check for the files I need first, and when I don't find them I
ask the user where they are and store it on my application settings
(INI File, Registry, whatever) so the next time I know where to look
when I need them.

But if the files you need are somewhat a must have (such as Assemblies,
and other supporting file) then instead of asking the user where the
files are you just show the user an error message and exit the
application gracefully.

I hope it helps,

PJ
http://pjondevelopment.50webs.com

.



Relevant Pages

  • Re: attr_reader vs Objects and Attributes
    ... Robert Klemme wrote in post #980811: ... I believe he did not get an error message but an empty (nil) output ... report the real code and the real issue. ...
    (comp.lang.ruby)
  • Re: array error: variable is undefined
    ... Can you copy and paste the real code and the real error, ... >I freehanded the error message instead of copy/paste and goofed, ... > does specify m_arrProducts. ... >> Ray at work ...
    (microsoft.public.inetserver.asp.general)
  • Re: Cant use TComponent in thread object?
    ... Please copy and paste your real code. ... you get people pointing out errors that you might have just introduced while trying to retype your code from memory. ... Debugger Exception Notification ... Both the addresses in the error message are non-zero, which is a very good sign. ...
    (alt.comp.lang.borland-delphi)
  • Re: JSP form beginner question
    ... generates an error message using a Map of error messages. ... It compiles fine ... Why not post the real code? ...
    (comp.lang.java.help)