NO

Author Topic: Error while write to main.c  (Read 5185 times)

jasch212

  • Guest
Error while write to main.c
« 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?
« Last Edit: February 23, 2010, 09:33:28 PM by jasch212 »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Error while write to main.c
« Reply #1 on: February 23, 2010, 10:43:30 PM »
Check first that main.c isn't read only file and you have modification rights.
May the source be with you

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Error while write to main.c
« Reply #2 on: February 24, 2010, 08:47:55 AM »
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.
best regards
 Alex ;)

jasch212

  • Guest
Re: Error while write to main.c
« Reply #3 on: February 24, 2010, 09:20:34 PM »
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