Today I tried to install lazarus (64bit) on my Windows7 notebook, and got the same problem, even with an empty application.
Reading all the coments I find out that BITDEFENDER (a dutch antivirus/firewall program) was my personal source of the problem. I find out that it was caused by the usage of the antivirus program (not the firewall!). However, I could solved it, by setting the Bitdefenders software into a "game-modus", and still be able to use the antivirus software. Sounds magic, but mayby this report might help others users or even the developers.
Same here: bitdefender.
To be exact: "Active virus control" from the advanced settings.
You can put every individual app that you indent to debug, on the exception list there. IF you are lucky....
(putting just lazarus and/or gdb on the list, doesn't work)
Also, it does not alert you, even IF you explicitly check that field in bitdefender.
I wrote them (It is almost a year ago). They acknowledged the issue, and said, it would get fixed someday... (yeah...)
Guess who is not going to extend his license, once it runs out (unless they syill manage to fix it)?
---
Just to clarify:
I accept that a AV does catch a debugger. After all a debugger does strange things do another executable....
But:
- If an AV has an exclusion list, I would expect to put the debugger there, not the target app (the target app, after all is harmless)
- I definitely expect an AV to honour it's own settings (such as to ask me first, if I enable that)