Same script - 2 pcs - error on one PC only with setappdata
古いコメントを表示
Hi, I made a gui which shares data via setappdata/getappdata. Everything works like charm, but when I send it to my friend (m-files), it always says invalid handle object in one of the setappdata lines. I store data in root and in main gui and I call it via main handles stored in root.
Only he has the error message, could it be because he has 64-bit version ( I have 32)? Or the root itself is a problem?
I havent find any answers so far.
Edit: To be completely clear, it worked for him few days ago even when he wrote some application with it. Now every setappdata gets him invalid object handle, even in a script that he used and worked( wasnt changed btw) Thanks!
回答 (1 件)
Walter Roberson
2012 年 4 月 3 日
0 投票
setappdata saves the data in a user file. Perhaps removing that file (might want to rename it) would help.
3 件のコメント
Charles
2012 年 4 月 4 日
Jan
2012 年 4 月 5 日
SETAPPDATA does not write to a file.
Walter Roberson
2012 年 4 月 5 日
Ah yes, Jan is correct. I was thinking of setpref()
カテゴリ
ヘルプ センター および File Exchange で Web Services についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!