Program lags
Brought to you by:
itang_hiu
While running the chinese flashcard program I
encountered the problem that the program lags
constantly. For example, the program lags on
maximizing, selecting options and especially while
running the 'play' option (program becomes partially
unresponsive, sounds and characters do not match; see
screenshot).
http://img444.imageshack.us/my.php?image=1237lo.png
I'm running the latest version of Java, update 7,
Windows XP on a fast enough pc with plenty of ram to
spare.
Logged In: NO
Hi,
I tested MCFC with JAVA1.5 update 6 and everything were fine.
Remember when I recommended you to execute the following
MCFC.bat :
set CLASS_PATH=%CLASS_PATH%;../../lib/common.jar
set CLASS_PATH=%CLASS_PATH%;../../lib/tlabs-0.91.jar
set CLASS_PATH=%CLASS_PATH%;../../lib/log4j-1.2.8.jar
set CLASS_PATH=%CLASS_PATH%;../../lib/hsqldb.jar
set CLASS_PATH=%CLASS_PATH%;../../Lib/jakarta-regexp-1.4.jar
set CLASS_PATH=%CLASS_PATH%;../../lib/myChineseFlashCards.jar
set CLASS_PATH=%CLASS_PATH%;../../Resources/Icon.jar
set CLASS_PATH=%CLASS_PATH%;../../Resources/Resources.jar
set CLASS_PATH=%CLASS_PATH%;../../Resources/Sound.jar
set JAVA_ARGS=
set JAVA_ARGS= -DrootPath=../../
set JAVA_ARGS= %JAVA_ARGS% -DresourcesPath=../../Resources/
set JAVA_ARGS= %JAVA_ARGS% -DconfPath=../../Conf/
set JAVA_ARGS= %JAVA_ARGS% -DdocPath=../../Doc/
set JAVA_ARGS= %JAVA_ARGS% -DhsqldbPath=../../Hsqldb/
set JAVA_ARGS=-Xms32M
start java -cp %CLASS_PATH% %JAVA_ARGS%
myChineseFlashCards.Client.Launcher
When you executed MCFC.bat, the application didn' t launch
correctly. I think it is because you put MCFC.bat in the
wrong place. To lauch correctly MCFC.bat must be in
MyChineseFlashCards/Bin/Win/.
try launching MCFC.bat in this directory and change -Xms32M
(try to increase it to 64M and see what happens).
keep me informed.
Regards
Logged In: NO
I am sure I am running the file in the correct folder, the
behaviour is as stated on chinese-forums.com:
The bat file executes fine for values of 65 and higher
(the cmd window shows for a fraction of a second and my
computer returns to the state like before executing the
bat file). For values of 64 and lower the cmd window stays
open as displayed below and three files are created in the
same folder. For a value of 64 or lower the splash screen
is displayed for about a second.
http://img281.imageshack.us/my.php?image=12341ch.png
regards,