On Friday 05 December 2014 03:57:53 Fred van Stappen wrote:
>
> >> Exception
> >>
> >> Unable to open file "xxxx.mfm"
> >> No such file or directory.
>
> Then i must click to OK, then once to OK.
> I would use your debugger-message panel on top of debugger-buttons to tell
> that the form file does not exist. => So no punishment more if no mse
> form...
>
> But i searched in all your code and did not find where it raise the
> exception.
>
> The exception appears in line 4601 => msedesigner.pas
>
> function tdesigner.loadformfile(filename: msestring;
> const skipexisting: boolean): pmoduleinfoty;
>
> /// here that raise the excetion =>
> designnotifications.closeobjecttext(idesigner(self),filename,bo1);
>
> Could you show me where i can unable that error message ?
>
In MSEide activate 'Project'-'Options'-'Debugger'-'Stop on
Exception'. 'View'-'Stack' and one can check the call stack. DblClick in a
stack list row jumps to the according source line, see attachment.
Do not call tdesigner.loadformfile() in toggleformunit() main.pas:820 if the
target is not MSEgui.
If you like to show an errormessage in the status display instead not to call
loadformfile() change msedesigner.pas:4603:
"
// stream1:= ttextstream.Create(filename,fm_read);
if ttextstream.trycreate(stream1,filename,fm_read) <> sye_ok then begin
mainfo.setstattext('bla bla error '+getlasterrortext(),mtk_error);
exit;
end;
"
add msesystypes to uses.
>
> PS: I am nearly ready to commit something to gitorious, but not totally ;-)
>
Suggestion: commit every step to the local git clone. There is no harm to push
to Gitorious often, I don't think there are much users of the project
yet. ;-)
Martin
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk