Click here to Skip to main content
15,881,882 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralWhat the *ell Windows Explorer? Pin
charlieg18-Jan-23 9:23
charlieg18-Jan-23 9:23 
GeneralHow old am I, according to Amazon? Pin
jsc4214-Jan-23 5:09
professionaljsc4214-Jan-23 5:09 
GeneralRe: How old am I, according to Amazon? Pin
Richard Deeming15-Jan-23 22:38
mveRichard Deeming15-Jan-23 22:38 
GeneralRe: How old am I, according to Amazon? Pin
jsc4215-Jan-23 23:05
professionaljsc4215-Jan-23 23:05 
GeneralRe: How old am I, according to Amazon? Pin
Jeremy Falcon18-Jan-23 2:53
professionalJeremy Falcon18-Jan-23 2:53 
GeneralRe: How old am I, according to Amazon? Pin
charlieg18-Jan-23 8:42
charlieg18-Jan-23 8:42 
GeneralRe: How old am I, according to Amazon? Pin
jsc4218-Jan-23 22:54
professionaljsc4218-Jan-23 22:54 
GeneralForbidden File Names? Pin
kmoorevs30-Dec-22 9:23
kmoorevs30-Dec-22 9:23 
Today, a tester reported that they were unable to launch a couple of newer executables from one of our desktop apps. By 'unable to launch' I mean that instead of the called executable starting, it was opening a web browser stating that it couldn't find the file. (also some wonderful advice about possible mispelling and refresh) Every other executable in the menu worked correctly. Confused | :confused:

My first thought was, 'silly tester, it works on my machine!' Laugh | :laugh:

My next thought was, security/av interference? Nope, they start on a double-click. It's only a problem when started as a process.

So, two exe's that were failing to launch have one thing in common...the first part of the name which happens to be 'Mosaic'. Confused | :confused:

I changed the first letter in the filename, adjusted the calling app accordingly and sure enough, it worked. OMG | :OMG: WTF | :WTF:

This just happened, so I'm still trying to figure out what exactly is going on. My guess is that 'Mosaic' in the filename is triggering a browser add-on to fire. I have customers using one of these 'modules' (the other is new) and have not had issues like this, though I don't know for sure if they were using the same OS environment as my tester. (Win11 w/latest patches) I don't have a Win11 system around (still on Win10) so I can't verify if this is a new behavior by design. Confused | :confused: Googling on the key terms isn't yielding anything useful. Sigh | :sigh:

I'm already considering what it will take to change a filename that's been in production for a few years and installed on at least a dozen customer systems. Sure, I've got a process for it, but it's not fun. Dead | X|

Edit: I've just had the same behaviour confirmed on another colleague's Win11 system. 'They hate cans!' WTF | :WTF: (or just files starting with the letters mosaic! Damnit! Mad | :mad:

Edit 2: After hands-on experimentation on my wife's Win11 laptop, I can confirm that there is an issue using ShellExecute to launch an executable with a filename starting with 'mosaic'. Doing so incorrectly starts a web browser with the message 'Hmmm, I can't find that file...Typo?'. Confused | :confused: It only happens on Win11 which is just now starting to be adopted by my users. Definitely weird.
"Go forth into the source" - Neal Morse
"Hope is contagious"


modified 3-Jan-23 9:43am.

GeneralRe: Forbidden File Names? Pin
trønderen30-Dec-22 9:52
trønderen30-Dec-22 9:52 
GeneralRe: Forbidden File Names? Pin
kmoorevs2-Jan-23 7:16
kmoorevs2-Jan-23 7:16 
GeneralRe: Forbidden File Names? Pin
Eddy Vluggen2-Jan-23 10:36
professionalEddy Vluggen2-Jan-23 10:36 
GeneralRe: Forbidden File Names? Pin
Daniel Pfeffer2-Jan-23 21:23
professionalDaniel Pfeffer2-Jan-23 21:23 
GeneralRe: Forbidden File Names? Pin
Eddy Vluggen2-Jan-23 22:43
professionalEddy Vluggen2-Jan-23 22:43 
GeneralRe: Forbidden File Names? PinPopular
haughtonomous2-Jan-23 21:47
haughtonomous2-Jan-23 21:47 
GeneralRe: Forbidden File Names? Pin
Eddy Vluggen2-Jan-23 22:52
professionalEddy Vluggen2-Jan-23 22:52 
GeneralRe: Forbidden File Names? Pin
Eddy Vluggen2-Jan-23 22:59
professionalEddy Vluggen2-Jan-23 22:59 
GeneralRe: Forbidden File Names? Pin
kmoorevs3-Jan-23 4:58
kmoorevs3-Jan-23 4:58 
GeneralRe: Forbidden File Names? Pin
Bruce Patin3-Jan-23 3:33
Bruce Patin3-Jan-23 3:33 
GeneralRe: Forbidden File Names? Pin
agolddog3-Jan-23 3:36
agolddog3-Jan-23 3:36 
GeneralRe: Forbidden File Names? Pin
kmoorevs3-Jan-23 4:59
kmoorevs3-Jan-23 4:59 
GeneralRe: Forbidden File Names? Pin
Paul Sanders (the other one)3-Jan-23 3:44
Paul Sanders (the other one)3-Jan-23 3:44 
GeneralRe: Forbidden File Names? Pin
obermd3-Jan-23 3:56
obermd3-Jan-23 3:56 
GeneralRe: Forbidden File Names? Pin
kmoorevs3-Jan-23 5:03
kmoorevs3-Jan-23 5:03 
GeneralRe: Forbidden File Names? Pin
Dave Kreskowiak3-Jan-23 6:41
mveDave Kreskowiak3-Jan-23 6:41 
GeneralRe: Forbidden File Names? Pin
Gee.3-Jan-23 9:34
Gee.3-Jan-23 9:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.