Click here to Skip to main content
15,923,051 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB Web Server Pin
RCOLATRU11-Jan-05 4:38
RCOLATRU11-Jan-05 4:38 
GeneralRe: VB Web Server Pin
Dave Kreskowiak11-Jan-05 15:44
mveDave Kreskowiak11-Jan-05 15:44 
QuestionBest way to stream video? Pin
[DK]KiloDunse10-Jan-05 9:41
[DK]KiloDunse10-Jan-05 9:41 
AnswerRe: Best way to stream video? Pin
Dave Kreskowiak11-Jan-05 4:15
mveDave Kreskowiak11-Jan-05 4:15 
GeneralRe: Best way to stream video? Pin
[DK]KiloDunse11-Jan-05 4:50
[DK]KiloDunse11-Jan-05 4:50 
GeneralRe: Best way to stream video? Pin
Dave Kreskowiak11-Jan-05 9:02
mveDave Kreskowiak11-Jan-05 9:02 
GeneralMoving page to the location of a textbox Pin
Member 162996410-Jan-05 8:57
Member 162996410-Jan-05 8:57 
GeneralFileSystemWatcher HELP!!! Pin
Alex Y.10-Jan-05 3:54
Alex Y.10-Jan-05 3:54 
Hi! I really need some's help who has extensive experience working with FileSystemWatcher object in vb.net. I've a production application I've written that monitors local and network files for creation/changes. My problem is that the FSW seems to be very inconsistent in picking up files. I've done extensive research and tried several methods, but overall I still have problems getting it work my way. I only monitor a handfull (10-12) files so it's not an overload of events issue. I know many of you would want to have more details before attempting to help, but I'd rather if someone who's willing to spend a bit of time to review my code in general and give me a suggestion or 2 would contact me. Any help is appreciated. I'm including the basic logic of what my application is trying to do below:

1) Service runs every 30 minutes
2) checks database for any records for files to watch
3) locates those records, creates 1 FSW object for each record with
File Name and Path pointing to the info in database, wires up OnChanged,
OnRenamed, OnCreated, and OnDeleted events to their handlers
4) Adds the instance of the FSW object to global shared Hashtable
5) Updates SQL status for this file to 2, meaning that FSW created, waiting
for the file to be generated/updated.
6) OnChanged event contains the code that reacts on 2 types of events
OnChanged and OnCreated. When it fires, it checks that the instance of FSW
that raised the event is contained in global hashtable. If so, it connects to
database and gets the XML options for this specific file (such as FTP file,
email it, back it up, etc...)
7) In OnChanged event there's loop inside of which it keeps trying to rename
the file that has raised the event to a new name (just appends one to the
end of the file name). This is done so that if the file is very large it would not
try to work with it (FTP or something else) until it's fully written.
Once it's able to rename it, it means the system no longer has a lock on the
file. It then renames the file to its original name and kicks off the
function that process the XML actions associated with this file.
8) Upon completion of all the actions or in case of failure the SQL status
for this file is updated (1 for success, 3 for failure.
9) The reference for this FSW object is removed from global hashtable.
10) Same thing is done for any other files that have been picked up by the service
when it ran initially with same logic.
11) Service runs once again in 30 minutes.
GeneralAdd complex Numbers Pin
jamieyale10-Jan-05 3:38
jamieyale10-Jan-05 3:38 
GeneralBeingRead() / EndRead() doubt Pin
carlos_rocha10-Jan-05 3:18
carlos_rocha10-Jan-05 3:18 
GeneralGetting error while compiling project Pin
abii55510-Jan-05 1:22
abii55510-Jan-05 1:22 
QuestionHow To Stretch Picture Box Manually Pin
Member 28202610-Jan-05 0:42
Member 28202610-Jan-05 0:42 
GeneralProblem with using multiple comboboxes Pin
Paul Izzo9-Jan-05 21:59
Paul Izzo9-Jan-05 21:59 
GeneralRe: Problem with using multiple comboboxes Pin
Anonymous9-Jan-05 22:43
Anonymous9-Jan-05 22:43 
GeneralRe: Problem with using multiple comboboxes Pin
Paul Izzo9-Jan-05 23:00
Paul Izzo9-Jan-05 23:00 
GeneralRe: Problem with using multiple comboboxes Pin
Anonymous9-Jan-05 23:18
Anonymous9-Jan-05 23:18 
GeneralRe: Problem with using multiple comboboxes Pin
Paul Izzo10-Jan-05 1:20
Paul Izzo10-Jan-05 1:20 
GeneralRe: Problem with using multiple comboboxes Pin
Anonymous11-Jan-05 18:07
Anonymous11-Jan-05 18:07 
GeneralRe: Problem with using multiple comboboxes Pin
Paul Izzo11-Jan-05 20:23
Paul Izzo11-Jan-05 20:23 
GeneralChange raw data string's Font and size in printing Pin
Greeky9-Jan-05 21:13
Greeky9-Jan-05 21:13 
GeneralRe: Change raw data string's Font and size in printing Pin
Dave Kreskowiak10-Jan-05 3:35
mveDave Kreskowiak10-Jan-05 3:35 
GeneralRe: Change raw data string's Font and size in printing Pin
Just Greeky Creek11-Jan-05 21:09
Just Greeky Creek11-Jan-05 21:09 
Generaladding date Pin
GaryKoh9-Jan-05 19:01
GaryKoh9-Jan-05 19:01 
GeneralRe: adding date Pin
Robert Rohde9-Jan-05 20:04
Robert Rohde9-Jan-05 20:04 
GeneralRe: adding date Pin
GaryKoh10-Jan-05 3:15
GaryKoh10-Jan-05 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.