Comments (12)
This may mean it doesn't have permission to write (or can't find) the AppData directory to store the config information. Try running Dev C++ as administrator?
from dev-cpp.
On my Win 10 x64 system, Dev-C++ started normally with no error occered. But when I start it on Win 7 x86, the same error occered and running it as administrator seems not solving this problem.
from dev-cpp.
Right, but you can see in his screenshot it is running on drive E:\ which sounds like a non-standard configuration.
Embarcadero Dev C++ doesn't support Windows 7. Not sure what the cause of the error is as I think it should.
from dev-cpp.
I had created config dir and devcpp.ini file by manually, can solving this problem. so i guess it is installing create config and devcpp.ini failed (maybe no permission). It is recommended to include config dir and devcpp.ini file in the exe package.
from dev-cpp.
My os is win7 x64 , has same problem with you , then i have run devcppPortable.exe in first , it's create a folder name is config , this problem is not exists . so , it's can be work at win7 system. ^_^
from dev-cpp.
Interesting. So basically a problem with the permissions request on where to put the config files. Will see if we can fix this in the next release.
from dev-cpp.
devcpp.exe attempts to write\read to <InstallDir>\config\devcpp.ini
. not to <user-home>\AppData\
.
Running devcppPortable.exe
first fixes this ( as it creates <InstallDir>\config\devcpp.ini
).
from dev-cpp.
Hi, I am a long time user of Dev-C++ versions. R/W permissions has been a long time issue on all systems after Win XP. There are some work arounds such as using the portable version executable and config.ini s in the application folder. Also I have had to install to C:\Dev-C++ on NT6.x systems to get around some of the programs directory R/W security problems as well as running in Windows XP compatibility mode on W8.1 (Some opening from file extension issues do persist, but generaly all other functionality is fine)
I just tested the Embacadero version on W10 pro v1511 and failed with lansn issue above (std install options to C:\Programs... )
I tried C:\dev-C++ and reset all R/W permissions with the same fault.
I will retry using my usual install with the devcppPortable.exe and portable .ini in the coming days on W10 v 1909.
Axle
from dev-cpp.
Maybe I just move the settings file to My Documents instead of App Roaming. Basically under later versions of Windows it shouldn't write to the Program Files directory and some things still write there.
from dev-cpp.
Hi FMXExpress, Not wishing to tread on the toes of the devs, and I am not up to speed yet on the Embarcadero current release.
I am using Orwell 5.11 version on w8.1 Pro x86 atm + just started testing Embarcadero release.
Default install is C:\Program Files(x86)\Dev-Cpp, C:\Users\Useraccount\AppData\Roaming\Dev-Cpp (I dont use)
My install is C:\Dev-Cpp, C:\Users\Useraccount\AppData\Roaming\Dev-Cpp (I use this. In compatibility mode XPsp3, Run as Admin) Always install and run as "Run as Admin.."
Portable mode is C:\Dev-Cpp\devcppPortable.exe, C:\Dev-Cpp\config (Default location when devcppPortable.exe is used)
I usually have to do a manual edit/copy between ..\Roaming\Dev-Cpp and C:\Dev-Cpp\config (devcpp.ini, codeinsertion.ini) at first run due to write permissions etc. I also habitually use a copy of the *.ini files from Windows XP as a guide for manual editing in W8.1 (Check that write permissions are enabled for devcpp.ini, codeinsertion.ini)
..\Roaming\Dev-Cpp and C:\Dev-Cpp\config are the only Two locations that devcpp.ini, codeinsertion.ini can exist in legacy Dev-C++ versions. This may turn out to be unrelated to the OP issue. I will investigate today, and get back to yall :)
Axle
from dev-cpp.
Ok, sorted, All works fine for me atm after a quick fix. Read the last paragraph for the condensed summary :)
Windows 10 Pro V1909 (Original test above on W10 v1511)
Issue:
Embarcadero Dev-Cpp V5.5
Fault:Unable to write to C\Dev-Cpp\config\devcpp.ini
Test 1
Orwell
Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe
Install RAA (Run As Administrator)
Full X
Remove Old Coniguration Files (Safe)
C:\Dev-Cpp
C:\Dev-Cpp\config (Not Exist)
C:\Users\user\AppData\Roaming\Dev-Cpp (Not Exist)
End Install OK
First start devcpp.exe - RAA
First time configuration dialog
Accept defaults
End Dialog OK
Creates:C:\Users\user\AppData\Roaming\Dev-Cpp\codeinsertion.ini,devcpp.ini
Admin,User R/E/W permission OK
Run devcpp.exe RAA OK
Create project OK
Change Astyle Formating OK
Themes save not tested X
Creat main.c OK
Save main.c OK
Compile and Run Console (main.c) Hello World OK
Run devcpp.exe as User OK
Run devcppPortable.exe RAA
First time configuration dialog
End Dialog OK
Created:C:\Dev-Cpp\config\codeinsertion.ini,devcpp.ini
Admin R/E/W and permission OK, User R/E permission Only X
Odd, devcpp.ini appears to save when run with limited User permission... Confirmed
Uninstall (Windows Add/Remove programs) OK
Manual Delete Dev-Cpp and config directories/files (From Portable)
End Test 1
Test 2
Orwell
Dev-Cpp 5.4.2 TDM-GCC x64 4.7.1 Setup.exe
Install RAA
Full X
Remove Old Coniguration Files (Safe)
C:\Dev-Cpp
C:\Dev-Cpp\config (Not Exist)
C:\Users\user\AppData\Roaming\Dev-Cpp (Not Exist)
End Install OK
First start devcpp.exe - RAA
First time configuration dialog
Accept defaults
End Dialog OK
Creates:C:\Dev-Cpp\config\codeinsertion.ini,devcpp.ini,cache.ccc
Admin,User R/E/W permission OK
Run devcpp.exe RAA OK
Open project OK
Compile and Run Console (main.c) Hello World OK
No Astyle Formating!?
Themes and save not tested X
CVS added
No Portable executable available X
Run devcpp.exe as User OK
Change Editor Options Font size and save OK
Uninstall (Windows Add/Remove programs) OK
Note: I'm not a fan of some aspects of this version. Also applies to the WX build I have tested in the past.
End Test 2
Test 3
Embarcadero_Dev-Cpp_5.5_TDM-GCC_4.9.2_Setup.exe
Install RAA
Full
Remove Old Coniguration Files (Safe)
C:\Dev-Cpp
C:\Dev-Cpp\config (Not Exist)
C:\Users\user\AppData\Roaming\Dev-Cpp (Not Exist)
End Install OK
First start devcpp.exe - RAA
Fault:Unable to write to C\Dev-Cpp\config\devcpp.ini
First start devcppPortable.exe - RAA
First time configuration dialog
Accept defaults
End Dialog OK
Creates:C:\Dev-Cpp\config\codeinsertion.ini,devcpp.ini OK
Run devcpp.exe - RAA OK
Open project OK
Change Editor Options Font size and save OK
Compile and Run Console (main.c) Hello World OK
Open files directly from project directory (ie. main.c) opens in Dev-Cpp IDE without issue (Unlike my current W8.1 install)
End Test 3
Summary
devcpp.exe is not able to create the config files on first start (Error!).
devcppPortable.exe Creates C:\Dev-Cpp\config\codeinsertion.ini,devcpp.ini (User R/E permissions, Admin R/E/W permissions)
devcpp.exe Then works as expected.
I think running the Config files in the application directory when installed to the default "C:\Program Files (x86)" will create UAC and permissions conflicts on W10 (As well as previous NT6.x ).
Also note that R/W permissions are required for most directory trees under root \Dev-Cpp
This is the primary reason that I run the default install path for legacy Dev-Cpp to "C:\Dev-Cpp" on all systems after XP.
I also use "C:\Dev-Cpp" on all system inc WinXP to keep path lengths below 256 Characters. GCC/MinGW-x64 tool chain goes deep.
There are also some other unrelated issues related to updating the default TDM package to later versions.
Embarcadero Uninstall remains in Apps and programs!
Hope this helps
Axle
from dev-cpp.
See the v6.0 release.
https://github.com/Embarcadero/Dev-Cpp/releases/latest
from dev-cpp.
Related Issues (20)
- Chinese comment will disappear HOT 1
- run and compile HOT 1
- Migration to GitHub is not complete
- Copy problem? HOT 1
- Jump to function implementation fails if (only) its first line is hidden HOT 2
- Error from use library windows.h
- Bug HOT 2
- multiple undo HOT 1
- ANSI编码文件无法打开
- ughhh HOT 1
- I can't open the file. HOT 2
- Add Rust compilation.
- cannot find -lobjc
- DEV C++ not showing colors HOT 2
- I face this problem HOT 2
- 中文字体无法加载
- Auto complete window display error in dark themes HOT 1
- not good response
- There is not Cano in there
- 0x00192361处出现错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dev-cpp.