And I mean really slow. I've searched and found links pointing to an article at bcbdev, but the link is dead and I haven't been able to find the content anywhere else. Does anyone know what the secret is to making code completion work in less than 10 seconds or so? Thanks!
It turns out that moving the sleep has no effect. I even increased the sleep to an absurdly long period, and the problem persists. It seems that what is happening is that the form 'remembers' how many times it was clicked, but it doesn't call the ResourcesCheckClickCheck() function for each...
Yes, the reload loads the form with the updated entries. The addResourceToPool() and removeResourceFromPool() do the database handling, but they do so in the same thread. They are pretty fast queries, simply adding a row to a table or removing based on a primary key. I'll try moving the sleep...
I'm having an issue where I am trying to keep a database up to date with a form, i.e. when a user clicks an item on a check list, the database is updated. The problem is that when a user checks and unchecks a box too fast, the form and the database do get out of sync, and an exception is...
Weird. I wouldn't have guessed the disconnect was the culprit. The only easy thing I can think of to remedy it (other than what's in the posts you linked) would be to keep the connection throughout the app, and only disconnect on app shutdown. Put your connection on a data module, and use the...
yes, that's what I meant, the sqlplus (oracle) or the isql (firebird) or whatever connection utility the database offers. I only ask because if the query is consistently fast here, the delay may be in getting the connection and not in running the query. You might try to time different parts of...
Well, this is probably not the most elegant or efficient way of doing things, but back in school I had a similar problem and solved it by looking up the .wav spec online and just writing samples to a file using standard io functions. It wasn't that hard to do, once I figured out how to keep...
MD5 and MD4 are hash functions that take input of arbitrary length and produce output (in the case of MD5 at least) of 128 bits. They are cryptographic in that it is supposed to be 'hard' to go from the hash output back to the original. By hard I mean that there is no method which is more...
Thanks. It has the same effect, but it seems ProcessMessages might be the more appropriate way to do what I'm after. Do you see any problems with how I'm doing this, or do you think I should use a Frame instead?
Ok, I got it working OK by using the "OnActivate" method and putting Repaint() calls in as required. Still, my intuition tells me there's a better way to start computations when a form is created (or a better way to handle status forms. If anyone can point me in the right direction, I'd be...
In my C++ Builder 6 application, I have a form which performs lengthy computations / work and reports status back to the user. The user has the option to cancel as well. What I'm shooting for is something like the "Compiling..." dialog that pops up when you run a project from the IDE. My form...
Thanks to all who replied. I solved this problem by using the JEDI library, which is truly a great resource that I hadn't been aware of. It is distributed under MPL, meaning it can be embedded in commercial projects, and is free. Good stuff here.
http://homepages.borland.com/jedi/jvcl/
I'm looking for a bit of a nudge in the right direction...
I have a need for a ListBox where each item can be a different color. Ideally, each item could have a glyph of some sort attached to it as well, just a little symbol sort of thing that would reflect the status of the item at a glance...
I posted a "which Database..." question here a while back. I ended up using Firebird, and couldn't be happier. Not sure what OS you're running, but firebird has an embedded server, which is just a dll dropped into your application directory. Using the embedded server, my app is totally self...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.