Error When Running Generated 32-bit Windows Code on a 64-bit Machine

Problem: An error occurs in the client API code when myDatabase initializes on line :"_pid = com.sybase.afx.util.PidUtil.GetId();".

Solution: If you encounter an error when running generated 32-bit Windows device client code on a 64-bit machine:
  1. In Visual Studio, in the toolbar, select Configuration Manager from the Solution Platforms list.
  2. In the Configuration Manager, in Active Solution Platform, select New.
  3. In Type or select the new platform, enter x86.
  4. Restart the application.