Pelles C forum
C language => Pocket PC and Smartphone questions => Topic started by: jasch212 on February 23, 2010, 09:17:26 PM
-
hello, i am a german dev. and my english is not the best.
i am working about a year (sometimes) at an pelle c gps 5.0 project.
until today all works very good.
Since today i get the following error after editing a source and compile
(german errorMessageBox with OK button):
"Fehler beim Schreiben in die Datei "main.c"
Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird."
anyone a hint.
Thomas
PS
i have the compiler deleted and new installed, also deleted the c:/tmp directory, and a update to compiler 6.0 -> error is always available.
are there anyone problems in the projectSettings?
-
Check first that main.c isn't read only file and you have modification rights.
-
Try to create a new project with the old source files or post your project-file (.ppj) that we can look into it. If I understand your post correct, the compiler or an other program tries to write in the main.c file.
-
hi,
first thanks for the answers.
1. the main.c ist writeable
2. (good idea) i cretaed a new project and copied all *.c *.h and *.rc files into the directory
(i already renamed the main.c and main.h to mainnew.c/.h)
sadly, i had the same problem when i was editing and compiling the new mainnew Project.
"Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird."
i try more:
- i reduced the mainProgram (it is meanwhile grown about 2000 lines of code and many functions)
THATS IT!
the main is now <1500 lines (is this a border?)
in a next step i will store functions in other subprograms to reduce the mainProgram.
Thomas