X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
   Reply to this topicStart new topic
> Losing Usb Ports While Program Is Running    
post May 28 2013, 03:12 PM

Posts: 776
Joined: 23-May 11

I have a VB6 Learning Edition program running on XP Pro SP3. The program is fairly simple: it opens and reads six tables in a Word document to populate several combo box drop-down controls, then shows one form. The items read into the combos are the names of songs. In this form I can either preset a song by choosing it in a combo control, or I can start typing in a text box and it will suggest song titles. When I have the one I want in the text box, or I want the preset song, I type a number from the keyboard number pad - this opens a single-page Word document for that song. Because it's VB6 Learning Edition, this is compiled and made an exe, but it's not packaged as a program.
The machine has two keyboards, two monitors, and one trackball connected to facilitate two users. A timer runs within the program to detect if a Word doc is open. When a doc opens, the form shrinks to the size of the title bar and hides in the upper left corner, but stays on top as the active window. When I type a zero on the keyboard, the doc closes and the form restores. If the doc closes some other way, the timer detects this and restores the form.
This has been running fine for quite some time. But about two weks ago, I started losing my keyboard (can't check the other user's keyboard in the middle of playing songs, so i don't know if his still works). I had to unplug the USB from the conputer and plug it back in, and then wait for the computer to refresh it. At first, the trackball was still active, but now that's coming up inactive also. After resetting the keyboard, though, the trackball returns.
Does it sound like I'm losing USB functionality to some kind of power scheme? If so, where do I look? I've tried all the usual places through the control panel. Else, is there a code I can put in that timer function that will refresh my USB and keep these active?
Go to the top of the page
post Aug 23 2013, 03:54 PM

Posts: 800
Joined: 12-November 03
From: Iowa Lot

This link might help.
Go to the top of the page

Custom Search
RSSSearch   Top   Lo-Fi    24th February 2018 - 06:55 AM