I has been searched the sources of LCL for probably wrong code and compare it with WinAPI examples (MSDN). The result is: This error appends on All applications that uses FileDialogs (Not only Lazarus applications, but like a Notepad, e.t.c.), This error is External and (checked by OllyDebug) is a part of RPC service, this error handled by RPC service too. In this reason exception raises only while debug process, not runtime. Try to make file, run it without debugger and see the result, all work Ok!
Yes, i can create debug report. What must be included in it?