Is this a bug??? lazarus / 8-Other ---------------------------------------------------------------------- Anonymous · 2005-12-29 20:42 Hi, I have an app which uses : Quoteuses   Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Menus,   ExtCtrls, Buttons, unit2, unit3, ComCtrls, StdCtrls, Spin, inifiles, Grids, FileUtil; Whenever I add Windows to the above list, even if I don't use anything from it, the debugger hangs here : QuoteCopyFile(ExtractFilePath(Application.Exename)+DirectorySeparator+ 'images'+DirectorySeparator+'a.gif',extractfilepath(Savedialoghtml.Fil eName)+'images2'+DirectorySeparator+'a.gif'); If I don't declare windows in the uses, everything runs fine. Is this a bug or shouldn't I use CopyFile if I use Windows? (Newbie I am) Any help would be greatly appreciated... ---------------------------------------------------------------------- felipemdc · 2005-12-30 14:49 To make sure you are calling the function from a specific unit, and not from anothor, when both declare a function, do: FileUtil.CopyFile(arguments); Try this. Maybe the debugger doesn't like something in the CopyFile API function .... this can help us track where the problem is. ---------------------------------------------------------------------- Anonymous · 2005-12-30 16:34 Thanks. It solved the problem. I don't know which unit had a CopyFile included but that's working now...