Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sammye

    Show/hide tool tips programatically

    Unfortunately I have been trying to avoid just that. The nice thing about a programatically controllable (fictional) tooltip is that it can act normally as a tooltip, but also as a help function when necessary. Thanks though.
  2. sammye

    Show/hide tool tips programatically

    That only allows the hover to work or not. If false, no tooltip is shown whenever hovering over whatever has a tooltip (even tried it to make sure). Thanks though, any other suggestions?
  3. sammye

    Show/hide tool tips programatically

    Is there a way to show/hide all of the tooltips on a form programatically? I want to use them as sort of a help function by creating a button that toggles their view. I have found ways to show individual tooltips momentarily or allow the hover to work even if the form is not the focused form...
  4. sammye

    Prevent Thread Re-entrance on Same Thread

    I admit, I need to read through this a couple of times before I understand it all. Thanks again, I appreciate the education.
  5. sammye

    Prevent Thread Re-entrance on Same Thread

    Wow, still looking at this, huh? Thanks for the follow-up, I'll look through the code you posted.
  6. sammye

    Prevent Thread Re-entrance on Same Thread

    Good advice, thanks for all the tips/info. I'll keep digging and post back *when* (staying positive here and staying away from "if") I find the root of the problem. Thanks again. joe
  7. sammye

    Prevent Thread Re-entrance on Same Thread

    Sorry, the synchronized hashtable is for the case of handling multiple writers. The doc's state that a normal hashtable can handle multiple readers with a single writer just fine. I'm stuck on static objects because of two reasons: 1. Ease of use. All I have to do to get data out of the static...
  8. sammye

    Prevent Thread Re-entrance on Same Thread

    Whoa, there's a lot going on in that sample. Thanks for being so thorough. I'll begin reading through it and try to understand it. However, I am curious if you can tell me what the problem with the below scenario: Thread 1: Read from hardware resource and place results in static hash table...
  9. sammye

    Prevent Thread Re-entrance on Same Thread

    By the way, there are two different scenarios being used. One is the case I mentioned above with a static class and a bunch of static methods. The 2nd uses a static reference to an instantiated object. Both are causing me trouble, but it is actually the 2nd that produces the protected memory...
  10. sammye

    Prevent Thread Re-entrance on Same Thread

    Good questions/comments. The reason I need to share info across states is that I have few different hardware resources attached to a pc (usb and pci). There are two threads which update the UI so the user can see what is going on and then there is also a thread which does the actual work and...
  11. sammye

    Prevent Thread Re-entrance on Same Thread

    Jason: Please question away, I'd definitely appreciate the advice. I've heard that static classes/members should be restricted to functions that do not carry state, but it also seems like a very straight forward way of sharing data across multiple threads. Is there a better way of doing this...
  12. sammye

    Prevent Thread Re-entrance on Same Thread

    http://stackoverflow.com/questions/313910/can-i-add-an-attribute-to-a-function-to-prevent-reentry Sorry, here's the link I mentioned above.
  13. sammye

    Prevent Thread Re-entrance on Same Thread

    If changed to a function belonging to an instance object, what's the best way of allowing access to multiple threads? Won't it still have the same issue of the being re-entered on the same thread with asynchronous events? Out of curiosity, can you tell me if my method of sharing data is totally...
  14. sammye

    Prevent Thread Re-entrance on Same Thread

    Sorry, but I'm a little confused as to where you got the singleton from. I have some idea of how a singleton works, but will it help in my case? I have a function which I want to prevent re-entrance from multiple threads and also the same thread. The lock model works across threads, but not...
  15. sammye

    Prevent Thread Re-entrance on Same Thread

    I am looking for a way to prevent reentrance on the same thread. The problem is that I have a static function that is called from a form in a couple of ways (button, timer), and I have been using a lock to prevent reentrance from other threads and that portion seems to be working fine. However...
  16. sammye

    Application dies suddenly without warning

    Ahh, gotcha. Well, I'll look more into PostSharp and Castle Windsor then, maybe even ms's unity package. I'm hoping they are not too invasive or time consuming to implement.
  17. sammye

    Application dies suddenly without warning

    I didn't realize that log4net could be used as an interceptor so I'll do a little more digging into it. Actually, I didn't know there was such thing as an interceptor until an hour or two ago when I happened across PostSharp.
  18. sammye

    Application dies suddenly without warning

    That's actually one thing (performance drag from logging) I'm worried about. I'll likely delete most of it in the end or if/def it. Thanks again.
  19. sammye

    Application dies suddenly without warning

    Thanks for the tip on log4net, I've used it before. I'm not using it now, but I do have some logging. I guess it's time to change it from "some" to "a lot".
  20. sammye

    Application dies suddenly without warning

    Hello, My app has this funny habit of crashing and burning without the slightest hint of what happened. One moment it is running along (in debug mode) without issue, and then all of a sudden it just disappears. There were no warnings, pop-ups, exceptions caught, etc. I am curious of there are...

Part and Inventory Search

Back
Top