• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Preferences not being set on windows 7

 
Ranch Hand
Posts: 41
Eclipse IDE Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a simple application that I wrote to help me write reports. Recently at work I have been given a windows 7 machine. My application ran fine under windows xp but under windows 7 it fails to set preferences when the application closes.

I'm using these snippets of code to read and write preferences:



then later on...



to check if it has already been set and then take the necessary action if it is (read in and write).

The on exit, I write with this:



When I run the application, there is nothing on the command line that reports that there is a problem writing the preferences file (I was thinking there might be a permissions problem). Is this a known thing with Windows 7? What else can I do to debug the application? As I said earlier, my code is fine on linux/windows xp machines - it just seems to be this windows 7 setup.

TIA
Adam
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I too use Windows 7. Can you show me the whole code? I would like to debug and see what does it do.
 
Marshal
Posts: 80763
488
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving discssion as too difficult for “beginning”.
 
Adam Cripps
Ranch Hand
Posts: 41
Eclipse IDE Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mansukhdeep Thind wrote:I too use Windows 7. Can you show me the whole code? I would like to debug and see what does it do.



PM coming your way. Although I thought I would debug it, but nothing really shows up on the console about any errors setting preferences.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No need fro a PM Adam. You can share anything here as long as it is legal.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic