B4J Question Missing views in debug mode

tsteward

Well-Known Member
Licensed User
Longtime User
When I compile my app in release mode my File menu contains "DB Update" & "Close"
When I compile in debug mode my File menu only contains "Close"

Also just for testing I move my DBUpdate stuff to "Close" it tells me I must first initialize "ProgIndicator" which has been created with the design so I don't understand.

Download export of app
 

billzhan

Active Member
Licensed User
Longtime User
"DB Update" & "Close" are shown under debug and release mode here. (win 7 64bit, jre java 1.7.0_65-b19)
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Its actually not used. Dunno why export didn't give it to you but here it is.
 

Attachments

  • wait.zip
    435 bytes · Views: 153
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I have edited the file and now it wont load at all. Dont know what I have done wrong.
 

Attachments

  • Main1.zip
    938 bytes · Views: 164
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
OK I have managed to repair main1.fxml
Still when compiling in debug mode the menu item is missing but not in release mode.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The menu does appear here in debug mode:

SS-2014-10-13_07.27.06.png


Note that you should set the menu anchors to fill the entire form width.
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
The menu bar appears but not all menu items.
"DB Update" is not available in debug mode.
 

Attachments

  • Release Mode.jpg
    Release Mode.jpg
    5.9 KB · Views: 160
  • Debug Mode.jpg
    Debug Mode.jpg
    4.7 KB · Views: 177
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Ok commented out all d code from app start and no different. It seems like it loads a different fxml file because ProgIndicator (my progressindicator) which is created in the fxml is not initialised. In fact I just noticed when using the ide menu to goto edit layout any changes I make in scene builder only appear in the a compiled release mode, not in debug mode. So there must be different fxml files somewhere for debug vs release
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I just exported my app and put it into a new directory and all works fine - problem fixed :) just dont know how I caused it in the first place o_O
 
Upvote 0
Top