New version

yildi

Member
Licensed User
Hi to all and Erel!

I wish you a very happy and creative new year and happy Christmas, if you live in a Christian country.

I have installed the new version of Basic4PPC (6.01) and I was able to compile with the new engine my TRPPC application. I have just opened the source file, corrected the problematic Control access lines, erased the old libraries and added the new ones, including the Notifyicon library with the instructions
ni.Version580andAbove = false
ni.New1, as it was kindly suggested by Dimitris in this thread (http://www.b4x.com/forum/showpost.php?p=7473&postcount=12).

I have created the setupbuilder setup file and installed the application on the PPC.

Then something strange happens: when I click on the icon of my program, I see the hour glass turn but nothing happens and it disappears after 30 seconds.
I imagine that something strange is happening without generating an error message. Where can I have a hint about the problem? Has the NETCF a log file somewhere on the PPC?

FYI: I have the same problem with the Windows exe.

Any idea?

Very cordially,

Murat

PS. I have not erased the already included objects (even if I have refreshed the libraries as I have explained above). Is this correct? Well, I have also removed the abjects and added them a new but this does not solve the problem...

PS2 : Here are the Globals and App_start sections of my program (in case you see something strange -TRPPC is the main form of my application):
B4X:
Sub Globals
   'Declare the global variables here.
   'Number of different field options in the combo boxes
   nbFields = 13
   ' Number of combo boxes for the selection of the fields
   nbCMBX = 7
   Dim allFields (nbFields) As String
   allFields(0)=""
   allFields(1)="Desc"
   allFields(2)="Notes"
   allFields(3)="Created Date"
   allFields(4)="Done"
   allFields(5)="Done date"
   allFields(6)="Thought"
   allFields(7)="Project"
   allFields(8)="Topic"
   allFields(9)="Context"
   allFields(10)="Status"
   allFields(11)="Action Date"
   allFields(12)="Delegated To"
   Dim selectedFields (nbCMBX) As Byte
   AddArrayList ("ArrayList1")
   
   fieldsFileName = "Fields.ini"
'Actual selected row in the tables (global in order to keep this in memory between subs   
   actualRow = 0
'Are we updating a thougth?
   updateTH = false
'File used for reading and saving actions   
   actionFile=""
'File used for reading and saving thoughts   
   thoughtFile=""
'Is necessary to save Table1?
   toSaveNA = False   
'Is necessary to save Table2?
   toSave = False
'Version number
   versionNumber = "1.0"

End Sub

Sub App_Start
   ni.Version580andAbove = false
   ni.New1
   flb.New1("TRPPC",B4PObject(1))
   flb.MinimizeBox = True
   hardware1.New1
   Panel1.Visible=False
   PanelThought.Visible=False
   adjustscreen
   TRPPC.Show   
   Table1.HeaderColor=cBlue
   Table1.HeaderFontColor=cGold
   Table2.HeaderColor=cBlue
   Table2.HeaderFontColor=cGold   
   Table2.AddCol (cString, "Thoughts", 150)
   Table2.AddCol (cString, "Topics", 70)   
   setup_Click
End Sub
 
Last edited:

Louis

Active Member
Licensed User
Longtime User
Hi Erel, do all additional libraries still work with the new version or are there things in our libraries we need to change for them to work with the Optimized Compiler? Thanks.
 

yildi

Member
Licensed User
After some tests with Erel, it seems that the source of the problem is my use of NotifyIcon.

I have inverted the lines containing its declarations in the App-Start sub and it seems to work now with this order:

ni.New1
ni.Version580andAbove = false

Best regards,

Murat
 
Top