Sunday, February 12, 2012

Bound control timing issues in Visual Basic

It is just me or...
I have two appications in very different environments that have
suddenly shown very similar behavior, after a fashion.
One application is simple desktop. I've been working on the development
off and on for a number of months. It uses controls bound to an Access
database. As a for instance, I have two list boxes where items are
copied from left to right and deleted from the left, a fairly standard
practice. After the delete from the left, the repaint should eliminate
the deleted item, which worked fine until just recently.
The client became very upset when the the control repainted with the
deleted item still displayed. And this was also happening with two grid
controls. It was making me quite nuts. I dug around until I found a
reference to 'sleep' and implemented it. The problem was resolved.
Therefore, the cursor in memory was not being overwritten in time to
keep up with the repaint.
I also have an application in a Citirx/Softricity environment that is
working just fine on several servers (it produces reports using the VB6
data report designer) but is failing on one. I have not yet seen the
results, but I've added the same 'Sleep' methodology to this
application. My current working assumption is that the application
(data report dll) does not have enough time to locate the remote
network printer in time to produce a display when requested by the
application. It's just a working assumption.
What I'm wondering is whether or not anyone else out there in VB land
particularly VB6 land has recently encountered any timing related
errors. I want to document this, if I'm not the only one encountering
the issues.
I'm bringing this up because of something I read around the time of the
emergency patch related to the possibility of viruses or trojans being
embbedded in graphic files. It suggested that the underlayment
(operating environment) was being adversly affected, that is it was
significantly slower to respond to certain requests, as a result of the
patch.
Thanks for your attention...Hello,
If you are using an Access database and you do not have a single
connection for the entire application, you may be running into this
issue:
http://support.microsoft.com/kb/q200300
Razvan

No comments:

Post a Comment