Kevin McFarlane
July 6th, 1999, 04:42 AM
I’m trying to profile a dll in VC++ 6 where the .exe file is MS Word. My batch file is as follows:
REM - prepare self-profiling file for function timing - produces .pbi file
PREP /OM /FT d:\development\llodma\debug\llodma.dll
COPY d:\development\llodma\debug\llodma._ll d:\development\llodma\debug\llodma.dll
REM - read above .pbi file and produce .pbo file
PROFILE /I d:\development\llodma\debug\llodma.dll /O d:\development\llodma\debug\llodma.dll "C:\Program Files\MSOffice\Office\WINWORD.EXE"
REM - produce .pbt file
PREP /M d:\development\llodma\debug\llodma.dll
REM - sort results by function timing
PLIST /ST d:\development\llodma\debug\llodma.dll > d:\development\llodma\debug\results.txt
However, when I run it I get the following errors after the PROFILE and second PREP commands.
PROFILE /I "d:\development\llodma\debug\llodma.dll" /O d:\development\llodma\debug\llodma.dll" "C:\
Program Files\MSOffice\Office\WINWORD.EXE"
PROFILE : fatal error PRF1011: cannot open file d:\development\llodma\debug\llodma.dll
PREP /M "d:\development\llodma\debug\llodma.dll"
PREP : fatal error PRF1301: file d:\development\llodma\debug\llodma.dll has an incorrect (old) signature.
Any ideas anyone? I’ve got profiling enabled in the debugger and I’ve also done a complete rebuild.
Also, why is the Profiler dialog box option disabled on the Build menu?
Kevin McFarlane
REM - prepare self-profiling file for function timing - produces .pbi file
PREP /OM /FT d:\development\llodma\debug\llodma.dll
COPY d:\development\llodma\debug\llodma._ll d:\development\llodma\debug\llodma.dll
REM - read above .pbi file and produce .pbo file
PROFILE /I d:\development\llodma\debug\llodma.dll /O d:\development\llodma\debug\llodma.dll "C:\Program Files\MSOffice\Office\WINWORD.EXE"
REM - produce .pbt file
PREP /M d:\development\llodma\debug\llodma.dll
REM - sort results by function timing
PLIST /ST d:\development\llodma\debug\llodma.dll > d:\development\llodma\debug\results.txt
However, when I run it I get the following errors after the PROFILE and second PREP commands.
PROFILE /I "d:\development\llodma\debug\llodma.dll" /O d:\development\llodma\debug\llodma.dll" "C:\
Program Files\MSOffice\Office\WINWORD.EXE"
PROFILE : fatal error PRF1011: cannot open file d:\development\llodma\debug\llodma.dll
PREP /M "d:\development\llodma\debug\llodma.dll"
PREP : fatal error PRF1301: file d:\development\llodma\debug\llodma.dll has an incorrect (old) signature.
Any ideas anyone? I’ve got profiling enabled in the debugger and I’ve also done a complete rebuild.
Also, why is the Profiler dialog box option disabled on the Build menu?
Kevin McFarlane