application hangs with 2.7

Daniel Atallah datallah at pidgin.im
Tue Jun 29 16:40:20 EDT 2010


I just created a Windows XP VM so that i could get this script to work
right there:

I haven't yet spent the time to make something that will work right on
Windows 7 / Vista yet, but if you put the following (between ****
START **** and **** END ****) in your pidgin.bat, hopefully the debug
logging should actually work.


**** START ****
SET ProgramFiles(x86)
IF %ERRORLEVEL% == 0 SET PIDGIN_INST_DIR=%ProgramFiles(x86)%\Pidgin
IF NOT %ERRORLEVEL% == 0 SET PIDGIN_INST_DIR=%ProgramFiles%\Pidgin

REM SET PIDGIN_INST_DIR=Z:\YourCustomPidginInstallationDirectory

SET LOCALAPPDATA
IF %ERRORLEVEL% == 0 SET DEBUG_DIR=%LOCALAPPDATA%\.purple\debuglogs
IF NOT %ERRORLEVEL% == 0 SET DEBUG_DIR=%APPDATA%\.purple\debuglogs

REM make sure the debug directory exists
IF NOT EXIST "%DEBUG_DIR%" mkdir "%DEBUG_DIR%"

REM get the date and time
SET dt=%date%_%time%

REM replace the / with - (may or may not exist depending on your date format)
SET dt=%dt:/=-%

REM replace the ' ' with 0 (may or may not exist depending on your date format)
SET dt=%dt: =0%

REM replace the : with . (may or may not exist depending on your date format)
SET dt=%dt::=.%

REM build the logfile name
SET logfile=%DEBUG_DIR%\%dt%.log

REM remove the space that gets created for some reason...
rem SET logfile=%logfile: =%

REM quote logfile
SET logfile="%logfile%"

REM write a nice header
ECHO -------------------------------------------------  > %logfile%
ECHO Pidgin Debug Log For %date% %time%                >> %logfile%
ECHO ------------------------------------------------- >> %logfile%

"%PIDGIN_INST_DIR%\pidgin.exe" -d 2>&1 >> %logfile%
**** END ****

-D


On Tue, Jun 29, 2010 at 15:32, Chuck Braden <jcbraden at ag.tamu.edu> wrote:
>  Full results with exit removed.
>
> C:\Documents and Settings\JCBraden\My Documents>pidgin
>
> C:\Documents and Settings\JCBraden\My Documents>SET ProgramFiles(x86)
> Environment variable ProgramFiles(x86) not defined
>
> C:\Documents and Settings\JCBraden\My Documents>IF 1 == 0 SET PIDGIN_INST_DIR=\P
> idgin
>
> C:\Documents and Settings\JCBraden\My Documents>IF NOT 1 == 0 SET PIDGIN_INST_DI
> R=C:\Program Files\Pidgin
>
> C:\Documents and Settings\JCBraden\My Documents>REM SET PIDGIN_INST_DIR=Z:\YourC
> ustomPidginInstallationDirectory
>
> C:\Documents and Settings\JCBraden\My Documents>SET LOCALAPPDATA
> Environment variable LOCALAPPDATA not defined
>
> C:\Documents and Settings\JCBraden\My Documents>IF 1 == 0 SET DEBUG_DIR=\.purple
> \debuglogs
>
> C:\Documents and Settings\JCBraden\My Documents>IF NOT 1 == 0 SET DEBUG_DIR=C:\D
> ocuments and Settings\JCBraden\Application Data\.purple\debuglogs
>
> C:\Documents and Settings\JCBraden\My Documents>REM make sure the debug director
> y exists
>
> C:\Documents and Settings\JCBraden\My Documents>IF NOT EXIST "C:\Documents and S
> ettings\JCBraden\Application Data\.purple\debuglogs" mkdir "C:\Documents and Set
> tings\JCBraden\Application Data\.purple\debuglogs"
>
> C:\Documents and Settings\JCBraden\My Documents>REM get the date and time
>
> C:\Documents and Settings\JCBraden\My Documents>SET dt=Tue 06/29/2010_14:28:17.7
> 6
>
> C:\Documents and Settings\JCBraden\My Documents>REM replace the / with - (may or
>  may not exist depending on your date format)
>
> C:\Documents and Settings\JCBraden\My Documents>SET dt=Tue 06-29-2010_14:28:17.7
> 6
>
> C:\Documents and Settings\JCBraden\My Documents>REM replace the ' ' with 0 (may
> or may not exist depending on your date format)
>
> C:\Documents and Settings\JCBraden\My Documents>SET dt=Tue006-29-2010_14:28:17.7
> 6
>
> C:\Documents and Settings\JCBraden\My Documents>REM replace the : with . (may or
>  may not exist depending on your date format)
>
> C:\Documents and Settings\JCBraden\My Documents>SET dt=Tue006-29-2010_14.28.17.7
> 6
>
> C:\Documents and Settings\JCBraden\My Documents>REM build the logfile name
>
> C:\Documents and Settings\JCBraden\My Documents>SET logfile=C:\Documents and Set
> tings\JCBraden\Application Data\.purple\debuglogs\Tue006-29-2010_14.28.17.76 .lo
> g
>
> C:\Documents and Settings\JCBraden\My Documents>REM remove the space that gets c
> reated for some reason...
>
> C:\Documents and Settings\JCBraden\My Documents>SET logfile=C:\DocumentsandSetti
> ngs\JCBraden\ApplicationData\.purple\debuglogs\Tue006-29-2010_14.28.17.76.log
>
> C:\Documents and Settings\JCBraden\My Documents>REM quote logfile
>
> C:\Documents and Settings\JCBraden\My Documents>SET logfile="C:\DocumentsandSett
> ings\JCBraden\ApplicationData\.purple\debuglogs\Tue006-29-2010_14.28.17.76.log"
>
>
> C:\Documents and Settings\JCBraden\My Documents>REM write a nice header
>
> C:\Documents and Settings\JCBraden\My Documents>ECHO ---------------------------
> ----------------------   1>"C:\DocumentsandSettings\JCBraden\ApplicationData\.pu
> rple\debuglogs\Tue006-29-2010_14.28.17.76.log"
> The system cannot find the path specified.
>
> C:\Documents and Settings\JCBraden\My Documents>ECHO Pidgin Debug Log For Tue 06
> /29/2010 14:28:17.78                 1>>"C:\DocumentsandSettings\JCBraden\Applic
> ationData\.purple\debuglogs\Tue006-29-2010_14.28.17.76.log"
> The system cannot find the path specified.
>
> C:\Documents and Settings\JCBraden\My Documents>ECHO ---------------------------
> ----------------------  1>>"C:\DocumentsandSettings\JCBraden\ApplicationData\.pu
> rple\debuglogs\Tue006-29-2010_14.28.17.76.log"
> The system cannot find the path specified.
>
> C:\Documents and Settings\JCBraden\My Documents>"C:\Program Files\Pidgin\pidgin.
> exe" -d  2>&1 1>>"C:\DocumentsandSettings\JCBraden\ApplicationData\.purple\debug
> logs\Tue006-29-2010_14.28.17.76.log"
> The system cannot find the path specified.
>
>
>
>>>> Daniel Atallah <datallah at pidgin.im> 6/25/2010 10:27 AM >>>
> On Fri, Jun 25, 2010 at 10:55, Chuck Braden <jcbraden at ag.tamu.edu> wrote:
>> The VBS, bat and a shortcut for the executable are all in the mydocuments directory for ID xyzid
>>
>> C:\Documents and Settings\xyzid\My Documents>ECHO ---------------------------
>> ----------------------   1>"\.purple\debuglogs\Fri006-25-2010_09.22.38.65.log"
>>
>> C:\Documents and Settings\xyzid\My Documents>ECHO Pidgin Debug Log For Fri 06
>> /25/2010  9:22:38.65                 1>>"\.purple\debuglogs\Fri006-25-2010_09.22
>> .38.65.log"
>>
>> C:\Documents and Settings\xyzid\My Documents>ECHO ---------------------------
>> ----------------------  1>>"\.purple\debuglogs\Fri006-25-2010_09.22.38.65.log"
>>
>> C:\Documents and Settings\xyzid\My Documents>"\\pidgin.exe" -d  2>&1 1>>"\.pu
>> rple\debuglogs\Fri006-25-2010_09.22.38.65.log"
>> The filename, directory name, or volume label syntax is incorrect.
>
> That's odd; parts of the batch file (finding the Pidgin installation
> directory and the configuration directory) are certainly not working
> the way that they should be.
>
> Which version of Windows are you using?
>
> I've updated the pidgin.bat text at
> http://developer.pidgin.im/wiki/TipsForBugReports#PreemptiveDebugLogging
>  - hopefully that should work better for you now.
>
> -D
>
> _______________________________________________
> Support at pidgin.im mailing list
> Want to unsubscribe?  Use this link:
> http://pidgin.im/cgi-bin/mailman/listinfo/support
>




More information about the Support mailing list