where would the temporary files be saved when dll created by matlab compiler is called from .net application

3 views (last 30 days)
I have an algorithm written in Matlab that creates a temporary copy of a png image from a variable and deletes it at the end of the process. Using deploytool from Matlab Builder NE I converted my Matlab algorithm into a dll to be used in a .NET application.
If a webservice that is hosted somewhere on a server calls the dll, are the temporary images going to be saved somewhere on that server? I am using imwrite command to write the image but haven't specified any location. Would there be any consequences that I need to consider?

Answers (1)

Walter Roberson
Walter Roberson on 7 Apr 2016
  2 Comments
nug
nug on 8 Apr 2016
Looks like ctfroot give me the location where all the files are located so that I can point to them correctly when packaging the application. But I have already packaged my application and have a dll which is going to be used in commercial application.
Part of the matlab code is to write the image using imwrite, read and delete at the end. would all these be handled properly when the dll is called by the client on the end user machine?
Walter Roberson
Walter Roberson on 9 Apr 2016
ctfroot() is defined at run time in deployed applications, and is the directory that packaged additional files live in, and where (by default) files will be created.
I am not as familiar with the functioning of generated DLL's.
Have you considered using tempdir() and tempname() ?

Sign in to comment.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!