Board index » cppbuilder » Exception in TResourceManager.AllocResource with unmarked "Build with runtime packages"

Exception in TResourceManager.AllocResource with unmarked "Build with runtime packages"


2008-02-01 06:10:21 PM
cppbuilder99
Project work well when "Build with runtime packages" is marked in
Project propetries.
When i unmark it project builds fine, but trows exception in function
function TResourceManager.AllocResource before program is launched.
-------------------------------------------------------------
function TResourceManager.AllocResource(const ResData): PResource;
var
ResHash: Word;
begin
ResHash := GetHashCode(ResData, ResDataSize);
Lock;
try
-------------------------------------------------------------
exception trows in this line:
ResHash := GetHashCode(ResData, ResDataSize);
 
 

Re:Exception in TResourceManager.AllocResource with unmarked "Build with runtime packages"

t tried in C++ Builder 6.0 and Turbo C++ - the same
 

Re:Exception in TResourceManager.AllocResource with unmarked "Build with runtime packages"

Project work well when "Build with runtime packages" is marked in
Project propetries.
When i unmark it project builds fine, but trows exception in function
function TResourceManager.AllocResource before program is launched.
-------------------------------------------------------------
function TResourceManager.AllocResource(const ResData): PResource;
var
ResHash: Word;
begin
ResHash := GetHashCode(ResData, ResDataSize);
Lock;
try
-------------------------------------------------------------
exception trows in this line:
ResHash := GetHashCode(ResData, ResDataSize);
I've tried in C++ Builder 6.0 and Turbo C++ - the same
 

{smallsort}