Search:

Type: Posts; User: Jay Rogozinsky

Page 1 of 4 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    13
    Views
    56,121

    Re: Wait function

    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...
  2. Re: New code for simulating multithreading in VB6...

    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...
  3. Replies
    31
    Views
    3,371

    So, how is this project going?

    So, how is this project going?
  4. Replies
    31
    Views
    3,371

    OK, lets get past the semantics... All...

    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...
  5. Replies
    31
    Views
    3,371

    "non-blocking" means just what you said - I left...

    "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...
  6. Replies
    31
    Views
    3,371

    Cool. Your mention of "non-blocking" 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...
  7. Replies
    31
    Views
    3,371

    Please do.

    Please do.
  8. Replies
    31
    Views
    3,371

    I do also ("redundantly"). However, in this...

    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...
  9. Replies
    31
    Views
    3,371

    Bad News (not really). You CANT (easily, if at...

    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...
  10. Replies
    31
    Views
    3,371

    One word ... Sychronization. I recommend...

    One word ... Sychronization.



    I recommend thread-per-object. Let your main application determine and control the thread count.



    One word (to start) ... Marshalling.
  11. Replies
    31
    Views
    3,371

    I read that article. Although it may be helpful...

    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...
  12. Replies
    31
    Views
    3,371

    hellswraith is referring to the OutProc method. ...

    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...
  13. Replies
    31
    Views
    3,371

    Have you done any threading before; either native...

    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...
  14. Replies
    31
    Views
    3,371

    Now, for your project, don't necessarily look at...

    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...
  15. Replies
    31
    Views
    3,371

    Yes, you can multithread in VB. I am not...

    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...
  16. Replies
    10
    Views
    537

    I operate from Edmonton, Alberta, Canada. My...

    I operate from Edmonton, Alberta, Canada.

    My company develops software.

    Glad I could help.
  17. Replies
    10
    Views
    537

    There are basically two ways to have multiple...

    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...
  18. Replies
    10
    Views
    537

    IF your program is single threaded and DoEvents...

    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...
  19. Replies
    10
    Views
    537

    OK. Please clearify. Im reading ... In...

    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...
  20. Tick count produces the same result. I have...

    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...
  21. Thanks Jim. Please check it out. ...

    Thanks Jim. Please check it out.

    http://www.vbforums.com/showthread.php?s=&threadid=159630
  22. So we thought we could time a BitBlt !!!

    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...
  23. Replies
    1
    Views
    515

    This looks simple. The DLL in question IS NOT...

    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...
  24. Replies
    2
    Views
    299

    Provide more detail.

    Provide more detail.
  25. Replies
    10
    Views
    537

    (In a single-threaded environment) if Form1 is...

    (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...
  26. Replies
    11
    Views
    682

    OK, I could get long-winded here, but I won't. ...

    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...
  27. HEHe. Yes, thanks I know of the HiPerf counter....

    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. ...
  28. Replies
    10
    Views
    623

    You CAN use SQL (as Hack suggests) to do almost...

    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! ...
  29. Replies
    11
    Views
    682

    OK,OK. Show me the rest, I can help.

    OK,OK.

    Show me the rest, I can help.
  30. Replies
    3
    Views
    499

    Sounds like your doing the right thing, so, I...

    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...
  31. Yes, or I could use timeGetTime. The problem...

    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...
  32. Replies
    2
    Views
    677

    PictureBox hDC BitBlt

    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...
  33. Replies
    2
    Views
    652

    Thank you much. All I can say is Darn!. HeHe....

    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...
  34. Replies
    2
    Views
    652

    WaitForMultipleObjects

    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...
  35. Replies
    23
    Views
    1,263

    Sounds good. For one thing, when a user clicks...

    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...
  36. Replies
    23
    Views
    1,263

    For 'dw85745': A cyclic methodology can be...

    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...
  37. Replies
    23
    Views
    1,263

    Well, if you want to use it 'Hampster', go nuts. ...

    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,...
  38. QueryPerfCounter -> Isn't this the easier way?

    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...
  39. Replies
    23
    Views
    1,263

    I am doing something similar. ---------- ...

    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.

    ----------
  40. Replies
    23
    Views
    1,263

    Sounds like we are working on the same project. ...

    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.)
    ...
Results 1 to 40 of 139
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width