Subject: | Warning shown during install of package and Intermittent Problem of SelTreeViewItemPath, GetTreeViewSelPath, SelTabItemText |
Date: | Thu, 19 Nov 2020 07:23:42 +0000 |
To: | "bug-Win32-GuiTest [...] rt.cpan.org" <bug-Win32-GuiTest [...] rt.cpan.org> |
From: | Glenn-Rey Arcay <glenn-rey.arcay [...] teradyne.com> |
Hi Sir,
Good day!
I recently switch to Strawberry Perl 5.12.3.0 from ActivePerl 5.12.4.1205.
And unlike ActivePerl, Strawberry doesn't have the PerlPackageManager that easily install the Perl Package.
I was using dmake to install your Package. Unfortunately, I had encounter some warning during 'dmake' as shown below:
cp lib/Win32/GuiTest/GuiTest.pc blib\lib\Win32\GuiTest\GuiTest.pc
cp lib/Win32/GuiTest/Examples.pm blib\lib\Win32\GuiTest\Examples.pm
cp lib/Win32/GuiTest.pm blib\lib\Win32\GuiTest.pm
cp lib/Win32/GuiTest/Cmd.pm blib\lib\Win32\GuiTest\Cmd.pm
C:\strawberry\perl\bin\perl.exe -IC:\strawberry\perl\lib -IC:\strawberry\perl\lib C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap perlobject.map -typemap typemap GuiTest.xs >xstmp.c && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- xstmp.c GuiTest.cpp
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" "-IC:\strawberry\perl\lib\CORE" GuiTest.cpp
GuiTest.xs: In function 'int GetLVItemText(HWND__*, int, int, char*)':
GuiTest.xs:346: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL SelLVItem(HWND__*, int, WINBOOL)':
GuiTest.xs:361: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL SelLVItemText(HWND__*, char*, WINBOOL)':
GuiTest.xs:371: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL IsLVItemSel(HWND__*, char*)':
GuiTest.xs:382: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL SelTVItemPath(HWND__*, char*)':
GuiTest.xs:393: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'int GetTVSelPath(HWND__*, char*)':
GuiTest.xs:403: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'int GetTCItemText(HWND__*, int, char*)':
GuiTest.xs:414: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL SelTCItem(HWND__*, int)':
GuiTest.xs:427: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL SelTCItemText(HWND__*, char*)':
GuiTest.xs:436: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'WINBOOL IsTCItemSel(HWND__*, char*)':
GuiTest.xs:447: warning: deprecated conversion from string constant to 'char*'
GuiTest.xs: In function 'HWND__* PopupHandleGet(HWND__*, int, int, int)':
GuiTest.xs:656: warning: deprecated conversion from string constant to 'char*'
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" "-IC:\strawberry\perl\lib\CORE" DibSect.cpp
Running Mkbootstrap for Win32::GuiTest ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 GuiTest.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Win32::GuiTest\", 'DLBASE' => 'GuiTest', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def GuiTest.def --output-exp dll.exp
g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" GuiTest.o DibSect.o -Wl,--image-base,0x22060000 C:\strawberry\perl\lib\CORE\libperl512.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
dlltool --def GuiTest.def --base-file dll.base --output-exp dll.exp
g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" GuiTest.o DibSect.o -Wl,--image-base,0x22060000 C:\strawberry\perl\lib\CORE\libperl512.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch\auto\Win32\GuiTest\GuiTest.dll
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "cp" -- GuiTest.bs blib\arch\auto\Win32\GuiTest\GuiTest.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch\auto\Win32\GuiTest\GuiTest.bs
May I ask if these warnings are acceptable or should I be concern about it?
I am having intermittent problems on subroutines "SelTreeViewItemPath, GetTreeViewSelPath, SelTabItemText", I am thinking if the warnings I saw during install cause this.
The intermittent problem was sometimes my script hangs at these subroutines. Intermittent, meaning sometimes it works and sometimes it doesn't. When it works, all of our test suites/cases passes and if doesn't everything fails.
The intermittent problem will just suddenly happen. We could not replicate it as we would want to. And if it does appear, all the passing suites/cases will then fail.
I am in understanding that these subroutines uses the Win32 Command "SendMessage". Could there be problem with the software that I am trying to communite/automate to? Like it doesn't respond to the "sendmessage"
One time I tried editing the Guitest.pm and change all the "SendMessage" to "PostMessage" under the SelTreeViewItemPath subroutine. It did NOT hang as usual but it did NOT select the specified item. Now I put back the "SendMessage" replacing the "PostMessage" and then my script suddenly works. HOWEVER, at the point where "GetTreeViewSelPath" is called, the script then hangs.
I did not observed this when I was using the Active perl.
I am very much willing to debug and solve it. But I would like to ask your help on alteast giving me the right direction on where to start. Your help will be very much appreciated.
Thank You,
Glenn Rey Arcay
Message body is not shown because it is too large.