<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>Hi,<BR> I'm getting this error running a system under
WINE:<BR><BR>0806faa8:Call
kernel32.CreateFileA(405b63ec<BR>"C:\\WIN\\IY032097.DAT",80000000,00000003,00000000,00000003,08000001,0000000<BR>0)
ret=6002912b<BR>0806faa8:trace:file:CreateFileA C:\WIN\IY032097.DAT
GENERIC_READ<BR>FILE_SHARE_READ FILE_SHARE_WRITE
OPEN_EXISTING<BR>0806faa8:trace:dosfs:DOSFS_GetFullName C:\WIN\IY032097.DAT
(last=1)<BR>0806faa8:trace:string:lstrcpynA (0x405b5a4c, "/mnt/c",
1024)<BR>0806faa8:trace:dosfs:DOSFS_FindUnixName
/mnt/c,WIN\IY032097.DAT<BR>0806faa8:trace:heap:RtlAllocateHeap
(40360000,00000002,00010bfc):
returning<BR>403a9e6c<BR>0806faa8:trace:heap:RtlAllocateHeap
(40360000,00000002,00000018):
returning<BR>403a7d10<BR>0806faa8:trace:dosfs:DOSFS_FindUnixName
(/mnt/c,WIN\IY032097.DAT) -> win<BR>(WIN)<BR>0806faa8:trace:heap:RtlFreeHeap
(40360000,00000002,403a7d10): returning TRUE<BR>0806faa8:trace:heap:RtlFreeHeap
(40360000,00000002,403a9e6c): returning
TRUE<BR>0806faa8:trace:dosfs:DOSFS_FindUnixName
/mnt/c/win,IY032097.DAT<BR>0806faa8:trace:heap:RtlAllocateHeap
(40360000,00000002,00010bfc):
returning<BR>403a9e6c<BR>0806faa8:trace:heap:RtlAllocateHeap
(40360000,00000002,00000018):
returning<BR>403a7d10<BR>0806faa8:warn:dosfs:DOSFS_FindUnixName 'IY032097.DAT'
not found in<BR>'/mnt/c/win'<BR>0806faa8:trace:heap:RtlFreeHeap
(40360000,00000002,403a7d10): returning TRUE<BR>0806faa8:trace:heap:RtlFreeHeap
(40360000,00000002,403a9e6c): returning TRUE<BR>0806faa8:warn:file:CreateFileA
Unable to get full filename from<BR>'C:\WIN\IY032097.DAT' (GLE
2)<BR>.........<BR>08079370:RET MFRTS32.1199: _mFfindp() retval = 409c5e90
ret=0042b3b7<BR>08079370:CALL MFRTS32.1425: mF_fh_set_fe_stat(00000000)
ret=0042b3c8<BR>08079370:RET MFRTS32.1425: mF_fh_set_fe_stat() retval =
00000000<BR>ret=0042b3c8<BR>08079370:RET MFRTS32.1202: _mFg2star_fast()
retval = 00000000 ret=0042889a<BR>08079370:RET MFRTS32.1400: ixfile()
retval = 00000000 ret=60025e45<BR>08079370:RET MFRTS32.145: EXTFH() retval
= 00000000 ret=0044095a<BR>08079370:Call user32.MessageBoxA(00000000,004472de
"External Path string<BR><UPCW56-DEV-DATA-DIR> not found. File
IYF029.
"...,004471c8<BR>"IYP139
",00002010) ret=00404c01<BR>08079370:warn:dialog:MessageBoxA
Messagebox<BR>08079370:trace:resource:RES_FindResource2 (4067a000,
00000005,<BR>40718554"MSGBOX", 0000, A,
PE)<BR>08079370:trace:heap:RtlAllocateHeap (40360000,00000002,00000018):
returning<BR>403af734<BR>08079370:trace:heap:RtlFreeHeap
(40360000,00000002,403af734): returning
TRUE<BR>08079370:trace:resource:RES_LoadResource (4067a000, 407234f8,
PE)<BR>.........<BR><BR><BR>Seems like the file isn't being created. (Uwe Bonnes
helped me with this).<BR>But we disagree what part of WINE (or outside WINE) is
wrong.<BR>The first part of the log shows a CreateFileA that is unable to create
a<BR>file.<BR>This API works fine when the file is in the same dir as the
application (had<BR>tested it).<BR>The second part of the log shows the last
screen I get after start the<BR>program (MessageBox API).<BR>MFRTS32 is a .dll
the program calls. We thougth of there too.<BR>But this program works under
Windows. Everything is in the path. Both<BR>wine.conf and Linux.<BR><BR>I could
reproduce the error in Win2k this way:<BR><BR>Created a set of programs (L1, L2
and L3) that will run one after one with<BR>conditions. If the field in L1 is
fulfilled then we jump directly to L3.<BR>Else We fulfill the field in L2 and
then jump to L3.<BR><BR>In details: L1 would creates a file with a name if the
filed is fulfilled an<BR>L3<BR>NEEDS to know that name.<BR>If we had to run L2
then the file will be with another name<BR>and L3 will get data from that
file.<BR>But the file ins't created in neither of the cases. So a screen shows
up:<BR>"External path string <G-PATH> not found. File
FILE-LINUX."<BR><BR>That message is the same I get under WINE:<BR>"External path
string <UPCW56-DEV-DATA-DIR> not found. File IYF029."<BR>Refers to a file
(IYF029), that exists (located in the ./data dir)<BR>but was not filled with
data it need to work, or incorretly filled.<BR>Both G-PATH and
UPCW56-DEV-DATA-DIR are variables of a file that has a<BR>number<BR>of them
inside.<BR><BR><BR>As here we use APIs I'll list 2 of them that are used within
the function<BR>and<BR>their definiton, took from
MSDN:<BR><BR>CreateProcess<BR><BR>CreateProcess(<BR>LPCWSTR
lpszImageName,<BR>LPCWSTR lpszCmdLine,<BR>LPSECURITY_ATTRIBUTES
lpsaProcess,<BR>LPSECURITY_ATTRIBUTES lpsaThread,<BR>BOOL
fInheritHandles,<BR>DWORD fdwCreate,<BR>LPVOID lpvEnvironment,<BR>LPWSTR
lpszCurDir,<BR>LPSTARTUPINFOW lpsiStartInfo,<BR>LPPROCESS_INFORMATION
lppiProcInfo);<BR><BR>........<BR><BR>StartupInfo.dwFillAttribute<BR><BR>dwFillAttribute<BR>Ignored
unless dwFlags specifies STARTF_USEFILLATTRIBUTE.<BR>Specifies the initial text
and background colors if a new console window is<BR>created in a console
application. These values are ignored in GUI<BR>applications.<BR>This value can
be any combination of the following values:<BR>FOREGROUND_BLUE,
FOREGROUND_GREEN, FOREGROUND_RED, FOREGROUND_INTENSITY,<BR>BACKGROUND_BLUE,
BACKGROUND_GREEN, BACKGROUND_RED, and BACKGROUND_INTENSITY.<BR>For example, the
following combination of values produces red text on
a<BR>white<BR>background:<BR><BR>FOREGROUND_RED| BACKGROUND_RED|
BACKGROUND_GREEN| BACKGROUND_BLUE<BR><BR>OBS.: We do NOT use this to send this
kind of attributes.<BR> We DO send more data as we
saw that it handles well.<BR> We also DO use this
in gui applications.<BR><BR>typedef struct _STARTUPINFO {<BR>
DWORD cb;<BR> LPTSTR
lpReserved;<BR> LPTSTR lpDesktop;<BR>
LPTSTR lpTitle;<BR> DWORD
dwX;<BR> DWORD dwY;<BR>
DWORD dwXSize;<BR> DWORD
dwYSize;<BR> DWORD
dwXCountChars;<BR> DWORD
dwYCountChars;<BR> DWORD
dwFillAttribute;<BR> DWORD
dwFlags;<BR> WORD
wShowWindow;<BR> WORD
cbReserved2;<BR> LPBYTE
lpReserved2;<BR> HANDLE hStdInput;<BR>
HANDLE hStdOutput;<BR> HANDLE hStdError;<BR>}
STARTUPINFO, *LPSTARTUPINFO;<BR>...............<BR>CreateFile<BR><BR><BR>HANDLE
CreateFile(<BR> LPCTSTR
lpFileName,
// file name<BR> DWORD
dwDesiredAccess,
// access mode<BR> DWORD
dwShareMode,
// share mode<BR> LPSECURITY_ATTRIBUTES lpSecurityAttributes, //
SD<BR> DWORD
dwCreationDisposition,
// how to create<BR> DWORD
dwFlagsAndAttributes,
// file attributes<BR> HANDLE
hTemplateFile
// handle to template file<BR>);<BR><BR>..................<BR><BR>Any
thoughs?<BR><BR>Thanks,<BR>Ricardo.</BODY></HTML>