Thanks Paul, I was wondering if it could be the threading. So far I am
still
trying to narrow down the main problem area in my code. For some reason
the
DateTime.Ticks() and DateTime.MilliSeconds property always return 0 to me
in
CF.
my code talks with built-in serial bluetooth and fetches commands for
processing and output. Surely, the BT reading of information might cause
some delay but I think only on the initial connect. I am still trying to
get
the DateTime to work right so I can pinpoint the problem area. I tried
taking out controls in the gui and it seems to have improved a little. I
tried ignoring about 1/3 of the commands to be interpreted but it didn't
seem
to help. if I tap menu items(i.e File, etc), it sometimes goes into a
long
lag. Other times, when I tap the menu item again <- to make menu
disappear
(or I could've tapped anywhere else on my form), the refresh will be laggy
or
it won't finish. The refresh performance definately improve if I keep
tapping the form. Hope this is not too confusing... here is my attempt
to
simplify this part.
tap File = sometimes lags for a long time.
tap File again or attempt to suppress the menu options = either doesn't
complete the refresh or it refreshes slow, refresh will complete if I tap
in
the form again. this problem is true when I tap the buttons too,
sometimes
I'll have to tap the screen for a long time before I can see the button
reaction.
Do you know why DateTime class laughed at me when I tried to get the Tick
count or the milliseconds count?
dim dt as new DateTime
x = dt.ticks() <- x becomes 0
x = dt.Milliseconds <- x also becomes 0
so many problems in 1 post... sorry about that Paul. Thank you very much
for your time and effort. If nothing else, can you help me get the
DateTime
thing working? at least that way I can better pin point the tumor in my
code.
I had designed most of my code in O(n) order or less(or as close to that
as I
can). <- at least I thought.
You've given us *no* useful information that would help us to help you.
What does your code do, for example? What have you tried to improve the
situation? It's unlikely that more RAM is going to help, even if your
device is upgradeable. Better design of your code might help...
I doubt that threading is the problem, unless you are doing lots of
synchronization between the threads.
Paul T.
[quoted text clipped - 13 lines]