mr-kelly/KSFramework

热更新excel失败

lhharold opened this issue · 0 comments

editor模式下修改excel保存,recompile all setting OK。
点击 try reload all setting code报错:
ArgumentNullException: Argument cannot be null. Parameter name: bytes System.Text.Encoding.GetString (System.Byte[] bytes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/Encoding.cs:756) KEngine.Modules.SettingModule.LoadSetting (System.String path) (at Assets/KSFramework/KEngine/KEngine/CoreModules/SettingModule.cs:104) KEngine.Modules.SettingModuleBase.GetTableFile (System.String path, Boolean useCache) (at Assets/KSFramework/KEngine/KEngine.Lib/SettingModule/SettingModuleBase.cs:70) KEngine.Modules.SettingModule.Get (System.String path, Boolean useCache) (at Assets/KSFramework/KEngine/KEngine/CoreModules/SettingModule.cs:93) AppSettings.BillboardSettings._ReloadAll (Boolean throwWhenDuplicatePrimaryKey, System.String customContent) (at Assets/AppSettings.cs:180) AppSettings.BillboardSettings.ReloadAll () (at Assets/AppSettings.cs:159) AppSettings.SettingsManager.AllSettingsReload () (at Assets/AppSettings.cs:74)
debug后,发现在WatchSetting中检测文件修改回调是另一个线程,多线程调用unity接口会出错,如何解决?