B4J Question [SOLVED] Java FX error on Release

Peter Lewis

Active Member
Licensed User
Longtime User
Hi
I am getting this error only on release. So I did try adding this line and got the same error. Any ideas ? Thank you

#PackagerProperty: IncludedModules = javafx.web

Error only in Release

 

Daestrum

Expert
Licensed User
Longtime User
Hard to tell what is causing it in clsday without seeing any code.
Basically the error is you are updating the UI from a different thread - not allowed.

I believe (I may be wrong) that in debug the app runs single threaded so will always be on the fx thread, in release it can run on multiple threads.
 
Upvote 0

Peter Lewis

Active Member
Licensed User
Longtime User
From the error it looks like you are trying to update the text of a control from a BackGround Worker which will be running on a non-UI thread.
Thank you, there was one field that I was updating in the Background worker , Which all I had to do was to give it a Value from the main thread. That seems to have solved it. Thank you
 
Upvote 0

Peter Lewis

Active Member
Licensed User
Longtime User
I did find one Label that I put in a Default value that worked. Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…