At the moment, what I´m doing works fine in debug mode where it writes and reads to/from file, and logs with the log command in the b4j log window.
But as soon as I go to release mode - which I need cause I´m gonna add some gui things to it later - none of the above, nor anything else happens.
I´ve tried to start a new project where I made sure that it´s a GUI application I´m working on, but this did not help.
Ok, quick example. The below works only in debug mode:
B4X:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Log ("yo")
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Should it even work in debug mode if there´s such a problem?
I´m gonna do what you suggested and will get back.
Also, can I not run UI apps in debug mode? Just wondering.
Should it even work in debug mode if there´s such a problem?
I´m gonna do what you suggested and will get back.
EDIT: Ok, thought I did not wanna hummiliate myself so been trying to figure this out but couldn´t: Where´s the jar located..?
Also, can I not run UI apps in debug mode? Just wondering.
I can duplicate your problem 'Only if' I use LogDebug("yo") instead of Log("yo")
in which case in release it logs nothing in the ide, but in debug, it will log the message.
Guys, I figured it out! It´s my Comodo security software that auto contains the app when in release mode, running it virtually, somehow prevending it from doing what it should!
Thanks for all your guidance