Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

OMPlotGUI open file handle

OMPlotGUI open file handle

In OMPlot/OMPlotGUI/PlotWindow.cpp is a memory leak when opening "mat" files.

For opening the file a "omc_new_matlab4_reader" is created in line 359. However, this object is never deleted. This does not only lead to a memory leak but also keeps the file handle openend. Therefore, the file which was opened cannot be overwritten as long as the application using the PlotWindow object is running.

It seems like adding "omc_free_matlab4_reader" somewhere arround line 411 would solve this problem.

Best regards,

Michael

Edited by: mburisch - Nov-22-11 18:01:17
There are 0 guests and 0 other users also viewing this topic
You are here: