Unresolved reference 'raiseresult'

Hi,

While trying to debug an Android app, which I left unused for around one year, I’m getting this error:

(Declares) Unresolved reference ‘raiseresult’

So I tried to comment out the declares in the project, and got another one:

(Class ModExt) Unresolved reference ‘raiseresult’

ModExt is a module containing a bunch of methods; I can’t try to remove them without making other errors.

I just wanted to know if this already happened to someone (or as a reference if someone else gets it too). Or possibly what is raiseresult?

The error indicates somewhere in your code you use „return result“. I‘m curious to see the method.

What’s your Xojo version?

Thanks for your answer.

I’m using Xojo 2025 release 2.1.

Actually, I was able to find the issue, in the meantime (not a fast thing to do, commenting methods one by one, etc., though).

In my code, I had this:

Var Result As CConnectionResult=PerformRequestSync(Cmd) //Execute an URLConnection request and return a CConnectionResult object.
if Result<>nil and Result.ResultException<>nil then Raise Result.ResultException //If the PerformRequestSync method gets an exception, it is stored in the CConnectionResult object in that method. It’s then re-raised here.

It turns out the Xojo compiler doesn’t like this syntax for Android (it was fine for other platforms). I’ve not yet managed to work around this, just returning false if ResultException is not nil.

So the original error I got (raiseresult) looks to be “Raise Result” from the code quoted above, condensed.

1 Like

File this as a bug. Xojo is just a transpiler for Android.