Stickies
« Sticky Sync »

Welcome Guest. Please Login or Register.
Nov 21st, 2017, 1:21pm


Click to go to the
Zhorn Software Web Site
Click to go to the
Knowledgebase

« Previous Topic | Next Topic »
Pages: 1 2 3 4  Notify Send Topic Print
 veryhotthread  Author  Topic: Sticky Sync  (Read 3814 times)
tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #15 on: Feb 28th, 2012, 2:28pm »

Hi Ludwig it works well enough but each time I boot the PC I have to re-load the application and re-enter the credentials?
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #16 on: Feb 29th, 2012, 12:51pm »

Hi Daron,

thank you for testing.
Did you perform a clean reboot or did you hibernate or go to standby?

Anyway, your credentials are stored in a file called settings.dat in the same directory where the exe lies. Loosing your credentials means, that something happend to that file. I assume you have no write access in the directory where the exe is. Therefore the settings never get saved and only exist as long as the program runs.

You could try to put the directory with the stickies data somewhere else and see if the file gets created and the data is saved. (you can open it with notepad)

I try to reconstruct that issue myself as well. But tell me if you found out something else.

Ludwig


####
I can reconstruct that issue as described before. When I switch the settings.dats write protection on I loose my credentials after shutting down the application.
So check the file properties or the directory properties. Maybe it is inherited. Hope this solves your problem.
« Last Edit: Feb 29th, 2012, 1:11pm by SomethingCreative » User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #17 on: Feb 29th, 2012, 1:23pm »

Full reboot I never hibernate or use standby.

Not a problem, glad to test out useful apps like this!

On my x64 Windows 7 install Stickies is installed to:

C:\Program Files (x86)\Stickies

And according to the Win7 rules such application directories are not allowed to be written to (I think). This could explain the issue. On my machine the DAT file is not even created.

The DAT file should be written into somewhere like:

C:\Users\<username>\AppData\Roaming\stickies

That would resolve the issue.
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #18 on: Feb 29th, 2012, 3:04pm »

Yes, you are right.

For that reason I quickly changed the directory where the settings are stored, to:

"C:\Users\<username>\AppData\Roaming\stickies\ExSync"

More of that, it is a new version providing some minor fixes and a new feature to set stickies on top after they have changed by an external source (e.g. Exchange Server).

http://depositfiles.com/files/8vpuk4ohz

I also changed the link in the other thread.

Hope it helps...
User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #19 on: Mar 1st, 2012, 11:58am »

Yep that works! DAT file now saved correctly.

The only issues now are:

- The application does not auto-load when the PC is booted
- So far only 3 of my 5 current notes have synced over and one of those is an empty note without the data that should be there

Any ideas?
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #20 on: Mar 1st, 2012, 1:10pm »

I am happy that this solved the issue with the dat file.

I suggest for having the application loaded on startup you put it into your "autostart" folder since I have not implemented such a feature yet.

Ok, only 3 notes are synced. That could have several reasons:

- If you are using the catgegorie feature this could be caused, of course, if you change the category for a specific note. Then these notes are not synced.

- But what I assume is that something in the stickies database got messed up while you were trying the app and the dat files did not get saved correctly.
Means: Synced notes are stored as usual stickies in the stickies application. There is no difference. However, to synchronize with an Exchange Server the so called sync state (time of the last contact) needs to be saved. This did not happed since the dat files were not saved correctly in previouse attemps of you.
Now you the dat file is saved correctly, but the defectivly created stickies are still available in the stickies DB.

To clean things up, use the "Resync" button. This will delete all opened stickies on your desktop and create them new from your exchange account. So save your data before !

Also it could be possible that due to that malicious behavior with the missing dat file some notes got created twice and therefore also 2 identical ids could exist. To ensure that this is not the case you should delete all "closed" stickies from the database as well using the "Stickies Manager".

Then this error should not occur anymore, because I never had that issue and also 2 friends of mine never reported something like that.


User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #21 on: Mar 1st, 2012, 1:24pm »

Understood, I had turned categories on but will not disable that facility.

I'll try again over the weekend as at the moment if I enter the Sync options at all I get a Unhandled exception error reporting 'Data at the root level is invalid Line 1 Position 1.
« Last Edit: Mar 1st, 2012, 1:25pm by tekguru » User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #22 on: Mar 1st, 2012, 3:00pm »

Ok.

For that unhandeled exception, Iam happy to provide a solution.

Just to mention, I never had in any version that error and I definitely did not change something in thecode area where the error occurs at all.

The users categories are retrieved from the Exchange Server in a serialized xml stream together with other information such as colour of the category etc.
It is deserialized by loading it into an XML data object in .Net. For some reason, the serialized data you and me retrieve from our exchange servers now is not compatible for that method anymore.
-> and exception is thrown.

For me, I only can explain it that way, that something changed on the exchange server due to an microsoft update in a way that the stream is not formated according to the xml standard anymore.

However I replaced the xml data object and just grab the necessary information from the xml stream using string operations.

The new version is here: http://depositfiles.com/files/swhti44vv

Ludwig
User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #23 on: Mar 2nd, 2012, 12:03pm »

Okay new version now installed and the error is gone. Will see how the sync process works over the next hour or two.

So if I just want a pure sync from my Stickies into Exchange then I should not set any category?
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #24 on: Mar 2nd, 2012, 1:46pm »

Correct. For a plain sync forget about the category stuff and untick that option.

Categories are meant as a more advanced usage, since you probably have got some notes in your outlook that you do not want to present to the public (e.g. your collegue at work). In this case you define one or more categories in ExSync which you want to synchronize. Consequently you can pervent some notes from being displayed.


By the way, I just saw that the index of the for loop used for deleting all local stickies before resyncing has been wrong. Therefore not all stickies got deleted ;-)
I fixed this here: http://depositfiles.com/files/3fa7t2ch1
But for your testing it does not matter, so no need to change your current version.
« Last Edit: Mar 2nd, 2012, 2:00pm by SomethingCreative » User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #25 on: Mar 3rd, 2012, 06:40am »

Okay, latest version installed and all Stickies now seem to be synch'ing okay into Outlook.

What is the sync interval, is it known or on a push basis?

Will the application eventually be developed so that there is a auto-start component when installed instead of manually adding to the start up folder?

Or is there any way it can be executed from Stickies to make sure the launch takes place at the right time?
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #26 on: Mar 3rd, 2012, 08:05am »

I am glad to hear that everything works fine now.

The sync is on a push basis. ExSync is constantly connected to the Exchange Server and receives the push notifications accordingly. Depending on the network delay and the Exchange Servers workload the update should come within 10-30seconds after a change in outlook. (Like in any other application, too. e.g. Outlook on your Windows Phone device etc.)

When changing stickies on the desktop the sync is initialised after the stickies lost the focus. Means, that if you keep the stickie selected after editing it, nothing will happen until you click on something else. If you are not connected to the server while editing something, the change is stored locally and is synced the next time when the Exchange Server is available again.

However, it would be possible to implement a time scheduled syncing instead or a manual sync as well....

An autostart feature I can implement, of course. As far as I can see, stickies does not have an autostart feature as well.
In any case it is not necessary to start ExSync AND the stickies application, since ExSync automatically launches stickies if the stickies.exe is found in the same directory. So you only need to launch ExSync and get both.


User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #27 on: Mar 4th, 2012, 04:20am »

Understood - all makes sense!

Stickies does indeed when installed for me autostart with Windows and I'm pretty sure that was as a default.

At the moment I'm launching ExSync manually, but an auto-start would be awesome and make it really painless to use.
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
SomethingCreative
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 34
xx Re: Sticky Sync
« Reply #28 on: Mar 4th, 2012, 05:05am »

Here we go, with auto start function:
http://depositfiles.com/files/xtgjlrege
User IP Logged

tekguru
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 45
xx Re: Sticky Sync
« Reply #29 on: Mar 4th, 2012, 05:13am »

With this version each time I look to start the application I get a message that it has stopped working?
User IP Logged

Daron Brewood
CEO: www.smartphonegurus.com
Pages: 1 2 3 4  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls