Jeff, >I'm using ExecuteFile from fmxutils to launch documents that may be >of any type (eg .doc, .jpg or even html links) by simply > >putting the full path in parameter 1 > >eg > > ExecuteFile(s,'','.',0); > >where s may be something like 'm:\project_library\example.doc' > >ie I'm trying to do the program equivalent of double-clicking on the >file in Windows explorer. > >This always works but the problem is that sometimes, although the >document displays OK, the calling program closes (or, if run > >from the IDE, causes an access violation). > >I suspect that the length of the filename is an issue but I can't >prove it. > >Does anyone know what the problem is?
I am not at all familiar with fmxutils, but ExecuteFile sounds like a simple wrapper around ShellExecute in the Windows API. Try using ShellExecute yourself and see if you still have the problem. ShellExecute allows opening documents by file file association. Glenn Lawler www.incodesystems.com

