|
|
Home » U++ Library support » U++ Core » U++ program whose filename has Chinese word leaves logs after exit
U++ program whose filename has Chinese word leaves logs after exit [message #23223] |
Thu, 01 October 2009 04:22  |
LeiMing
Messages: 21 Registered: September 2009 Location: China
|
Promising Member |

|
|
Hello.
I built a program with U++ and rename it with filename which has Chinese word.
After the program exits I found some log files left.
In the log files I knew that it's because U++ library can't remove it successfully.
I try to find the reason why it happens and I found the problem is that it fails to call DeleteFileW function.
This is the screen shot of OllyDBG. In the parameter of DeleteFileW the Chinese words become a series of "?".

I though it's a bug. Would you please have a look at it?
And then, even if I knew the log files help to find bugs.
Is there anyway I can disable this feature of U++?
Because sometimes the operation of creating new files and deleting files is not expected.
Thanks.
Regards,
LeiMing
Platform:
Windows Vista 32bit Home Basic SP1 Simpified Chinese
Ultimate++ 1592
GCC (2 versions tested) :
1
Target: mingw32
Configured with: ../gcc-4.4.0/configure --prefix=/mingw --build=mingw32 --enable
-languages=c,ada,c++,fortran,objc,obj-c++ --disable-nls --disable-win32-registry
--disable-werror --enable-threads --disable-symvers --enable-cxx-flags='-fno-fu
nction-sections -fno-data-sections' --enable-fully-dynamic-string --enable-libgo
mp --enable-version-specific-runtime-libs --enable-sjlj-exceptions --with-pkgver
sion='TDM-1 mingw32' --with-bugurl=http://www.tdragon.net/recentgcc/bugs.php
Thread model: win32
gcc version 4.4.0 (TDM-1 mingw32)
2
Using built-in specs.
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as -
-host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shar
ed --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --ena
ble-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-sync
hronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
-
Attachment: pic1.jpg
(Size: 222.18KB, Downloaded 669 times)
|
|
|
Re: U++ program whose filename has Chinese word leaves logs after exit [message #23224 is a reply to message #23223] |
Thu, 01 October 2009 05:36   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
LeiMing wrote on Wed, 30 September 2009 22:22 | Hello.
I built a program with U++ and rename it with filename which has Chinese word.
After the program exits I found some log files left.
In the log files I knew that it's because U++ library can't remove it successfully.
I try to find the reason why it happens and I found the problem is that it fails to call DeleteFileW function.
This is the screen shot of OllyDBG. In the parameter of DeleteFileW the Chinese words become a series of "?".

I though it's a bug. Would you please have a look at it?
And then, even if I knew the log files help to find bugs.
Is there anyway I can disable this feature of U++?
Because sometimes the operation of creating new files and deleting files is not expected.
Thanks.
Regards,
LeiMing
Platform:
Windows Vista 32bit Home Basic SP1 Simpified Chinese
Ultimate++ 1592
GCC (2 versions tested) :
1
Target: mingw32
Configured with: ../gcc-4.4.0/configure --prefix=/mingw --build=mingw32 --enable
-languages=c,ada,c++,fortran,objc,obj-c++ --disable-nls --disable-win32-registry
--disable-werror --enable-threads --disable-symvers --enable-cxx-flags='-fno-fu
nction-sections -fno-data-sections' --enable-fully-dynamic-string --enable-libgo
mp --enable-version-specific-runtime-libs --enable-sjlj-exceptions --with-pkgver
sion='TDM-1 mingw32' --with-bugurl=http://www.tdragon.net/recentgcc/bugs.php
Thread model: win32
gcc version 4.4.0 (TDM-1 mingw32)
2
Using built-in specs.
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as -
-host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shar
ed --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --ena
ble-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-sync
hronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
|
What is in the .log? What is the filename of the these logs?
Normally, .log is not created in non-debug mode. Are you in compiling in Optimal?
Well, normally, .log is not created in debug mode either, unless you have some LOGs or DUMPs or something in your code. But sometimes some debug logs in u++ are forgotten (a bug).
Mirek
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun May 04 01:28:46 CEST 2025
Total time taken to generate the page: 0.00635 seconds
|
|
|