Opened 14 years ago
Last modified 14 years ago
#1378 closed defect (fixed)
OMEdit error writing file
Reported by: | alexp | Owned by: | alexp |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Interactive Model Editor Interface | Version: | |
Keywords: | Cc: | alexp, Adeel Asghar |
Description
1.6.0 on Windows-32 (XP)
add a new model file .mo
edit the source code
switch to diagram view in order to save (see bug #1376)
an error occurs:
"ERROR: Error writing to file <interactive>" (see attatched screenshot).
overwriting the file using save as allows to save it once. when it is edited the same error occurs again
Attachments (1)
Change History (3)
by , 14 years ago
Attachment: | omEdit_error.png added |
---|
comment:1 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Adeel, when saving a file you need to use API setSourceFile(class, "file.mo") so that next saves knows which file to save to. You can also get the file from a class using getSourceFile(class). If you get back an answer as "<interactive>" it means that this class was not yet been saved or was edited and the file was not yet set via setSourceFile. If you load a file and the user changes it and you send it back to OMC you will need to also send setSourceFile(class, file) after you send it so all the classes in the buffer stay bounded to a certain file.