I understand the resource acquisition....But the INI file created is completely 
different for those two methods (should they be equal?).  And the m_settings is 
unable to read what it creates.  The "value" always returns the default instead 
of what's in the ini file.
Using m_settings to create the INI file, then using SettingsGroup to read it 
works....it's just the m_settings that cannot read the value correctly..and 
appears to have a problem reading other values too as many things seem to go 
back to default.
de Mike W9MDB

      From: Bill Somerville <[email protected]>
 To: [email protected] 
 Sent: Tuesday, December 20, 2016 3:03 PM
 Subject: Re: [wsjt-devel] Settings problem?
   
 On 20/12/2016 20:49, Black Michael wrote:
  
 With the "old" way the ShowControls value always hits the default on reading. 
With the SettingsGroup it reads it correctly. 
 Hi Mike, those are not equivalent. In what you call the "old" way the settings 
group is closed just after setRxRange(m_fMin) but the so called "new" way only 
closes the settings group when the SettingsGroup object instance goes out of 
scope, which is the closing brace of the constructor. I suggest you look at the 
implementation of SettingsGroup and do a bit of research on "Resource 
Acquisition Is Initialization" (RAII) a.k.a. Execute Around. This is a 
fundamental idiom in modern C++ for writing code with exception safety 
guarantees when dealing with various resources.
  73
 Bill
 G4WJS.
  
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


   
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to