Notepad++ god damned exception



  • I just got this error from Notepad++ (otherwise excellent program btw).

    (I have a vague memory that this may have been posted, but couldn't find it, so.. bugger it)

     



  • "This image does not exist on this server"?



  •  Edit expired, sigh. Here:

     



  • The Real WTFTM is that it isn't a God-damned exception. It's clearly a Beastly exception.



  • From winmain.cpp in the NPP source:

     

    	try {
    notepad_plus_plus.init(hInstance, NULL, quotFileName.c_str(), &cmdLineParams);
    bool unicodeSupported = notepad_plus_plus.getWinVersion() >= WV_NT;
    bool going = true;
    while (going)
    {
    going = (unicodeSupported?(::GetMessageW(&msg, NULL, 0, 0)):(::GetMessageA(&msg, NULL, 0, 0))) != 0;
    if (going)
    {
    // if the message doesn't belong to the notepad_plus_plus's dialog
    if (!notepad_plus_plus.isDlgsMsg(&msg, unicodeSupported))
    {
    if (::TranslateAccelerator(notepad_plus_plus.getHSelf(), notepad_plus_plus.getAccTable(), &msg) == 0)
    {
    ::TranslateMessage(&msg);
    if (unicodeSupported)
    ::DispatchMessageW(&msg);
    else
    ::DispatchMessage(&msg);
    }
    }
    }
    }
    } catch(int i) {
    if (i == 106901)
    ::MessageBox(NULL, "Scintilla.init is failed!", "Notepad++ Exception: 106901", MB_OK);
    else {
    char str[50] = "God Damned Exception : ";
    char code[10];
    itoa(i, code, 10);
    ::MessageBox(NULL, strcat(str, code), "Notepad++ Exception", MB_OK);
    }
    doException(notepad_plus_plus);
    }


  •  I like NotePad++ but I'm waiting for the day they put pcre in it. As it stands the regular expressions are from the stone age. And I hate flint.



  • This message is well known to Notepad++ users, and has been entrenched through defending against attacks from oversensitive fundamentalists. Not going away any day soon (nor are the Notepad++ thong/T-bar pants!)

    Per  Ren, the regex can be a minor nuisance, but to be fair that's in the domain of the Scintilla project, not Notepad++ (nor Geany, nor any of the other great editors based on Scintilla).



  • TRWTF is that it catches [i]int[/i].
    Okay, I admit that I threw a bool once, but it was in a solely personal program!



  • @Spectre said:

    TRWTF is that it catches int.
    Ugh! That's nasty, I hadn't noticed that!

    @Spectre said:

    Okay, I admit that I threw a bool once, but it was in a solely personal program!
    I've thrown all sorts of things in the past, but no-one throws things like my old boss from my first job; those things left a mark!



  • @rosko said:

    Ugh! That's nasty, I hadn't noticed that!



  • I may be missing something, but what's the problem of throw an int? <sarcasm level="slight">If you're throwing something around, you might want to throw something light.</sarcasm>

    If the int is used as an index for a LUT, is there any problem with that which I might be missing?

    ... I know this doesn't seem to be the case; unless it's up to the user to go look up the exception somewhere, perhaps by emailing the developer.



  • @Zecc said:

    I may be missing something, but what's the problem of throw an int?

    1. You can't attach parameters to ints.
    2. You can't inherit ints and catch the base later.


  • Yeah. Duh!



  • @rosko said:

    no-one throws things like my old boss from my first job; those things left a mark!

    You worked for Microsoft?


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.