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

3 ビュー (過去 30 日間)
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?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 4 月 7 日
  2 件のコメント
nug
nug 2016 年 4 月 8 日
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 2016 年 4 月 9 日
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() ?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by