# Error while closing NG Desktop window

**URL:** <https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363>\
**Category:** Questions\
**Created:** [November 12, 2020, 7:34am UTC](https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363 "2020-11-12T07:34:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev-ws-011](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dev-ws-011](https://forum.servoy.com/u/dev-ws-011)\
**Post date:** [November 12, 2020, 7:34am UTC](https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363/1 "2020-11-12T07:34:09Z")

</div>

Hi All,

I have been working with NG Desktop client, but frequently I get an error while closing NG Desktop Window. This happens both at local development environment in IDE and when solution is deployed at server.

Here is the screenshot:  
[attachment=0]ErrorPopup.png[/attachment]

Any help will be highly appreciated.

Regards

 ![ErrorPopup.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/d/d22b18071ac9d6b3728707dffcb135aa35908828.png)

---

<div class="post-metadata">

**Author:** ![mvid](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mvid](https://forum.servoy.com/u/mvid)\
**Post date:** [November 12, 2020, 8:20am UTC](https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363/2 "2020-11-12T08:20:46Z")

</div>

Hello,  
on that file, on exit, NGDesktop is saving it’s current size and position of the main window.  
From the exception I see that write operation is not permitted to that account.  
I need more details regarding the NG Desktop installation.

Have you installed the NGDesktop to an acount and use it fromn a different account?  
Is the same happens when install it for all users?

Thanks

---

<div class="post-metadata">

**Author:** ![dev-ws-011](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dev-ws-011](https://forum.servoy.com/u/dev-ws-011)\
**Post date:** [November 12, 2020, 12:25pm UTC](https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363/3 "2020-11-12T12:25:50Z")

</div>

This happens not only for installed version but also when launch NG Desktop client from Servoy IDE.

I have installed for my user only and accessing the application from my user.

I will test by installing for all users and then test and let you know the results.

Thanks & Best Regards

---

<div class="post-metadata">

**Author:** ![dev-ws-011](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dev-ws-011](https://forum.servoy.com/u/dev-ws-011)\
**Post date:** [January 6, 2021, 12:53pm UTC](https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363/4 "2021-01-06T12:53:21Z")

</div>

This is occurring randomly.

Thanks & Regards

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [January 6, 2021, 7:27pm UTC](https://forum.servoy.com/t/error-while-closing-ng-desktop-window/20363/5 "2021-01-06T19:27:24Z")

</div>

we can try to just ignore that error  
But you really should investigate why that file can’t be accessed or written to.  
Do you have for example another process that holds a lock to it?

If it happens randomly is it maybe when it happens another ngdesktop process still lingering around?
