I'm building an app for the hololens and I ran into the following problem when trying to save a string:
This is the error I receive:
Code: Select all
AggregateException: One or more errors occurred. (The parameter is incorrect.
)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at ES2FileUtility.CreateStorageFile(String path, StorageFolder folder)
at ES2FileUtility.CreateStorageFile(String path)
at ES2FileUtility.CreateFileStream(String path, ES2FileMode filemode, Int32 bufferSize)
at ES2FileStream.CreateStorageStream()
at ES2FileStream.Store()
at ES2Writer.Save(Boolean checkForOverwrite)
at ES2Writer.Save()
at ES2.Save[T](T param, String identifier)
at SaveLoad.Save2()
at UnityEngine.Events.InvokableCall.Invoke()
at UnityEngine.Events.UnityEvent.Invoke()
at UnityEngine.UI.Button.Press()
at UnityEngine.UI.Button.OnPointerClick(PointerEventData eventData)
at UnityEngine.EventSystems.ExecuteEvents.Execute(IPointerClickHandler handler, BaseEventData eventData)
at UnityEngine.EventSystems.ExecuteEvents.Execute[T](GameObject target, BaseEventData eventData, EventFunction`1 functor)
Code: Select all
public void Save()
{
ES2.Save(myInputField.text, "myText");
}
- The above code worked fine until a couple of weeks ago. I really have no idea why it's not working
- I updated to the latest version of Easy save
- I can't build for the hololens if I have the easy save 3 folder in Plugins (I just delete it)
- I use the holotoolkit (it shouldn't be an issue)
- The scene is really simple: InputField + couple of buttons and a keyboard!
So the question is:
Do you have any idea on what could be causing it, and what I could try?