Results 1 to 5 of 5

Thread: Dragging form / slider etc. stops execution

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Dragging form / slider etc. stops execution

    My code needs to transmit regular packets onto a serial bus, however when the user holds the mouse down on a slider etc. then the transmit function stops until they let go

    Is there a clever way to continue processing whilst this is happening?

    I am thinking multithreading might be a way around this problem but is there a simpler way?

    Cheers

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301
    Any ideas?

  3. #3
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    Kinda a cheap wannabe multithreading idea, as I don't actually know much about it, but, could you put the function that sends the data to the serial port in a seperate dll? That should not be affected by whatever the main app is doing, assuming you don't wait for a callback or anything...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301
    I'd wondered about that, or maybe and ocx. I have a few questions about this though,

    In my main code I initilise the serial card via a dll (supplied with the card) I then use the dll functions to transmit / recieve, clear the buffer etc.

    I will need to access this serial dll in my new dll/ocx. This needs to be independant of my main code (so I can not call functions in the main code) how do I "share" this dll?

    Cheers

  5. #5
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    Just call the serial dll from your new dll/ocx. If you put all the functions needed in your new dll/ocx, then you wouldn't need to share it, not that I am sure that the problem with that would be anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width