Re: Error Messages of Compiled Programs




"Geoffrey" <geoffrey.bourque@xxxxxxxxxx> wrote in message
news:gh8qh6$jtq$1@xxxxxxxxxxxxxxxxxxxxx
I'm currently developing a GUI based software that will in the end be
compiled with the MATLAB Compiler. The problem is, I have a lot of
information about error messages currently being sent to the command
window using fprintf commands. When I finish the final development, I want
a user to be able to access whatever normally would have shown up on the
command window.

The problem is that certain callbacks call other functions that have been
developed - and every function could write to it at a different time. Has
someone run into this problem before, or could suggest ideas about how to
go about creating a 'log' file for this situation?

I'd probably create a function, something like logErrorMessage below, and
call that instead of using ERROR directly:


function logErrorMessage(msgid, msgtxt)
if isdeployed
% Write to the log file -- perhaps store the fid for the log file in a
persistent variable?
else
% Write the message to the screen -- perhaps by calling ERROR directly
end


You could also create a logWarningMessage as well.

--
Steve Lord
slord@xxxxxxxxxxxxx


.



Relevant Pages

  • Re: Console Window in Matlab compiled DLL
    ... For the 'command window', I was referring to is the console window used in ... standalone mcc application to display errors thrown or maybe take user input ... MATLAB Compiler as functionality that cannot be included in applications ...
    (comp.soft-sys.matlab)
  • Re: Please help me make a .BAT file
    ... but I tried your command line in the Start menu Run window and no change. ... It flashes by so fast I can't see their error messages. ...
    (microsoft.public.windowsxp.customize)
  • Re: Anybody try KDE 3.4 yet?
    ... mjt wrote: ... a command line window would be better since ... you can see any error messages ...
    (alt.os.linux.suse)
  • Re: Great SWT Program
    ... mostly solve the blind-typing problem that I definitely recall emacs ... Except of course that you need to know some arcane command language ... Hitting tab should insert a tab ... one-line "window" in which the rest of what I type appears, ...
    (comp.lang.java.programmer)
  • Re: Printer Control and Print/Preview Problems
    ... to be appended to the report print stream. ... or "Print" with the DoCmd.OpenReport command, ... still open preview window. ... > following that with an OpenReport using acNormal. ...
    (microsoft.public.access.reports)