1. InternetReadFile crashing

Hi,
I have converted the guts of webshepherd to a routine, but have hit a
snag. It works on 5 out of 7 tests, but in two it crashes when calling
InternetFileRead (machine level exception), and I have no idea why. The
urls I am having trouble with can be found in wget.exw, at:

http://palacebuilders.pwp.blueyonder.co.uk/wget.ZIP

I've tried a few combinations of buffersize and safety margin, to no
avail. Any help/suggestions appreciated.

Regards,
Pete
-- 
  
  petelomax at fastmail.fm

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again

new topic     » topic index » view message » categorize

2. Re: InternetReadFile crashing

petelomax wrote:
> 
 but in two it crashes when calling
> InternetFileRead (machine level exception), and I have no idea why. The
> urls I am having trouble with can be found in wget.exw, at:

Pete,

Is your example suppose to crash when executed, or am I suppose to change 
something to see the crash? Because I have tried each URL and they all
work without crashing the example.

----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

3. Re: InternetReadFile crashing

just looking at the code.

  one url has a spelling error in it and
  the other has no WWWW. in it.
  Maybe you need to check for some return error.

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

4. Re: InternetReadFile crashing

Bernie Ryan wrote:

>   one url has a spelling error in it and
>   the other has no WWWW. in it.
>   Maybe you need to check for some return error.
> 

Not having the World Wide Web (www) extension would not cause a crash, and a
spelling error would just cause a 404 error, not a crash. The examples do 
not crash on my system at all. When I run each URL I get a DOS box with the
page result.

Pete what OS are you running, and what version of IE do you have on your system?

----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

5. Re: InternetReadFile crashing

C Bouzy wrote:
> 
> petelomax wrote:
> > 
>  but in two it crashes when calling
> > InternetFileRead (machine level exception), and I have no idea why. The
> > urls I am having trouble with can be found in wget.exw, at:
> 
> Pete,
> 
> Is your example suppose to crash when executed, or am I suppose to change 
> something to see the crash? Because I have tried each URL and they all
> work without crashing the example.

It all seems to work fine for me, too.  listfilter.com/Euforum seems to serve
up the default page in the case of a spelling error.  But I don't get any 
crashes (Win2K).

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

6. Re: InternetReadFile crashing

petelomax wrote:
> 
> Hi,
> I have converted the guts of webshepherd to a routine, but have hit a
> snag. It works on 5 out of 7 tests, but in two it crashes when calling
> InternetFileRead (machine level exception), and I have no idea why. The
> urls I am having trouble with can be found in wget.exw, at:
> 
> <a
> href="http://palacebuilders.pwp.blueyonder.co.uk/wget.ZIP">http://palacebuilders.pwp.blueyonder.co.uk/wget.ZIP</a>
> 
> I've tried a few combinations of buffersize and safety margin, to no
> avail. Any help/suggestions appreciated.
> 
> Regards,
> Pete
> -- 
>   
>   petelomax at fastmail.fm
> 
> -- 
> <a href="http://www.fastmail.fm">http://www.fastmail.fm</a> - Or how I learned
> to stop worrying and
>                           love email again
> 
> 

Hi there Pete,


I tried one of the sample calls that you noted 'crashed', but it didnt
crash for me.  What did happen was for some reason all the text did not
'translate' so i inserted a file open and "printf" statement to print 
everything that returned to a text file where i could read it with
notepad.

Here's the first line that returned using the line:
  res = wget("http://www.listfilter.com/EUforum/missages_full.xml") --crashes

"<html><head><title>Euphoria Programming Language
  - EUforum Message Board</title>"

without the quotes.  There were a total of 442 lines returned.


Perhaps you can provide a description of what you want this program
to do?  Im not sure what to expect from the calls or what they should
do because the func/proc names are fairly brief.

This looks pretty interesting though...i guess it would work to download
the archive descriptions too and put them all into one text file?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

7. Re: InternetReadFile crashing

<snip>
OK, thanks everyone for testing it. The problems must be my end. I did
manage to solve one problem by downloading a newer version of
wininet.dll. In answer to the questions asked, not that it really
matters any more: It gives me a machine level crash on the c_func
call. I am using w98. The wget() function just returns raw data (text)
from a html page or rss feed.

Since it works fine here on the files I actually want to play with, 
I'll stop worrying about it.

Thanks again,
Pete

new topic     » goto parent     » topic index » view message » categorize

8. Re: InternetReadFile crashing

Pete Lomax wrote:
> 

> I am using w98. 

I noticed many people here still use Win98, can I ask why? I see no
advantage using Win98 over Win2000 or XP.


----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

9. Re: InternetReadFile crashing

C Bouzy wrote:
> 
> Pete Lomax wrote:
> > 
> 
> > I am using w98. 
> 
> I noticed many people here still use Win98, can I ask why? I see no
> advantage using Win98 over Win2000 or XP.

If you have a dial-up connection you do not want to be down-loading
200 meg files just to keep win 2000 and XP secure.

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

10. Re: InternetReadFile crashing

C Bouzy wrote:
> 
> Pete Lomax wrote:
> > 
> 
> > I am using w98. 
> 
> I noticed many people here still use Win98, can I ask why? I see no
> advantage using Win98 over Win2000 or XP.
> 
> 
> ----If you continue to do what you have always done,
> you will get what you have always gotten.----

Umm, to not have to pay $90-$200 to upgrade? Although I'm using XP it is an
important point.


--
"Actually, I'm sitting on my butt staring at a computer screen."
                                                  - Tom Tomorrow

j.

new topic     » goto parent     » topic index » view message » categorize

11. Re: InternetReadFile crashing

C Bouzy wrote:

>I noticed many people here still use Win98, can I ask why? I see no
>advantage using Win98 over Win2000 or XP.
>
Can I reverse the question and ask why one would pay money to change 
from Win98 to XP or similar?

-- 
Craig

new topic     » goto parent     » topic index » view message » categorize

12. Re: InternetReadFile crashing

Craig Welch wrote:
> 
> C Bouzy wrote:
> 
> >I noticed many people here still use Win98, can I ask why? I see no
> >advantage using Win98 over Win2000 or XP.
> >
> Can I reverse the question and ask why one would pay money to change 
> from Win98 to XP or similar?
> 
> -- 
> Craig
> 
> 

Well, while I can understand the money issue, here is my reasoning:
I bought a laptop that had XP on it. Therefore I figured my desktop should be XP
as well. Win XP is more stable and secure than Win 9x. But I only had a few
problems with Win 9x. Mainly I justified it to "future-proof" myself.

Of course I think the security is still not as good as it should be (you
practically *have* to run with administrator privilidges). I still find it easier
to administer than Linux/*BSD systems. And I haven't quite got the cash for a Mac
yet.

--
"Actually, I'm sitting on my butt staring at a computer screen."
                                                  - Tom Tomorrow

j.

new topic     » goto parent     » topic index » view message » categorize

13. Re: InternetReadFile crashing

C Bouzy wrote:
> 
> Pete Lomax wrote:
> > 
> 
> > I am using w98. 
> 
> I noticed many people here still use Win98, can I ask why? I see no
> advantage using Win98 over Win2000 or XP.
> 
> 
> ----If you continue to do what you have always done,
> you will get what you have always gotten.----


As I recall the biggest problem I had upgrading from 98 to 2000 was obtaining
a computer with a faster clock speed and more ram. $$

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

14. Re: InternetReadFile crashing

> Can I reverse the question and ask why one would pay money to change
> from Win98 to XP or similar?

Windows XP is much more secure than Windows 98. In fact, any NT-based
Windows version is more secure than any Windows 9x version. Windows 9x
versions have no built-in measures for segregating users' data from
each other, nor do they have any real means of keeping [an unwanted]
someone out of the machine altogether. If you do have a "login" screen
in Windows 9x, you can just hit Cancel to go into the default user
environment. I like XP because I have my system entirely locked down.
My personal files are encrype, and you *must* log in to use anything,
even in Safe Mode.

Was it worth over $150? Probably not. Do I stand by it? Definitely.

~Greg

new topic     » goto parent     » topic index » view message » categorize

15. Re: InternetReadFile crashing

Pete Lomax wrote:
> 
> <snip>
> OK, thanks everyone for testing it. The problems must be my end. I did
> manage to solve one problem by downloading a newer version of
> wininet.dll. In answer to the questions asked, not that it really
> matters any more: It gives me a machine level crash on the c_func
> call. I am using w98. The wget() function just returns raw data (text)
> from a html page or rss feed.
> 
> Since it works fine here on the files I actually want to play with, 
> I'll stop worrying about it.
> 
> Thanks again,
> Pete
> 
> 

Hi there Pete,


Sorry, i forgot you were using Win98 so the info running in another
system probably didnt do you any good.  I'll have to reboot into
98 to see if i can recreate your problem.
I noticed one thing right away...when i count the number of
'allocates' and compare it to the number of 'frees' i get more
allocates than frees.  This usually means something is not free'd
properly or something like that.  It's probably a good idea to
go over all the allocates and all the frees and make sure the mem
is being handled properly.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

16. Re: InternetReadFile crashing

Greg Haberek wrote:
> 
> > Can I reverse the question and ask why one would pay money to change
> > from Win98 to XP or similar?
> 
> Windows XP is much more secure than Windows 98. In fact, any NT-based
> Windows version is more secure than any Windows 9x version. Windows 9x
> versions have no built-in measures for segregating users' data from
> each other, nor do they have any real means of keeping [an unwanted]
> someone out of the machine altogether. If you do have a "login" screen
> in Windows 9x, you can just hit Cancel to go into the default user
> environment. I like XP because I have my system entirely locked down.
> My personal files are encrype, and you *must* log in to use anything,
> even in Safe Mode.
> 
> Was it worth over $150? Probably not. Do I stand by it? Definitely.
> 
> ~Greg
> 
> 

Hi there Greg,


My biggest complain with WinXP is that internet sites seem to have too
much control over your computer, even after stopping and disabling
many of the so called 'services'.

Another problem i noticed is that if you have a file type open
with a given program name like "myprog.exe" and then later you
want to change it to another "myprog.exe" that resides in a 
different directory, if you go through the 'open with' file dialog
Win XP tells you that it worked, when all along it keeps the
old directory name in the registry...which of course means it's
still using the same old program instead of the new one with the
same name.  The only workaround i found so far was to edit the
registry and enter the new dir name, but maybe eliminating the
file extention from the list (in Windows Explorer) and then starting
over might work too.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

17. Re: InternetReadFile crashing

Interesting reasons why some of you still use Win98. In my opinion price
is not a valid reason not to upgrade. The average Windows OS has a life span
of 5-7 years before it is considered obsolete. That equals out to about $25
a year. That is about 7 cents a day, less than a cup of coffee or a soda.
How many products have you bought 5 or 7 years ago that you still use today?
If you are coding as a hobby then I guess it does not matter what OS you
are using, but if you are coding applications for the general public to use,
then using the latest tools and technology is very important. One year after
Vista is released MS will no longer support Win98.

----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

18. Re: InternetReadFile crashing

C Bouzy wrote:
> 
 but if you are coding applications for the general public to use,
> then using the latest tools and technology is very important. One year after
> Vista is released MS will no longer support Win98.

I will bet that there are more copies of win98 being used than
win2000 and xp put together.

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

19. Re: InternetReadFile crashing

Bernie Ryan wrote:
> 
> C Bouzy wrote:
> > 
>  but if you are coding applications for the general public to use,
> > then using the latest tools and technology is very important. One year after
> > Vista is released MS will no longer support Win98.
> 
> I will bet that there are more copies of win98 being used than
> win2000 and xp put together.

I disagree - especially not in Britain!

Alex

new topic     » goto parent     » topic index » view message » categorize

20. Re: InternetReadFile crashing

Bernie Ryan wrote:

> I will bet that there are more copies of win98 being used than
> win2000 and xp put together.

Hi Bernie,

That is a bet you would lose :) More than 70% of ALL computers in the world
use Windows XP, I read somewhere it is believed to be higher. That is higher
than all other Windows operating systems put together. If you have bought a
new PC in the past 4 or 5 years, it most likely had Windows XP installed.
Linux is not even a factor, that is why major software companies do not
bother developing popular software for Linux. Click the following link
and scroll down to the OS statistics:

http://www.w3schools.com/browsers/browsers_stats.asp



----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

21. Re: InternetReadFile crashing

C Bouzy wrote:

>Interesting reasons why some of you still use Win98. In my opinion price
>is not a valid reason not to upgrade. The average Windows OS has a life span
>of 5-7 years before it is considered obsolete. That equals out to about $25
>a year. That is about 7 cents a day, less than a cup of coffee or a soda.
>  
>
Price is not an issue ... I just see no need to upgrade my main computer.

I bought a laptop recently, and only XP was offered on it. No problem, 
but when configuring (online from Dell) I elected to take XP Home, not 
XP Pro. The system gave me all sorts of reasons why I shouldn't, with 
dire warning that my network wouldn't work. Which was a crock, I have 
two servers with Win98 networked via Ethernet, and the Laptop with XP 
networked with wireless. All connected to the Internet via a shared 
satellite connexion. To make that work properly, I de-installed 
Microsoft ICS, and put in a proxy server.

>How many products have you bought 5 or 7 years ago that you still use today?
>  
>
(Looking around) my monitors, my Palm Pilot, my speakers, my keyboard, 
my phone, my fax, my desk, my lounge chair, my coffee table (outside 
window) my car (almost), my motorbikes, my horses.

Oh, I just bought a new colour laser printer. The salesman said it 
wouldn't work with Win98. It does.

>If you are coding as a hobby then I guess it does not matter what OS you
>are using, but if you are coding applications for the general public to use,
>then using the latest tools and technology is very important. One year after
>Vista is released MS will no longer support Win98.
>  
>
Fair enough. All of my coding is for my own use. Although my computers 
also support my business, and the applications on them need to be 
robust. Word, Excel, Powerpoint, Goldmine, MYOB (accounting) etc.

I'm not -anti- XP. I just see no compelling reason to upgrade.

-- 
Craig

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu