CmzSQuid / omnithreadlibrary

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

Can't build a new XE package that includes reference to GPLists.pas #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In Delphi XE (Update 1), create a new package.  
2. Add /src/GPLists.pas to the project. 
3. Build the project.

What is the expected output? What do you see instead?
It should build successfully, but it instead gives a:

[DCC Fatal Error] GpLists.pas(1): F2084 Interal Error: AV0B28BFB0-R00000014-0

What version of the product are you using? On what operating system?
Version 3.03b. Tried a gplists.pas from 3.03a and 3.0 and it gives the same 
error.  Tried it with the code from svn and also the 3.03b zip file.  

Please provide any additional information below.
Windows 7 64 bit.  Delphi XE with update 1.  

The 3.03b packages build and install correctly per the book installation 
instructions.  If I reference gplists.pas in a regular windows form 
application, I get no errors and the library works perfectly.  I only get this 
compilation error when I try to include a reference to gplist.pas in a new or 
existing package.  

I have been looking for solutions, but have been unsuccessful.  

Cheers,

Russ

Original issue reported on code.google.com by supp...@controlmynikon.com on 9 Mar 2014 at 1:14

GoogleCodeExporter commented 9 years ago
It now compiles if I change the following is gplists.pas:

{$IF CompilerVersion <= 22} //D2009  //was 20, setting it to 22 allows XE 
compile
  {$DEFINE GpLists_LimitedGenerics}
{$IFEND}

Not sure if this is a good fix, and I am testing my code now for leaks and 
stability.  It looks like setting it to 22 forces XE to use limited generics.

Original comment by supp...@controlmynikon.com on 9 Mar 2014 at 3:36