Hi,
Thanks for the reply - I sort of guessed that ;-).
Now recovered by re-writing the code from scratch. It was a cpp file (now 195 lines) and an h (now 77 lines).
So luckily these were not too big and I could actually remember most of it anyway as I only created them yesterday.
As for saving to an unknown location - sorry but NO - its a local folder. Not protected, and NO confirm dialog popped up - unless it was hidden !!!. It must also have ‘tried’ to save them as outside Dev they were still in the folder but BOTH had zero bytes !!! - thus a VERY BAD save operation. Last night they were fully operational files - built and running…
As for GIT - I really do not like it - never have done :-O. Its a nightmare to the ‘uninitiated’ - to me its just not ‘intuitive’ :-(. Plus - I really don’t want my private code at risk on a public server :-O.
NB I am not a dev noob - and been developing software for 40 years or so :-O. So yup - I am an ‘oldie’ and can’t abide some of the ‘newer’ ways of working ;-)) - we’ve forgotten way too much!!
This is almost definitely an issue with the Particle Dev (or Atom ??) environment (on my PC at least - Windows 8.1). Basically if you leave it open for too long it seems to get VERY confused, and just stops doing things (like compiling !!), and like the uncaught errors (trapped in your code - not mine :-O) which randomly pop up during compiling :-O.
Close Atom, re-open and its fine (for quite a while).
I really MUST stop leaving it running I guess - AND start using Visual SVN again ;-)).
Don’t get me wrong…
Particle Dev is a GREAT tool to use - I MUCH prefer it to the web build stuff !!. BUT its a tad ‘raw around the edges’ - mind you I AM more used to a tool like Visual Studio Pro (2013 and all the way back to the 90’s - not really used 2015 yet).
Not a complaint as the MS tool has had a hell of a lot more paid resource thrown at it ;-)).
NB I LOVE these ‘Photon’ modules :-)) - any thoughts about a 5G wifi module ??? 2.4G is a pretty crowded space nowadays - and has limited channels ;-).
These are HIGHLY productive modules - ready to GO ‘out of the box’ ;-)).
BR
Graham