Confirm on Exit

 
Post new topic   Reply to topic    newsmanpro.com Forum Index : Technical Support
View previous topic :: View next topic  
Author Message
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Wed Mar 09, 2011 8:40 pm    Post subject: Confirm on Exit Reply with quote

Howdy

I seem to be getting the "Confirm on Exit" popup whether I have it enabled in the settings or not.

What did I do?

Note: Recently moved everthing from XP to Win 7

Regards
Back to top
View user's profile Send private message
BZB
Expert
Expert


Joined: 26 Apr 2005
Posts: 1390

PostPosted: Thu Mar 10, 2011 12:41 am    Post subject: Reply with quote

Did you start from fresh or move your database over? If the latter, you need to check that your old configs are using the correct paths, because they can be different on Windows 7 64 bit ie your settings may not be reading from where you think they are.
Back to top
View user's profile Send private message
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Fri Mar 11, 2011 4:30 pm    Post subject: Reply with quote

Well, I moved my Newsman files to "C:\Users\Ed\AppData\Local\Newsman Pro". Is that what you mean? They seem to have taken effect for other settings.

I think this was happening on my old machine for awhile too, but I'm not sure.

Note that when I change the setting it has no effect.
Back to top
View user's profile Send private message
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Wed Mar 16, 2011 4:40 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
administrator
Developer
Developer


Joined: 24 Jul 2004
Posts: 4752
Location: King William, VA

PostPosted: Wed Mar 16, 2011 6:08 pm    Post subject: Reply with quote

Well, I've just tested this and it seems to work just fine, so it's not likely a bug. On Vista/Win7, the NMP.INI file should be located in:

C:\Users\<user>\AppData\Local\Newsman Pro

However, if there is a copy in the same folder as the executable, then NMP will attempt to use that one instead. Not every setting is stored in this file; some are stored in the database, so you need to make sure NMP is actually updating the correct file. Other settings that are stored here are things like the window size and position. If you resize/move NMP and these changes aren't reflected when you restart the program, then the NMP.INI file NMP is trying to use is not writeable, but Win7 may be virtualizing the file so NMP doesn't know that it isn't getting updated. Check the timestamp on the file and make sure there are no other copies elsewhere.

It may be better to uninstall NMP, wipe any related folders and reinstall from the latest final version. Then you can simply point NMP to your existing database. I don't think you are using ADS as your database, so you won't lose any significant settings or data.

Regards
Back to top
View user's profile Send private message Send e-mail
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Thu Mar 17, 2011 5:04 am    Post subject: Reply with quote

administrator wrote:
Well, I've just tested this and it seems to work just fine, so it's not likely a bug. On Vista/Win7, the NMP.INI file should be located in:

C:\Users\<user>\AppData\Local\Newsman Pro

However, if there is a copy in the same folder as the executable, then NMP will attempt to use that one instead. Not every setting is stored in this file; some are stored in the database, so you need to make sure NMP is actually updating the correct file. Other settings that are stored here are things like the window size and position. If you resize/move NMP and these changes aren't reflected when you restart the program, then the NMP.INI file NMP is trying to use is not writeable, but Win7 may be virtualizing the file so NMP doesn't know that it isn't getting updated. Check the timestamp on the file and make sure there are no other copies elsewhere.


Agreed. My NMP.INI is in "C:\Users\Ed\AppData\Local\Newsman Pro", there are no NMP.INI in "C:\Program Files (x86)\NewsMan Pro", when I change the window size the timestamp changes and the new setting are stored.

Quote:
It may be better to uninstall NMP, wipe any related folders and reinstall from the latest final version. Then you can simply point NMP to your existing database. I don't think you are using ADS as your database, so you won't lose any significant settings or data.

Regards


This is a full fresh install of 3.0.4.5 (I think) with the 3.0.5.0 beta loaded.

I tried blowing away the NMP.INI file and letting NMP generate a new one. Same thing.

What section and parameter name is "Confirm on exit" stored under? I can't find it.

By the way, the "-quitnow" commad parameter works. Are they the same?
Back to top
View user's profile Send private message
administrator
Developer
Developer


Joined: 24 Jul 2004
Posts: 4752
Location: King William, VA

PostPosted: Thu Mar 17, 2011 12:23 pm    Post subject: Reply with quote

Ready_Eddie wrote:
What section and parameter name is "Confirm on exit" stored under? I can't find it.


[Shutdown]
Option=<encrypted data>

Ready_Eddie wrote:
By the way, the "-quitnow" commad parameter works. Are they the same?


More or less. For your purposes, they are the same.

I can't remember why the shutdown options were encrypted in the INI file, but it is the same algorithm that is used to store the database login/password in the DATABASE.INI file. So, if the encryption was broken on your version of Windows, you wouldn't be able to connect to the database either.

You said the NMP.INI file timestamp was updated, but did your window position/size settings get restored when you next restarted NMP?

Regards
Back to top
View user's profile Send private message Send e-mail
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Sun Mar 20, 2011 1:11 am    Post subject: Reply with quote

administrator wrote:
You said the NMP.INI file timestamp was updated, but did your window position/size settings get restored when you next restarted NMP?


I was watching for it, and yes they did.

Let me see if the <encrypted data> changes when I set/clear the "Confirm on Exit".
Back to top
View user's profile Send private message
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Sun Mar 20, 2011 8:01 pm    Post subject: Reply with quote

Ready_Eddie wrote:
Let me see if the <encrypted data> changes when I set/clear the "Confirm on Exit".


The <encrypted data> changes even when I don't change anything. If I setlect OK from settings it changes, if I select cancel it does not.

I suspect you have a date/time stamp in the string?

Is there a relatively easy way for me to manually decrypt the parameter?
Back to top
View user's profile Send private message
administrator
Developer
Developer


Joined: 24 Jul 2004
Posts: 4752
Location: King William, VA

PostPosted: Mon Mar 21, 2011 4:05 pm    Post subject: Reply with quote

Ready_Eddie wrote:
I suspect you have a date/time stamp in the string?

Is there a relatively easy way for me to manually decrypt the parameter?


It's re-encrypted every time you save your settings. It uses Blowfish encryption with a private key. Do you have a Blowfish decryption utility?

It would probably be best just to save the setting unencrypted.

Regards
Back to top
View user's profile Send private message Send e-mail
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Mon Mar 21, 2011 10:54 pm    Post subject: Reply with quote

administrator wrote:
It would probably be best just to save the setting unencrypted.

Regards


OK

Err ... how do I do that again?
Back to top
View user's profile Send private message
administrator
Developer
Developer


Joined: 24 Jul 2004
Posts: 4752
Location: King William, VA

PostPosted: Mon Mar 21, 2011 10:56 pm    Post subject: Reply with quote

You can't...I've changed it for the next beta.

Regards
Back to top
View user's profile Send private message Send e-mail
Ready_Eddie
Experienced
Experienced


Joined: 06 Jun 2005
Posts: 248
Location: Detroit

PostPosted: Wed Mar 30, 2011 10:15 pm    Post subject: Reply with quote

administrator wrote:
You can't...I've changed it for the next beta.

Regards


Well, the 3.0.5.1 Beta works.

But so does the 3.0.5.0 Beta. So I must have cleared something up along the way and failed to test/report it.

My apologies.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    newsmanpro.com Forum Index : Technical Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright 2003-2006, Daniel Cumpian
NMP Default By ::Dementeddogz.com::