NO

Author Topic: POLINK: fatal error: Access is denied.  (Read 19110 times)

danbaron

  • Guest
POLINK: fatal error: Access is denied.
« on: June 19, 2011, 07:02:25 AM »
I was having this problem, --> "POLINK: fatal error: Access is denied.", when I tried to build a project.

At first, I had to restart the computer in order to make it go away.

I am using Windows 7.

There is another way you can fix it.

You have to open the Windows Task Manager.

There are two tabs in the task manager that you need to look at.

In the Applications tab, make sure that a previous build of your application is not running, if it is, force it to stop.

But the key to not getting the error message is under the Processes tab.

Even when you have forced your application to close, my experience is that the Processes tab will indicate that your .exe file is still running.

Force it to end there, and then you will be able to re-build your project.

Dan

« Last Edit: June 19, 2011, 07:04:00 AM by danbaron »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2116
Re: POLINK: fatal error: Access is denied.
« Reply #1 on: June 19, 2011, 07:15:27 AM »
May the source be with you

CommonTater

  • Guest
Re: POLINK: fatal error: Access is denied.
« Reply #2 on: June 19, 2011, 08:20:55 AM »
I was having this problem, --> "POLINK: fatal error: Access is denied.", when I tried to build a project.

This is almost always because the program you are compiling is already running.  Make sure you close your project program (dll, etc.) before attempting to recompile.

If you are working with hidden windows or taskbar programs... temporarily make their windows visible so that you can see when they're running.  You can always change that when compiling the release version.

danbaron

  • Guest
Re: POLINK: fatal error: Access is denied.
« Reply #3 on: June 19, 2011, 10:11:49 AM »
I downloaded and opened the kill process project.

But, I don't know what I'm supposed to do with it.

I don't know how to use the DLL.

---------------------------------------------------------------

Concerning my general problem, I think it was caused by my virus program, Kaspersky Internet Security 2011.

I was working on a console program, and was testing it as it grew.

At some point, I began getting just a blank console window with a blinking cursor, and no output.

Each time I ran it, I had to use the Windows Task Manager to force it to quit.

I was convinced that I had done something wrong, for instance, had corrupted the memory.

I spent hours trying to isolate what in the code was causing the malfunction.

I began to hate C.

I'm too tired to remember why, but then for some reason I tried turning off Kaspersky and running my program.

Immediately, everything ran fine again.

 >:(  :-[  :)



Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2116
Re: POLINK: fatal error: Access is denied.
« Reply #4 on: June 19, 2011, 02:36:14 PM »

Quote
I downloaded and opened the kill process project.

But, I don't know what I'm supposed to do with it.

I don't know how to use the DLL.

From help file.
Quote
Extending the IDE: Installing add-ins

Add-ins must be placed in the Addins folder, under the Bin folder where Pelles C is installed. You have to manually copy the file.

Note that the IDE will look for installed add-ins during startup. You should exit the IDE before installing a new add-in, or at least restart it afterwards.

Quote
IDE: Customize add-ins

This dialog allows you to enable/disable known add-ins. To access the dialog, select Customize on the Tools menu (and then the Add-ins tab).

Check an add-in from the list to enable it, or uncheck one to disable it.
From this forum:
http://forum.pellesc.de/index.php?topic=586.msg2651#msg2651
May the source be with you

impopia

  • Guest
Re: POLINK: fatal error: Access is denied.
« Reply #5 on: October 10, 2011, 09:01:28 PM »
Perhaps you should check with that process-killing application whether the process for the exe you created is still running, even if you have appearantly closed it. Example: you forgot to add PostQuitMessage() in the "case WM_DESTROY: {}" -> so, even if you press the X button to close the main window, the DestroyWindow is called, the WM_DESTROY is processed, but since it lacks the PostQuitMessage call, theWM_QUIT is not posted and the main message loop is not exited. The window disappears from the screen, but the process is still running, blocked in the loop while (GetMessage()==1) {}. This happened to me in my early days...

CommonTater

  • Guest
Re: POLINK: fatal error: Access is denied.
« Reply #6 on: October 11, 2011, 03:26:09 AM »
I downloaded and opened the kill process project.

It's probably just as easy to right click on your task bar... open task manager and kill the process from there.


Online AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: POLINK: fatal error: Access is denied.
« Reply #7 on: October 11, 2011, 07:29:47 AM »
When a restart of Win 7 does not help, than I assume that your program is build in subdirectory of the directory "program files" or similay, where you have not write permission without administrator rights.

If I am corrrct than build your application in an other directory.
best regards
 Alex ;)