This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Program runs in IDE, will not run from a shortcut

edited August 2015 in LMD-Tools
I am using C++ Builder XE7 and XE8.  Do I need to have LMD Tools installed into 2 separate folders? I assume I do.  So currently I have

C:\LMD2015   (for XE7)
C:\LMD2015_XE8  (for XE8)

Everything for XE7 works fine.  I have a project I built with XE8 and when I run it from a shortcut I get "lmdrtrtlx220.bpl is missing from your computer".  The program runs fine from the IDE. The file is located in c:\lmd2015_xe8\packages.  My path does include this folder.  If I open a Command prompt, change folder to c:\lmd2015_xe8\packages, then tell it the full path to my .EXE then the executable runs fine. 

So a few questions: Is there a way to have the bpl linked into the application? I don't like including external files.  I tried everything I could think of in the linking options.

Why can't it find the BPL if it is listed in my path statement?

============================================================================================================
Note: I took my path statement and put it in a .bat file, and then ran the .bat file.  My path then showed the c:\lmd2015_xe8\packages.  But then I put a different .bat file in that folder and tried to run it from a different folder, and Windows said the file could not be found.  So the PATH statement was actually not working as expected.  I rebooted, checked the path statement and now it finds those files that are in my path.  So it looks like a bug in Windows, probably won't allow a really long path to be set in a batch file or something.  I'd still prefer these files to be embedded into the .exe


Comments

  • >>So it looks like a bug in Windows, probably won't allow a really long path to be set in a batch file or something.<<
    Not quite - it is an actually not well known limitation of Windows Environment variables (read for example http://blogs.msdn.com/b/oldnewthing/archive/2010/02/03/9957320.aspx).
    It is always a good idea to remove needless path settings (e.g. when you update your EMBT IDEs) to avoid such problems.

    >>I'd still prefer these files to be embedded into the .exe<<
    No problem - check
    http://docwiki.embarcadero.com/RADStudio/XE8/en/Runtime_Packages_(Options)
    Actually this is the default option (false, code of bpls are embedded to your EXE), but maybe you enabled it or LMD packages are not included in the list of runtime packages.
  • Thanks for the detailed answer, that helps a lot!  I shorted up my path quite a bit, I don't need all the XE7 and XE8 64 bit path info!


Sign In or Register to comment.