TurboPack / AsyncPro

Async Professional is a comprehensive communications toolkit for Embarcadero Delphi and C++Builder.
101 stars 51 forks source link

Testing with C++Builder 64-bit in Alexandria #19

Open weirdo12 opened 2 years ago

weirdo12 commented 2 years ago

I'm just adding this as a report. I did notice that 64-bit support is experimental.

If I create a brand new C++Builder 64-bit VCL Application, drop a sin TApdWinsockPort component on the main form and run it I get the following exception:

Project Project1.exe raised exception class 0xc0000005 with message 'Exception 0xc0000005 encountered at address 0xb477ff: Access violation reading location 0xffffffffffffffff'.

If I try to create the component in the main form constructor like this:

__fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
{
  TApdWinsockPort *ApdWinsockPort1;

  // I tried both 0 and this as the Parent argument - same exception
  ApdWinsockPort1 = new TApdWinsockPort(0);
}
//---------------------------------------------------------------------------

I get the following exception:

Project Project1.exe raised exception class 0xc0000005 with message 'Exception 0xc0000005 encountered at address 0x1ff00000000: User-mode data execution prevention (DEP) violation at location 0x1ff00000000'.

romankassebaum commented 2 years ago

I'm not a C++ specialist. I can only say that many of the TurboPack components seem to have problems with the C++ 64 bit version. If you know someone who could fix this please ask him.