How to detect that SDL.dll not exist? lazarus / 31-LCL ---------------------------------------------------------------------- Milsa · 2015-02-12 19:45 I have GUI application with SDL. I want to detect presence SDL.dll in application directory. If my application uses SDL and SDL.dll is not in application directory then application crashes. I tried to create unit to detect presence this file and I inserted this unit before the first unit in LPR file. Without result. Can you help me? ---------------------------------------------------------------------- Bart · 2015-02-12 21:12 Do not statically link, but use dynamic linking (loadlibrary). Bart ---------------------------------------------------------------------- Milsa · 2015-02-12 21:22 I don't understand. I use standard Lazarus unit named sdl with external SDL.dll. ---------------------------------------------------------------------- Milsa · 2015-02-14 18:06 Is any option with standard Lazarus unites? ---------------------------------------------------------------------- Carver413 · 2015-02-14 18:29 I would suggest the bare game engine which can be found here, it uses sdl2 and many nice features that could be useful for any kind of app http://www.getlazarus.org/forums/