cnhup / asmprofiler

Automatically exported from code.google.com/p/asmprofiler
0 stars 0 forks source link

Compilation error with D2007 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get source coe from SVN at revision 149
2. Open ProfilerGroup.bpg in Delphi2007 (latest patch)
3. Build all projects

What is the expected output? What do you see instead?
It does not build succesfully, 7 errors saying "Undeclared 
identifier 'PeMapImgNtHeaders'" in JclDebug.pas

What version of the product are you using? On what operating system?
Delphi2007 for Win32, AsmProfiler from SVN at revision 149

Please provide any additional information below.
What do I need to compile ?

Original issue reported on code.google.com by trident.job on 20 Nov 2008 at 9:55

GoogleCodeExporter commented 9 years ago
I've found this : see at bottom of the document.
http://delphi.newswhat.com/geoxml/forumhistorythread?
groupname=jedi.jcl&messageid=eqd2tt$lho$1@news.talkto.net

Original comment by trident.job on 20 Nov 2008 at 9:56

GoogleCodeExporter commented 9 years ago
In JCL sources, I've found these lines :

{$IFDEF KEEP_DEPRECATED}
function PeMapImgNtHeaders(const BaseAddress: Pointer): PImageNtHeaders;
{$ENDIF KEEP_DEPRECATED}

I should (re)compile jcl with the KEEP_DEPRECATED option right ?
Maybe you should write it somewhere, in your code maybe, near the function 
using 
PeMapImgNtHeaders!

Original comment by trident.job on 20 Nov 2008 at 10:01

GoogleCodeExporter commented 9 years ago
With the directive enabled in Jcl install, the compilcation can continue.

BUT, another error is pushing, always in 
D:\Projets\Imported\asmprofiler\ProfTestApp\ProfTestApp.dproj

[DCC Error] Unit1.pas(8): F1026 File not found: 'VirtualTrees.dcu'

Original comment by trident.job on 20 Nov 2008 at 10:17

GoogleCodeExporter commented 9 years ago
Sorry for my late reaction: I see this issue right now! No email notification 
from
Google...

Anyway, you need to install Virtual Treeview:
http://www.delphi-gems.com/
http://www.soft-gems.net/index.php?option=com_content&task=view&id=12&Itemid=33
http://www.soft-gems.net/supplement/download.php?ID=28

This dependency is also listed in the wiki:
http://code.google.com/p/asmprofiler/wiki/Dependencies

Good luck!

Original comment by andre.mussche on 14 Jan 2009 at 2:27

GoogleCodeExporter commented 9 years ago
By the way, you don't need to compile all sources!
You only need 3 files:
- _uAsmProfDllLoader.pas      (add this to your project)
- _uAsmProfDllInterface.pas   (add this to your project)
- AsmProfiler.dll             (put in exe directory)

Then add 1 line to you code/project:
  if LoadProfilerDll then ShowProfileForm;

You can see this working in a demo:
http://asmprofiler.googlecode.com/files/DllTestApp%20v1.0.1.2.zip

Original comment by andre.mussche on 14 Jan 2009 at 2:40