You may only have one direct Application subclass in a project at the same time

Hello,

I just downloaded XOJO Version 2020 Release 2 and tried to run a project that runs in XOJO Version 2019 Release 3.2 and now I get these errors:

I can only build in 2019 Release 1

App.Name
You may only have one direct Application subclass in a project at the same time.
App

KioskApplicationWFS.Name
You may only have one direct Application subclass in a project at the same time.
KioskApplicationWFS

Searched for KioskApplicationWFS and only found one instance.
To the best of my knowledge, there is only one App

What could be happening here?

Thanks.

Lennox

IIRC, the goal of that is to ensure you don’t have multiple classes that subclass App or Application as that can lead to odd behavior.

http://feedback.xojo.com/case/61186

If you don’t think your project has this issue, please create a Feedback case and attach the project so we can look into it.

class App, super = KioskApplicationWFS
class KioskApplicationWFS, super = DesktopApplication

then it should work
don’t do this:
class App, super = DesktopApplication
class KioskApplicationWFS, super = DesktopApplication

Thanks Paul and DerkJ.
Lennox

1 Like