Author Topic: BASS for Universal Windows Platform (UWP)  (Read 114600 times)

MARCOVLESMES

  • Guest
Re: BASS for Universal Windows Platform (UWP)
« Reply #250 on: 4 Jan '21 - 16:10 »
Hi I'm try to use BASSEnc in a UWP app but when I try to get the library version I'm getting an Access Violation error my code is:
Code: [Select]
public async Task<int> GetBassEncVersion()
{
     int version = -1;
     Task.Run(() =>
     {
          version = BassEnc.BASS_Encode_GetVersion();
     }).Wait();

     return version;
}
The error is:
Code: [Select]
The program '[22396] MyApp.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
Can you guide me to the right direction? Thanks!

Ian @ un4seen

  • Administrator
  • Posts: 23377
Re: BASS for Universal Windows Platform (UWP)
« Reply #251 on: 4 Jan '21 - 17:44 »
Unfortunately, a UWP version of the BASSenc add-on isn't currently available (I guess you're trying to use the Win32 BASSENC.DLL?). The BASSenc add-on has a lot of platform-specific stuff, and UWP is unlike any of the existing supported platforms, so a port isn't straightforward.

Are you sure your app needs to be UWP? Perhaps it could be a regular "desktop" Windows app instead?