Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Issue with TelOneInstance and 64-bit compiling

Hi... I ran across a problem with TelOneInstance when compiling as 64-bit.

Seems the following line in TelOneInstance.CreateMapping fails (returns 0) in a 64-bit app:

      FMapHandle := CreateFileMapping($FFFFFFFF, @SA, PAGE_READWRITE, 0, sizeof(TElMemMapArr), PChar(FMapName));

Changing the line to the following seems to fix it:

      FMapHandle := CreateFileMapping(INVALID_HANDLE_VALUE, @SA, PAGE_READWRITE, 0, sizeof(TElMemMapArr), PChar(FMapName));


John 

Comments

Sign In or Register to comment.