| View previous topic :: View next topic |
| Author |
Message |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Mar 14, 2005 2:24 pm Post subject: Windows 9x is a piece of trash |
|
|
Windows 9x is a piece of trash. It should be consigned to the dustbin of history where it belongs.
I just wasted several hours trying to work out why some code for an installer to clean up after itself worked under XP and not on 98. It turns out that if you try to FILE DELETE a file that is in use, under '98, @OK() returns True, same as it does if the operation is successful. Under XP, it correctly returns False. This is not the fault of VDS, which is simply passing on the result of the API SHFileOperation call.
The attached test.exe is a VDS 5 EXE which returns the result of trying to delete itself. I would be interested to know the results of running it on as many different variants of Windows as possible.
| Description: |
| A little test app to see the result returned by VDS after trying to delete a file that is already in use. |
|
 Download |
| Filename: |
test.exe |
| Filesize: |
9 KB |
| Downloaded: |
1504 Time(s) |
_________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Mon Mar 14, 2005 3:00 pm Post subject: |
|
|
You probably have already tested it, but on my windows XP Pro (SP2), it returns "Not OK".
Also, it returns "Not OK" on Server 2003.
_________________ Joe Floyd |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Mar 14, 2005 3:12 pm Post subject: Re: Windows 9x is a piece of trash |
|
|
| jules wrote: | Windows 9x is a piece of trash. It should be consigned to the dustbin of history where it belongs.
I just wasted several hours trying to work out why some code for an installer to clean up after itself worked under XP and not on 98. It turns out that if you try to FILE DELETE a file that is in use, under '98, @OK() returns True, same as it does if the operation is successful. Under XP, it correctly returns False. This is not the fault of VDS, which is simply passing on the result of the API SHFileOperation call.
|
Hate to tell ya this, but XP will run code with errors that
98 will not, so this may (or may not) be the fault of VDS.
Sheep and I ran into this anomaly with C code a few
months ago - he was running XP and I was running 98
SE. When we finally found and fixed the code error, it
ran fine on both.
It appears that XP either does some error-correction,
or just overlooks some things perhaps it shouldn't.
I don't remember what the code or even the app was,
maybe Sheep does.
BTW, I'm not saying 9x (lol or any other MS product) is
bug free either - 98 obviously is not...
Cheers, Mac
_________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Mon Mar 14, 2005 6:31 pm Post subject: |
|
|
Well there's an old saying:
Computers are like air-conditioners .........
Both stop working when you open windows.
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Mar 15, 2005 12:46 am Post subject: |
|
|
jules,
i ran your test program under windows 98 se and the result was "OK"
| Quote: | Computers are like air-conditioners .........
Both stop working when you open windows. |
hadn't heard that one and i like it
serge
_________________
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Mar 15, 2005 1:20 am Post subject: |
|
|
| Serge wrote: | jules,
i ran your test program under windows 98 se and the result was "OK"
| Quote: | Computers are like air-conditioners .........
Both stop working when you open windows. |
hadn't heard that one and i like it
serge |
Hi Serge,
That's exactly the problem that Jules is talking about. Windows 98 is
returning OK, meaning that it deleted the file, when it really hadn't deleted
the file. I also ran the program on Windows 98 SE with the same results.
_________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Mar 15, 2005 1:34 am Post subject: |
|
|
i understand that, bill
just confirming what jules found at his end
serge
_________________
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Mar 15, 2005 2:31 am Post subject: |
|
|
Sorry Serge, wasn't trying to seem like a smart alec , it just comes
naturally sometimes.
_________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Mar 15, 2005 7:40 am Post subject: |
|
|
no problems, bill
serge
_________________
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Mar 15, 2005 9:08 am Post subject: |
|
|
Thanks, guys.
I've had to revert to using API calls, since I didn't need to use wildcards or delete files to the recycle bin.
_________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Mar 15, 2005 9:18 pm Post subject: |
|
|
Perhaps this may explain things...
| Code: |
/*
TOP SECRET Microsoft(c) Code
Project: Chicago(tm)
Projected release-date: Summer 1998
*/
#include "win31.h"
#include "win95.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#define INSTALL = HARD
char make_prog_look_big[1600000];
void main()
{
while(!CRASHED)
{
display_copyright_message();
display_bill_rules_message();
do_nothing_loop();
if (first_time_installation)
{
make_50_megabyte_swapfile();
do_nothing_loop();
totally_screw_up_HPFS_file_system();
search_and_destroy_the_rest_of_OS/2();
hang_system();
}
write_something(anything);
display_copyright_message();
do_nothing_loop();
do_some_stuff();
if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_3.1();
do_nothing_loop();
do_nothing_loop();
}
}
if (detect_cache())
disable_cache();
if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed, very_slow);
set_mouse(action, jumpy);
set_mouse(reaction, sometimes);
}
/* printf("Welcome to Windows 3.11"); */
/* printf("Welcome to Windows 95"); */
printf("Welcome to Windows 98");
if (system_ok())
crash(to_dos_prompt);
else
system_memory = open("a:\swp0001.swp", O_CREATE);
while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
sleep(5);
}
create_general_protection_fault();
}
|
Hooligan
_________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Mar 15, 2005 9:44 pm Post subject: |
|
|
ROFL
_________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
|