Page 1 of 1
CurDir() bug
Posted: Sat Oct 29, 2005 6:30 pm
by Enrico Maria Giordano
The following sample shows spurious characters if run from the root directory (MyDevice):
#include "Fwce.ch"
FUNCTION MAIN()
MSGALERT( "*" + CURDIR() + "*" )
RETURN NIL
The problem is reproduceable with the device emulator.
EMG
Posted: Sat Oct 29, 2005 8:06 pm
by Antonio Linares
Enrico,
Strange. I have just tested it here and see how it looks:

Also, if I copy the EXE to the root directory I get "**", which it is ok.
Posted: Sat Oct 29, 2005 8:41 pm
by Enrico Maria Giordano
Try to copy the EXE in MyDevice directory.
EMG
Posted: Sat Oct 29, 2005 8:47 pm
by Antonio Linares
Enrico,
This is what I get:

Posted: Sat Oct 29, 2005 8:53 pm
by Enrico Maria Giordano
Can you send me your EXE to test it here?
EMG
Posted: Sat Oct 29, 2005 9:03 pm
by Antonio Linares
Enrico,
We have just uploaded a new FWPPC build that may fix what you describe. Please test it again, thanks!
Posted: Sat Oct 29, 2005 9:13 pm
by Enrico Maria Giordano
Unfortunately the problem is still here. I've just sent you my EXE and a screenshot of the problem to your private email.
Let me know.
EMG
Posted: Sat Oct 29, 2005 9:45 pm
by Antonio Linares
Enrico,
Your sample fails here. Mine is ok. I have sent you my test.
Are you using standard samples\buildce.bat or do you have a modified one ?
Thanks!
Posted: Sat Oct 29, 2005 10:21 pm
by Enrico Maria Giordano
Your test works fine here but I discovered something very strange. I simply made a copy of my PRG and recompiled it. The new EXE works fine while the old EXE shows the bug!
And yes, I tried using the standard FWPPC batch with identical results.
EMG
Posted: Sat Oct 29, 2005 11:58 pm
by Antonio Linares
Enrico,
It looks as we still had a little bug in GetCurrentDirectory() implementation. We are going to upload a new build.
I appreciate your feedback. Thanks,