B4J Question Compiled program problems

oldeast

Active Member
Licensed User
Longtime User
Hi all,
I created a program CMS for Windows that uses a SQLite database, the database is created in the c/users/yourname/appdate/roaming/CMS on the first run.
It works perfectly on my computer.
I can delete the database and its reinstalled with no problems when the program is restarted, I can add and delete records.
Two testers downloaded the .exe file, we are all using Win 10 and Win Defender.
The two test sites have no problem installing the program which creates the database and adds a test record correctly. As soon as they try to view that record the program shuts down.
Where should I start looking for a solution, any suggestions appreciated.
Thanks
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
In windows open CMD and run your program with the java command.

Something like:
Java -jar your.jar

Use it and as soon as the error occurs, the exception will be printed in the cmd.

Any other log statement will be registered too.
 
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
The program runs but the database has two records, somehow the compilation must have been erroneous in that I included the test db, I will check further ..thanks again
 
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
Ok, I did that, it runs ok, cmd shows no errors, I can add/ edit /save records.
One of my testers reinstalled the new version on her machine, program installs OK, the database is created, test record can be viewed so all that is better, but she tries to add a new record and gets a blank form.
I just asked to see how much RAM is on that machine, wondering if thats the problem now as my installation is good.
Thanks again
 
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
her machine has 8Gb ram, she can run the program in compatability mode - Windows XP.
a second tester has it running in Win 7
a third tester has it running in win 10
thanks for replies, not sure where to now
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
To solve the blank form issue add this line before showing the form.

Form.setformstyle("decorated")

Some computers have problems with the standard "unified"
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
To solve the blank form issue add this line before showing the form.

Form.setformstyle("decorated")

Some computers have problems with the standard "unified"
That is why "UNIFIED" has been deprecated in the last official release of B4J
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
you can see it here

Untitled.png
 
Upvote 0
Top