Hi,
I am trying to execute a program which runs if I double click on it, and am getting
Program returned code : -1073741515
It appears it is failing to spawn, as an OutputDebugString at the beginning of the dpr does not seem to send anything.
There are no blanks in the path. There is normally one parameter, but it has no blanks in it, and removing it does not make a difference.
Win7 64 bit, XE6 binary, FB 7.0.0.3084
Any ideas what I might be doing wrong ?
TIA,
Sue
Hi Sue
Here’s a trick for figuring out the error code. Open calc, switch to programmer mode, decimal, then copy the return code (with the sign) and past it into calc and then switch to hex : -1073741515 = FFFFFFFFC0000135
Ignoring the FFF’s the error is C0000135 - that gives you something to search for. To me it looks like a missing dll? Having just spent the last hour fixing my pc’s path after installing XE7 (path too long) and knowing you are a delphi user, I would check that your path environment variable is not too long. If you have more than one copy of delphi installed, it doesn’t take long before your path is too long. When that happens, you start to see weird things, like not being able to run system admin tools, or the icons for running progams being wrong in your task bar.
Hi Sue, BTW, just writing a blog post about how to fix the path issues with delphi installers, will publish later today, if this is the cause of your issue, give me a call and I’ll talk you through fixing it.
Not sure if you got past this, here’s my post about delphi and the sytem path :
https://www.finalbuilder.com/resources/blogs/postid/722/how-to-fix-your-system-path-after-installing-delphi
I discovered the missing DLL within minutes of posting. My reply to myself didn’t get posted. Thanks for the help - in the back of my mind I knew I had had the error before, but couldn’t remember what it was.
The problem was partly caused by me deleting some paths that were Delphi related and had 11 in them, forgetting that this meant XE4 not 2007. XE6 no longer ships a C dll that is shipped with XE4 but is part of D2007 - hence the missing dll.
Regards
Sue
Glad to hear it’s solved.