Search:
Type: Posts; User: Jay Rogozinsky
Search:
Search took 0.15 seconds.
-
And here is another wait function ... a better one.
Note that I have observed that using Timer directly can result in bad return values. I have notified MS. *** Also, the other code does not...
-
Yes it was :-)
You *did not* write multithreading code ... you wrote a messaging front end.
In fact, your sample code is NOT (I repeat NOT) multithreading .... it's multiple processes. My...
-
So, how is this project going?
-
OK, lets get past the semantics...
All processes share processor time - this is a given. The sharing of processor time is referred to as multitasking. As time has progressed, Windows has changed...
-
"non-blocking" means just what you said - I left it for Zaei to answer, as it was his comment.
Well, it is multitasking, and in a sense, it is also mulithreading. A multithreaded process is...
-
Cool. Your mention of "non-blocking" is interesting to me for other reasons - Thanks. It has lead to some interesting reading; Monikers and such.
However, in the context of this discussion it...
-
-
I do also ("redundantly"). However, in this case, you can think about the extra classes as an InProc place to put InProc code for your OutProc classes. This may make little sense now, but if you do...
-
Bad News (not really). You CANT (easily, if at all) utilize the external thread objects as arrays (if they have events) - like we do with a TextBox array and get an Index during the TextBox's...
-
One word ... Sychronization.
I recommend thread-per-object. Let your main application determine and control the thread count.
One word (to start) ... Marshalling.
-
I read that article. Although it may be helpful in a basic explanation of threading and the issues thereof, there are many assertions in it which are technically questionable (especially for VB5 and...
-
hellswraith is referring to the OutProc method. He is quite accurate in his description of implementation. In fact, the same basically applies to the InProc scenario. However, the InProc...
-
Have you done any threading before; either native (C) or VB style?
Yes, definitely go and look at threading OutProc ActiveX EXE style. In fact, do at least one test program. You probably won't...
-
Now, for your project, don't necessarily look at extra threads on a "per link" basis.
Too many threads can result in a slowing of completion.
Usually an extra thread or two are added to perform...
-
Yes, you can multithread in VB. I am not referring to CreateThread; as BuggyProgrammer suggests - this is not stable. CreateThread is not supported because of VB's threading model. I could go...
-
I operate from Edmonton, Alberta, Canada.
My company develops software.
Glad I could help.
-
There are basically two ways to have multiple threads:
1) Create your project as an ActiveX EXE instead of a Standard EXE. This would allow for having multiple Threads in the SAME PROCESS. This...
-
IF your program is single threaded and DoEvents is not sufficient:
If your Form1 is indeed busy, you can do NOTHING to make another form show "progress". You COULD pull up another Form and say...
-
OK. Please ********. Im reading ...
In this message your indicated that you wanted Form2 to LOAD and FINISH BEFORE Form1 does it's job. The way it's said you don't even want Form1 visible...
-
Tick count produces the same result.
I have found the answer.
The code DOES complete as the timers suggest. However, the entire GUI is busy with the BitBlt, buffered in some manner, and it...
-
Thanks Jim. Please check it out.
http://www.vbforums.com/showthread.php?s=&threadid=159630
-
Well, so we have a chunk of code and we want to know how long it takes to happen. This works most of the time. Wish I knew why it doesn't with my chunk of code.
I have narrowed it down to having...
-
This looks simple.
The DLL in question IS NOT an OLE DLL; It is a standard DLL.
With this in mind, it DOES NOT have to be registered to be used; In fact, YOU DO NOT register non-OLE DLL's. You...
-
-
(In a single-threaded environment) if Form1 is BUSY doing stuff, Form2 WILL NOT get events, including Timer events.
DURING the processing that is occuring in Form1 is when you DoEvents. Each...
-
OK, I could get long-winded here, but I won't. For me, SQL is not the best way to do all database access.
If you are simply trying to add a record, look up the AddNew method of the RecordSet...
-
HEHe. Yes, thanks I know of the HiPerf counter.
Actually, that's one of the things that led me to the VB Timer Function issue.
I am testing a piece of code and wanted to measure it's time. ...
-
You CAN use SQL (as Hack suggests) to do almost everything with the database. However, there is another way and it is DAO/RDO/ADO compatable to my knowledge. You can CHOOSE which is best for you! ...
-
OK,OK.
Show me the rest, I can help.
-
Sounds like your doing the right thing, so, I offer the folowing:
I can tell you that I had a similar problem, however, I happened to be in a position to notice what caused it.
For me, I...
-
Yes, or I could use timeGetTime.
The problem has something to do with rounding, I think. MS makes it hard to develop good code. If you say locTimer = TIMER and then work off of that (instead of...
-
When I BitBlt to a PictureBox hDC, the contents are temporary. They get lost if the PBox is covered and uncoverd - even if it's AutoRedraw is True. This is not good.
Now, I MUST access the PBox...
-
Thank you much.
All I can say is Darn!. HeHe. I was hoping that wouldn't be the case. Oh well, back to the drawing board.
Even though it works, I DO NOT write software that operates on...
-
OK. I'll give the question first, other info later.
If you issue a CloseHandle on an Event which is currently being utilized by WaitForMultipleObjects, what happens? More importantly, is "what...
-
Sounds good.
For one thing, when a user clicks in my "PBox", I am going to stop updating it. Why? Because the user clicked to zoom in or something else that relates to the CURRENT DATA. So, I...
-
For 'dw85745':
A cyclic methodology can be used anywhere it is appropriate. It is FIFO in nature. This method is very often used in hardware level serial buffering.
The place where new...
-
Well, if you want to use it 'Hampster', go nuts. I don't see much point in even putting the effort into showing the ACT of calling CreateThread.
DO NOT use CreateThread in VB. It's not stable,...
-
Hmmm.
I have been using the Performance Counter for some time now for various things. Anyhow, when I originally researched into using it, I found a lot of code that suggested making the call...
-
I am doing something similar.
----------
Sounds like you should be using a cyclic buffer methodology and thereby you WONT HAVE TO move large blocks of data around.
----------
-
Sounds like we are working on the same project. LOL.
I am building a RealtTime Database. For me, thats ONE of my issues - pretty much the same as yours. (However, I have additional issues.)
...
|
Click Here to Expand Forum to Full Width
|