473,382 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Too much in Load-Event?

Hello all!
This may seem stupid, but here it goes.
In my load event I have a bunch of Add Handler statements for a file watch
process.
Here is a sample. I have 8 of these little gems goin on. Basicly this is
looking for a *.rb file to create a another window in the program. I can go
into more detail if you want. The problem is, the first four events work, but
the the bottom four don't do anything. I can arrange them around, so they
all work, except if they were placed as the last four. Now this did work at
one time, but now its not.

AddHandler RollMsg.Created, AddressOf RollMsg_Created
RollMsg.Path = (TempFileSetting)
RollMsg.Filter = "*.rb"
RollMsg.IncludeSubdirectories = False
RollMsg.EnableRaisingEvents = True
AddHandler ToWatch.Created, AddressOf ToWatch_Created
ToWatch.Path = (TempFileSetting)
ToWatch.Filter = "*.to"
ToWatch.EnableRaisingEvents = True
ToWatch.IncludeSubdirectories = False

AddHandler FggWatch.Created, AddressOf FggWatch_Created
FggWatch.Path = (TempFileSetting)
FggWatch.Filter = "*.fgg"
FggWatch.IncludeSubdirectories = False
FggWatch.EnableRaisingEvents = True
AddHandler FgnWatch.Created, AddressOf FgnWatch_Created
FgnWatch.Path = (TempFileSetting)
FgnWatch.Filter = "*.fgn"
FgnWatch.IncludeSubdirectories = False
FgnWatch.EnableRaisingEvents = True

AddHandler IncWatch.Created, AddressOf IncWatch_Created
IncWatch.Path = (TempFileSetting)
IncWatch.Filter = "*.inw"
IncWatch.IncludeSubdirectories = False
IncWatch.EnableRaisingEvents = True

Any thoughts how to fix this?

Thanks!

Rudy
Apr 18 '07 #1
3 1219
On Apr 17, 10:20 pm, Rudy <R...@discussions.microsoft.comwrote:
Hello all!
This may seem stupid, but here it goes.
In my load event I have a bunch of Add Handler statements for a file watch
process.
Here is a sample. I have 8 of these little gems goin on. Basicly this is
looking for a *.rb file to create a another window in the program. I can go
into more detail if you want. The problem is, the first four events work, but
the the bottom four don't do anything. I can arrange them around, so they
all work, except if they were placed as the last four. Now this did work at
one time, but now its not.

AddHandler RollMsg.Created, AddressOf RollMsg_Created
RollMsg.Path = (TempFileSetting)
RollMsg.Filter = "*.rb"
RollMsg.IncludeSubdirectories = False
RollMsg.EnableRaisingEvents = True

AddHandler ToWatch.Created, AddressOf ToWatch_Created
ToWatch.Path = (TempFileSetting)
ToWatch.Filter = "*.to"
ToWatch.EnableRaisingEvents = True
ToWatch.IncludeSubdirectories = False

AddHandler FggWatch.Created, AddressOf FggWatch_Created
FggWatch.Path = (TempFileSetting)
FggWatch.Filter = "*.fgg"
FggWatch.IncludeSubdirectories = False
FggWatch.EnableRaisingEvents = True

AddHandler FgnWatch.Created, AddressOf FgnWatch_Created
FgnWatch.Path = (TempFileSetting)
FgnWatch.Filter = "*.fgn"
FgnWatch.IncludeSubdirectories = False
FgnWatch.EnableRaisingEvents = True

AddHandler IncWatch.Created, AddressOf IncWatch_Created
IncWatch.Path = (TempFileSetting)
IncWatch.Filter = "*.inw"
IncWatch.IncludeSubdirectories = False
IncWatch.EnableRaisingEvents = True

Any thoughts how to fix this?

Thanks!

Rudy

Have you tried moving the code to InitializeComponent, rather than the
Load event?

Apr 18 '07 #2
Nope! What is that?

"Nu********@gmail.com" wrote:
On Apr 17, 10:20 pm, Rudy <R...@discussions.microsoft.comwrote:
Hello all!
This may seem stupid, but here it goes.
In my load event I have a bunch of Add Handler statements for a file watch
process.
Here is a sample. I have 8 of these little gems goin on. Basicly this is
looking for a *.rb file to create a another window in the program. I can go
into more detail if you want. The problem is, the first four events work, but
the the bottom four don't do anything. I can arrange them around, so they
all work, except if they were placed as the last four. Now this did work at
one time, but now its not.

AddHandler RollMsg.Created, AddressOf RollMsg_Created
RollMsg.Path = (TempFileSetting)
RollMsg.Filter = "*.rb"
RollMsg.IncludeSubdirectories = False
RollMsg.EnableRaisingEvents = True

AddHandler ToWatch.Created, AddressOf ToWatch_Created
ToWatch.Path = (TempFileSetting)
ToWatch.Filter = "*.to"
ToWatch.EnableRaisingEvents = True
ToWatch.IncludeSubdirectories = False

AddHandler FggWatch.Created, AddressOf FggWatch_Created
FggWatch.Path = (TempFileSetting)
FggWatch.Filter = "*.fgg"
FggWatch.IncludeSubdirectories = False
FggWatch.EnableRaisingEvents = True

AddHandler FgnWatch.Created, AddressOf FgnWatch_Created
FgnWatch.Path = (TempFileSetting)
FgnWatch.Filter = "*.fgn"
FgnWatch.IncludeSubdirectories = False
FgnWatch.EnableRaisingEvents = True

AddHandler IncWatch.Created, AddressOf IncWatch_Created
IncWatch.Path = (TempFileSetting)
IncWatch.Filter = "*.inw"
IncWatch.IncludeSubdirectories = False
IncWatch.EnableRaisingEvents = True

Any thoughts how to fix this?

Thanks!

Rudy


Have you tried moving the code to InitializeComponent, rather than the
Load event?

Apr 19 '07 #3
Hey Null!

So I tried what you suggested. Same thing. NowI can get some of them to
work, but not all at the same time. What I have is 13 FileWatch process goin
on. Could there be too many?

Thanks!

Rudy

"Rudy" wrote:
Nope! What is that?

"Nu********@gmail.com" wrote:
On Apr 17, 10:20 pm, Rudy <R...@discussions.microsoft.comwrote:
Hello all!
This may seem stupid, but here it goes.
In my load event I have a bunch of Add Handler statements for a file watch
process.
Here is a sample. I have 8 of these little gems goin on. Basicly this is
looking for a *.rb file to create a another window in the program. I can go
into more detail if you want. The problem is, the first four events work, but
the the bottom four don't do anything. I can arrange them around, so they
all work, except if they were placed as the last four. Now this did work at
one time, but now its not.
>
AddHandler RollMsg.Created, AddressOf RollMsg_Created
RollMsg.Path = (TempFileSetting)
RollMsg.Filter = "*.rb"
RollMsg.IncludeSubdirectories = False
RollMsg.EnableRaisingEvents = True
>
AddHandler ToWatch.Created, AddressOf ToWatch_Created
ToWatch.Path = (TempFileSetting)
ToWatch.Filter = "*.to"
ToWatch.EnableRaisingEvents = True
ToWatch.IncludeSubdirectories = False
>
AddHandler FggWatch.Created, AddressOf FggWatch_Created
FggWatch.Path = (TempFileSetting)
FggWatch.Filter = "*.fgg"
FggWatch.IncludeSubdirectories = False
FggWatch.EnableRaisingEvents = True
>
AddHandler FgnWatch.Created, AddressOf FgnWatch_Created
FgnWatch.Path = (TempFileSetting)
FgnWatch.Filter = "*.fgn"
FgnWatch.IncludeSubdirectories = False
FgnWatch.EnableRaisingEvents = True
>
AddHandler IncWatch.Created, AddressOf IncWatch_Created
IncWatch.Path = (TempFileSetting)
IncWatch.Filter = "*.inw"
IncWatch.IncludeSubdirectories = False
IncWatch.EnableRaisingEvents = True
>
Any thoughts how to fix this?
>
Thanks!
>
Rudy

Have you tried moving the code to InitializeComponent, rather than the
Load event?
Apr 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ray in HK | last post by:
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE ? I found some web hosting company do not allow using LOAD DATA INFILE but allow LOAD DATA LOCAL INFILE. The reason...
6
by: JS | last post by:
EE instance DB2 v7.2.0 fixpack 3 on WIN2K. I select some data from a table A and write it to a file using the COALESCE function and whitespace as the null character: eg coalesce(col1, ' '). This...
3
by: Prince Kumar | last post by:
When running LOAD with "ALLOW READ ACCESS", I get the following error if select is running againt the table (isolation UR). load.sql --------- db2 load from /u02/data/dly_d040817_test.dat of...
2
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
1
by: dbagirltx | last post by:
We have done some testing with mixed and forgotten results. So I'm hoping that asking here can clarify some issues for us. Right now we do one weekly warm backup. Throughout the week there are...
1
by: huyuhui | last post by:
The following is a question of LOAD utility. Question: How does the DB2 enforce table check constraints for data added to table with the LOAD utility? A. With the BUILD phase of LOAD B. With the...
2
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106"....
5
by: danfan46 | last post by:
Hi. I'm on DB2 9.5.0.1 on Linux AMD 64 and the database has four partitions where catalog is on partion 0 and user data on 1 thru 3. After a load failure (path to load file was wrong) I...
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.