HyperlinkButton assertion


#1

Hello,

I set hyperlink button like this.

hyperlinkButton.setURL(URL("http://www.juce.com"));

Then I triggered it like

hyperlinkButton.triggerClick();

And I got assertion.

/*  When you supply a raw string to the File object constructor, it must be an absolute path.
....

How to use HyperLinkButton correctly?

I use Juce v5.3.2 on OSX 10.13.6.

Thank you


#2

Can you provide a stack trace?

Does this happen on the latest version of JUCE from the develop branch?


#3

Thank you for your reply.
It’s like this.
And I use latest version of master branch.


#4

I’m afraid it’s working fine for me - I get juce.com loading in the browser.

You’ll have to step through things in the debugger to find out where things are going wrong.


#5

HyperLinkButton works without debugger.
But when I test it on Xcode’s debugger,
I get assertion failed.


#6

you’re probably on the master branch, I think that this has been fixed on the develop branch recently : URL:: launchInDefaultBrowser() triggers assertion


#7

Thank you.
I will test it on develop branch.