From: Keith (Southend)G on
On Jan 19, 4:01 pm, "Captain Jack" <CaptainJack1...(a)comcast.net>
wrote:
> "Keith (Southend)G" <keith_harr...(a)hotmail.com> wrote in message
>
> news:d4890d22-a08e-4670-874c-bddf33283e54(a)14g2000yqp.googlegroups.com...
>
>
>
> > Much appreciated Jack, don't lose any sleep over it.
> > Have a nice weekend, I have a big party tomorrow, will be great :-)
>
> Hope all went well for you... I had a head cold most of the weekend, but my
> team won their divisional playoff game, so all was not lost. :-)
>
> Jack

Had a great weekend thanks Jack, I hope you're feeling better now.

Ok thanks for the code, I substituted it for the old code and hit F5.
My Form comes up, but when I click on "Get Text" - Button1 it just
hangs with the hour glass, if then click anywhere else it say's "Form
1 (Not responding)

If I click on 'Sort Text' it pops up with this line highlighted in
yellow:
Reader As New System.IO.StreamReader(InputFile,
System.Text.Encoding.ASCII)
and a box next it saying along the lines: 'NonSupportedExeption was
unhandled' ~ The given path's format is not supported, followed by
some trouble shooting tips.
No 'Errors/Warnings/Messages' in the Error list.

Thanks

Keith (Southend)

From: Keith (Southend)G on
On Jan 19, 5:47 pm, "Keith (Southend)G" <keith_harr...(a)hotmail.com>
wrote:
> On Jan 19, 4:01 pm, "Captain Jack" <CaptainJack1...(a)comcast.net>
> wrote:
>
> > "Keith (Southend)G" <keith_harr...(a)hotmail.com> wrote in message
>
> >news:d4890d22-a08e-4670-874c-bddf33283e54(a)14g2000yqp.googlegroups.com...
>
> > > Much appreciated Jack, don't lose any sleep over it.
> > > Have a nice weekend, I have a big party tomorrow, will be great :-)
>
> > Hope all went well for you... I had a head cold most of the weekend, but my
> > team won their divisional playoff game, so all was not lost. :-)
>
> > Jack
>
> Had a great weekend thanks Jack, I hope you're feeling better now.
>
> Ok thanks for the code, I substituted it for the old code and hit F5.
> My Form comes up, but when I click on "Get Text" - Button1 it just
> hangs with the hour glass, if then click anywhere else it say's "Form
> 1 (Not responding)
>
> If I click on 'Sort Text' it pops up with this line highlighted in
> yellow:
> Reader As New System.IO.StreamReader(InputFile,
> System.Text.Encoding.ASCII)
> and a box next it saying along the lines: 'NonSupportedExeption was
> unhandled' ~ The given path's format is not supported, followed by
> some trouble shooting tips.
> No  'Errors/Warnings/Messages' in the Error list.
>
> Thanks
>
> Keith (Southend)

I should have said 'Sort Text' is my Button 2.
Also, this was when I stopped debugging, then again pressed F5 but
went straight to Button 2. It maybe coming up as Button 1 gets the
"ogimet.txt" files, so by only pressing Button 2 there is no data
perhaps?

I did try adding the full path here:
' Name of the input file (including the input folder)
Private Const InputFile As String = InputFolder & "ogimet.txt" ~
"C:/ogimet.txt"

but then it went straight to that other message.

Keith (Southend)
From: Keith (Southend)G on
On Jan 19, 6:00 pm, "Keith (Southend)G" <keith_harr...(a)hotmail.com>
wrote:
> On Jan 19, 5:47 pm, "Keith (Southend)G" <keith_harr...(a)hotmail.com>
> wrote:
>
>
>
> > On Jan 19, 4:01 pm, "Captain Jack" <CaptainJack1...(a)comcast.net>
> > wrote:
>
> > > "Keith (Southend)G" <keith_harr...(a)hotmail.com> wrote in message
>
> > >news:d4890d22-a08e-4670-874c-bddf33283e54(a)14g2000yqp.googlegroups.com....
>
> > > > Much appreciated Jack, don't lose any sleep over it.
> > > > Have a nice weekend, I have a big party tomorrow, will be great :-)
>
> > > Hope all went well for you... I had a head cold most of the weekend, but my
> > > team won their divisional playoff game, so all was not lost. :-)
>
> > > Jack
>
> > Had a great weekend thanks Jack, I hope you're feeling better now.
>
> > Ok thanks for the code, I substituted it for the old code and hit F5.
> > My Form comes up, but when I click on "Get Text" - Button1 it just
> > hangs with the hour glass, if then click anywhere else it say's "Form
> > 1 (Not responding)
>
> > If I click on 'Sort Text' it pops up with this line highlighted in
> > yellow:
> > Reader As New System.IO.StreamReader(InputFile,
> > System.Text.Encoding.ASCII)
> > and a box next it saying along the lines: 'NonSupportedExeption was
> > unhandled' ~ The given path's format is not supported, followed by
> > some trouble shooting tips.
> > No  'Errors/Warnings/Messages' in the Error list.
>
> > Thanks
>
> > Keith (Southend)
>
> I should have said 'Sort Text' is my Button 2.
> Also, this was when I stopped debugging, then again pressed F5 but
> went straight to Button 2. It maybe coming up as Button 1 gets the
> "ogimet.txt" files, so by only pressing Button 2 there is no data
> perhaps?
>
> I did try adding the full path here:
> ' Name of the input file (including the input folder)
>     Private Const InputFile As String = InputFolder & "ogimet.txt"  ~
> "C:/ogimet.txt"
>
> but then it went straight to that other message.
>
> Keith (Southend)

Just looked at Windows Task Manager while it's 'Running' Open
Text.vshost.exe CPU 99, Mem usage 30,000 to 39,000k. Not sure if this
has any significance? (I have 1Gig RAM)
No text appears in textbox1.

Tell a lie, it does, but it took about 5 minutes. Also the 2nd bit
worked really quickly.
Yes, the output looks perfect and sorted in numerical order.

This is the business Jack :-)

Keith (Southend)
From: Captain Jack on
"Keith (Southend)G" <keith_harris9(a)hotmail.com> wrote in message
news:52f68527-3b5b-4d1d-97f4-dda9d325f204(a)r19g2000yqb.googlegroups.com...
>
> Just looked at Windows Task Manager while it's 'Running' Open
> Text.vshost.exe CPU 99, Mem usage 30,000 to 39,000k. Not sure if this
> has any significance? (I have 1Gig RAM)
> No text appears in textbox1.
>
> Tell a lie, it does, but it took about 5 minutes. Also the 2nd bit
> worked really quickly.
> Yes, the output looks perfect and sorted in numerical order.
>
> This is the business Jack :-)

Good, and I'm glad you had a good weekend. I'm feeling much better today,
thanks, but I wish I could have had a weekend that wasn't all bleary from
cold medicine. :-)

The error you referenced before would happen if there was something wrong
with the file name; if it's getting that error, it probably can't find the
file.

When you push either button the first time, it's going to read the data in;
nothing will go into the text display until it's down. I'm not sure why it
would take five minutes unless you've downloaded a lot more data than I've
got here (I've got about 1400 lines in my test file, and it loads in about
two seconds on my computer. When you ckick the second button after having
clicked the first, the data's already loaded, so it would proceed directly
to making the output.

The data class could be modified to raise an event as it's reading the file
(I think; I don't know that I've ever raised events in a class constructor
before, but it would be easy to adjust if need be). The form could be
modified to read the event and update the text display as each line is read,
so you'd have a better idea of what's happening.

--
Jack


From: Keith (Southend)G on
On Jan 19, 7:56 pm, "Captain Jack" <CaptainJack1...(a)comcast.net>
wrote:
> "Keith (Southend)G" <keith_harr...(a)hotmail.com> wrote in message

> > Tell a lie, it does, but it took about 5 minutes. Also the 2nd bit
> > worked really quickly.
> > Yes, the output looks perfect and sorted in numerical order.
>
> > This is the business Jack :-)
>
> Good, and I'm glad you had a good weekend. I'm feeling much better today,
> thanks, but I wish I could have had a weekend that wasn't all bleary from
> cold medicine. :-)
>
> The error you referenced before would happen if there was something wrong
> with the file name; if it's getting that error, it probably can't find the
> file.

I may have just jumped ahead to the next step before it had 'read/
uploaded' to textbox1, thinking it was done. I'm wondering whether it
has something to do with opening in 'textbox1' as a larger file was no
problem before, when we didn't. My original thinking with the
textbox's in the form probably isn't actually required, as long as it
parses the file 'ogimet.txt' it's those output files that are
important to me.

> When you push either button the first time, it's going to read the data in;
> nothing will go into the text display until it's down. I'm not sure why it
> would take five minutes unless you've downloaded a lot more data than I've
> got here (I've got about 1400 lines in my test file, and it loads in about
> two seconds on my computer. When you ckick the second button after having
> clicked the first, the data's already loaded, so it would proceed directly
> to making the output.

Yes the file is bigger, I uploaded the latest one:
http://www.southendweather.net/ogimet.txt
This is actually my next problem, I have to download each Countries
data one at a time, first setting the dates/time etc, see:
http://www1.ogimet.com/synopsc.phtml.en
I pick 38 different Countries, which takes me about 10 minutes.
The size of the file depends on what time span I set, basically I'm
grabbing it continuously and depending on what time I do it determines
how many hours worth I need to catch up.

> The data class could be modified to raise an event as it's reading the file
> (I think; I don't know that I've ever raised events in a class constructor
> before, but it would be easy to adjust if need be). The form could be
> modified to read the event and update the text display as each line is read,
> so you'd have a better idea of what's happening.
>
> --
> Jack

Would this speed that bit up, I timed it the next time and the latest
file took 5 minutes and 20 seconds before it appeared in 'textbox1'?
Again, this wasn't a problem before.

I guess these things are trial and error, but 'when there's a will
there's a way', as they say ;-)

Out of interest where are you based?

Many thanks

Keith (Southend)