PDA

View Full Version : Fatal compiler error: GEN1090 Cannot inject stub...



NewsArchive
06-30-2011, 01:27 PM
Hi Friedrich

Any idea what could be causing this error?

Other SB projects in the same computer compile fine.

Thanks!

Carlos Gutiérrez

NewsArchive
07-01-2011, 01:13 AM
File owned by another process?

--
Russell B. Eggen
www.radfusion.com

NewsArchive
07-01-2011, 01:14 AM
Hi Carlos,

I think it's what Russ said. Another process (temporarily) locks the file
for write access. This error indicates that the WriteFile Windows API
failed -- the compiler was unable to finalize the PE Header modification.

I bet your anti-virus product thought it "detected" a malicious code
contained within the setup.exe (e.g. a specific combination of bytes) and
locked it.

Friedrich

NewsArchive
07-02-2011, 12:36 AM
Hi Friedrich

Thanks for the reply. Good to know the problem is related to the writefile
API and not something else in the script.

I don't think it's a locked file, as I can delete the partially generated
installer exe file and it's recreated everytime, and I'm doing this in a
virtual machine without any antivirus installed in it.

But R: is a network drive using VirtualBox's Shared folder feature. I'll try
again using a simpler setup.

Regards

Carlos Gutiérrez