Jump to content











Photo
- - - - -

[Fixed] Coolest Bug ever! ;-)


  • Please log in to reply
13 replies to this topic

#1 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 March 2010 - 05:57 PM

I have, or better said, i had a screensaver file in the Apps script folder.
To my surprise, WB080 treated it like a script and displayed it in the project tree.

But now comes the best part, remember that i said, i had!
After clicking on edit and then looking, why WB could possible think, that this was a script, i learned, that simply closing the editor again, was not the smartest move. Cause now the screensaver really is a script! :ranting2: :ranting2: :ranting2:

btw. Did i mention, that i really love it, if an application, any application overwrites my files without first asking?


:ranting2:

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 10 March 2010 - 07:59 PM

I have, or better said, i had a screensaver file in the Apps script folder.
To my surprise, WB080 treated it like a script and displayed it in the project tree.

But now comes the best part, remember that i said, i had!
After clicking on edit and then looking, why WB could possible think, that this was a script, i learned, that simply closing the editor again, was not the smartest move. Cause now the screensaver really is a script! :ranting2: :ranting2: :ranting2:

btw. Did i mention, that i really love it, if an application, any application overwrites my files without first asking?


:ranting2:

This bug is really worth to get the "Oscar" for "Surprize".

If you would not only tell stories here, but give some more information (like attaching the screen saver) it could be possible to find and fix the bug ...
You know that my magic crystal ball is currently out of order ...

Under The "Tools" button you have options to avoid the automatic save.

Peter

#3 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 10 March 2010 - 08:10 PM

@psc
try to put any .scr from your host's WINDOWS\system32\ folder into your project folder
click on edit in WB interface
then select 'Interface editor' then select 'Description' then etc.
you will see the content of the screensaver .scr suddenly destroyed
it contains these lines:
[Main]
NoWarning=False
Download_Level=0
Level=5

for me Tools > AutoSave=Ask

#4 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 March 2010 - 09:57 PM

Didn't post the screensaver, because it works with every file that ends in .scr, no matter the content.
If you click first on the source tab, you can even see it's content, which i find impressive, since most text editors would just stop at the first binary 0.

And AutoSave was of course set to Ask, else it wouldn't have been a cool bug! :ranting2:

:ranting2:

#5 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 March 2010 - 03:06 PM

What was fixed? That screensavers are treated like scripts or that WB saves without asking despite that ask is selected?

:ranting2:

#6 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 11 March 2010 - 03:51 PM

well, lets hope both:-))

#7 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 11 March 2010 - 04:05 PM

#1: Bug still form OpenBuilder times:
if (AnsiContainsText('.script.link.inf ', s)) then ...
This declares a valid WB file if the file extention matches ANYTHING of the filter string.
e.g. also an extention .s or .link.in is evaluated as valid.

#2: Now it is ONLY written into the file when [Main] exists AND only the values are written which have been changed.

Peter

#8 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 March 2010 - 04:31 PM

#2: Now it is ONLY written into the file when [Main] exists AND only the values are written which have been changed.

And in case things did got changed, will there be a dialog, before they are written, if ask is selected?

:ranting2:

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 11 March 2010 - 05:25 PM

Attached File  Best_tigung.gif   25.77KB   26 downloads
Peter :ranting2:

#10 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 March 2010 - 06:20 PM

:ranting2: :ranting2: :ranting2:

#11 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 12 March 2010 - 01:13 AM

if (AnsiContainsText('.script.link.inf ', s)) then ...

Kudos to Peter and MedEvil. This is a really ancient bug.

But shouldn't wb also work with .inf and .link files?

How will this be possible now that they don't have a [main] section?

:ranting2:

#12 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 12 March 2010 - 02:32 PM

The interesting part is however that this problem did not exist with at least the the pre 78 builds.

:ranting2:

#13 larioteo

larioteo

    Member

  • Members
  • 79 posts
  •  
    European Union

Posted 09 November 2011 - 06:52 AM

People like you medevil are here only to scare people away, aren't you?

Maybe you should develop yourself an application, let us see what bugs you will bring us on our PCs.

Sometimes some people here think they are god and can do everything, a miracle why the admins and mods don't react on such guys. If you done sometimes something good this doesn't means that you can be an a... the rest of the time.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users