Page 1 of 1

RAGen v1.1.0

Posted: Wed Oct 19, 2011 12:10 pm
by binder
An update that has been long overdue for RAGen has been released. It contains lots of updates from all the feedback that's been given.

Here's some highlights of the new additions:
  • Updated copyright year
  • Changed to new logo
  • Added in new features
  • WIFI features is now a default
  • Ability to read in a Features file
  • Restores values on startup (PDE & Features)
  • Reads in Features file at startup
  • Updated Find Controller code
  • Internal Memory moved from a Tab to a separate window
  • ShowInterface added to end of generated PDE file
  • Updated icon
  • Delayed On device added
The location for the updated version is here:
https://github.com/downloads/curtbinder ... taller.exe

You can update your libraries if you want with the installer.

I will say that some older versions of the libraries might not work anymore with the latest RAGen. It's strongly recommended to be using at least version 0.8.5.17 of the libraries or later with the latest RAGen (to make use of all the features).

curt

Re: RAGen v1.1.0

Posted: Wed Oct 19, 2011 12:15 pm
by rimai
Awesome!!!

Re: RAGen v1.1.0

Posted: Thu Oct 20, 2011 11:03 am
by Xender
I tryed to install but it crash when it lunch after install done successfull :

Code: Select all

Application défaillante ragen.exe, version 1.1.0.126, module défaillant msvcr80.dll, version 8.0.50727.4053, adresse de défaillance 0x00014458

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 2:10 am
by chase
Works fine on Windows XP, but crashes on Win 7. I tried running in XP compatibility mode along with running as admin. Here's the error I get:

Problem signature:
Problem Event Name: BEX
Application Name: RAGen.exe
Application Version: 1.1.0.126
Application Timestamp: 4e9f1961
Fault Module Name: MSVCR80.dll
Fault Module Version: 8.0.50727.6195
Fault Module Timestamp: 4dcddbf3
Exception Offset: 00014458
Exception Code: c000000d
Exception Data: 00000000
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: c549
Additional Information 2: c54980fb91bc2aea1797168a61d2a286
Additional Information 3: 4a82
Additional Information 4: 4a82e89387e1fce488525655bd68e942

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid= ... cid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 2:28 am
by Bryan
Hmm, works fine on my Windows 7 64 bit computer.

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 7:00 am
by jemw
Have it running on both my laptop and workstation.

Windows 7 Professional 64bit

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 8:26 am
by binder
Have you tried the static version?

curt

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 8:50 am
by rimai
Hi Curt,

I think the biggest issue on the RAGen crashing is the wrong path picked up on installation.
I'm guessing if the RAGen can't figure out or doesn't have access to the correct folders, it puts default values that makes it crash.
I've seen first hand where the sketch folder was assigned the path of the preferences.txt including the file.
So, my thinking is that sketch folder and libraries folder, don't even need to be an option to choose.
It should always be assigned "Documents/Arduino" and "Documents/Arduino/libraries"
There are no reasons I can see now we need to choose those paths. I understand there was some early confusion when we started in the beginning, but I think those paths are pretty solid. Or at least until Arduino 1.0 is released :?
I think this will solve the crashing problem, because on the machine I had this problem, I used static to update the folders and then the installed version started working fine after that. So I just deleted the static.
The arduino program folder will be a tricky one, because RAGen can be installed before the Installer. This would cause the RAGen not to find the path for the arduino program. But I think it is safe to assume that this path should also be defaulted back to "Program Files/Reef Angel Controller". I know my installer picked the wrong folder and it should've been (x86), but it's too late now and many users already have it installed on the 64-bit folder. So, lets just keep using it even though it is placed wrong.
Thoughts?

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 1:24 pm
by binder
rimai wrote: I think the biggest issue on the RAGen crashing is the wrong path picked up on installation.
I'm guessing if the RAGen can't figure out or doesn't have access to the correct folders, it puts default values that makes it crash.
I've seen first hand where the sketch folder was assigned the path of the preferences.txt including the file.
So, my thinking is that sketch folder and libraries folder, don't even need to be an option to choose.
It should always be assigned "Documents/Arduino" and "Documents/Arduino/libraries"
There are no reasons I can see now we need to choose those paths. I understand there was some early confusion when we started in the beginning, but I think those paths are pretty solid.
The installer defaults to using Documents/Arduino and Documents/Arduino/libraries. I looked into things more with what RAGen does and unless the registry keys exist telling where the folders reside, it starts off by doing this:

For the Sketchbook Folder:
  • If registry location is empty:
    • Check for the arduino prefs file for the sketchbook location.
    • if that location exists, use it
    • otherwise use the current directory
  • If registry location is not empty, use that folder
For the Arduino Folder (for locating arduino.exe):
  • If registry location is not empty, use the registry
    • check if Prog Files\Reef Angel Controller exists, use it if exists
    • check if Documents\Arduino exists, use if exists
    • otherwise use the current directory
For the Libraries Folder:
  • If registry location is not empty, use the registry
    • check Documents\Arduino\libraries, use if exists
    • check ARDUINO FOLDER (from above)\libraries, use if exists
    • otherwise use the current directory
So that's the logic with the folder checks. Initially, I have the folders to be configured because of my testing and like you said, some early on confusion. Then, the problem was amplified when I created my installer and I wasn't having the installer set the folder locations that it used.

But I think it is safe to assume that this path should also be defaulted back to "Program Files/Reef Angel Controller". I know my installer picked the wrong folder and it should've been (x86), but it's too late now and many users already have it installed on the 64-bit folder. So, lets just keep using it even though it is placed wrong.
Thoughts?
I use the standard windows functions to query the Program Files folder. It's a special folder for windows and they have a function to query it and I just use that result for Program Files. I'm not sure why it wouldn't return the Program Files (x86) when running on a 64bit machine.

With all of this discussion and comments (all very, very helpful by the way), I'm going to "hopefully" put an end to all the confusion and do what Roberto has suggested. I'm going to have RAGen, use the following as default locations:
  • Sketchbook - Documents\Arduino
  • Libraries - Documents\Arduino\libraries
  • Arduino (for the executable) - Program Files\Reef Angel Controller
If any of those folders do not exist, RAGen will automatically create them.

Also, the registry overrides for those folders will be cleared out if they exist to further prevent any accidental changes.

Be on the lookout for an update to RAGen soon with these changes.

curt

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 4:17 pm
by chase
binder wrote:Have you tried the static version?
curt
No, but I'll give it a shot...is this still the latest location?
https://github.com/downloads/curtbinder ... static.zip

Nevermind, found it under downloads! :)
https://github.com/curtbinder/RAGen/archives/master

Re: RAGen v1.1.0

Posted: Sun Oct 30, 2011 4:18 pm
by binder
chase wrote:
binder wrote:Have you tried the static version?
curt
No, but I'll give it a shot...is this still the latest location?
https://github.com/downloads/curtbinder ... static.zip
That works for version 1.0.4. However, the latest is version 1.1.0:
https://github.com/downloads/curtbinder ... static.zip

curt