Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

clawton

@clawton
About
Posts
20
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Windows phone 10 rant
    C clawton

    I'll fill out the dozen!

    The Lounge com design

  • For the first time in 2.5 decades....
    C clawton

    But it had to be an octagon! :laugh:

    The Lounge career

  • For the first time in 2.5 decades....
    C clawton

    Programming a scanning laser for a tattoo removal device....

    The Lounge career

  • For the first time in 2.5 decades....
    C clawton

    For the first time in my two and a half decade career so far... I wrote a base class named "Shape" and derived "Square", "Circle", "Triangle" and "Octagon" classes! :-D

    The Lounge career

  • What are the "Real World" programming interview questions that everyone keeps talking about?
    C clawton

    Is WPF dead? :)

    The Lounge question career algorithms tutorial lounge

  • What are your thoughts on MS Edge browser?
    C clawton

    :laugh:

    The Lounge performance question discussion

  • What are your thoughts on MS Edge browser?
    C clawton

    I've been using it for about a month or so. I find that many of my favorite sites work just fine and appear to load fast (CP, Facebook, YouTube, etc.) but then if I stray and get sucked into something like a site with the top 17 funnies cat videos or whatnot, the pages are agonizingly slow. Probably partly due to Edge not have my beloved AdBlocker but is it really just that? Are others not seeing the hyped speed improvements too?

    The Lounge performance question discussion

  • town home property encroachment
    C clawton

    Put a cover over it that doesn't touch it but is only a foot above it! It is common space, right? Then he'll know how you feel! :mad:

    The Lounge question

  • Web Hosting Provider?
    C clawton

    I have been. But I wanted more feedback from this community. :-D

    The Lounge csharp asp-net hosting question

  • Web Hosting Provider?
    C clawton

    Can anyone recommend a good Web Hosting provider for an ASP.NET site? We're in the US - West Coast region. I'll do the legwork to see if they have all the features I need but I'm looking for mainly the best low cost provider I can get for a non-profit group. Thanks, Chris

    The Lounge csharp asp-net hosting question

  • How not to do transaction processing
    C clawton

    And its always good to keep that transaction locked while waiting for the user to dismiss the message box. :)

    The Weird and The Wonderful database help tutorial career

  • MQOTD
    C clawton

    Monty Python's "Meaning of Life" :laugh:

    The Soapbox com tools question

  • Cookie prompts?
    C clawton

    Ever turn on prompts for cookies in your browser? wow...

    The Lounge question

  • return in catch block
    C clawton

    After seeing the replies and studying the assemble code, I ended up convencing myself that all was operating as it should and I need to just be aware of it. Although I do try to code a bit differently - i.e. not put a return in a catch block. Chris

    C / C++ / MFC c++ debugging visual-studio graphics help

  • GDI+ under Windows 7
    C clawton

    A out of date graphics driver for the Win 7 machine can cause software rendering to kick in and thus be much slower.

    Graphics graphics c++ winforms question

  • Look at California
    C clawton

    And how did we run out?

    The Back Room

  • Look at California
    C clawton

    If anyone wants to see what an all democratic legislature can do "right", just take a look at California! Yep...just keep spending more...thats the sure ticket out of this mess. :mad:

    The Back Room

  • return in catch block
    C clawton

    Stuart Dootson wrote: Is it in Release or Debug mode? Debug mode. Stuart Dootson wrote: clawton wrote: The disassembly code is very strange indeed In what sense? Well, I see the line with "return 1" in there twice...:confused: Pasting from the dissassembly output window: std::vector<int> v; 004131C6 lea ecx,[ebp-34h] 004131C9 call std::vector<int,std::allocator<int> >::vector<int,std::allocator<int> > (4110C3h) 004131CE mov dword ptr [ebp-4],0 try { 004131D5 mov byte ptr [ebp-4],1 v.push_back(1); 004131D9 mov dword ptr [ebp-118h],1 004131E3 lea eax,[ebp-118h] 004131E9 push eax 004131EA lea ecx,[ebp-34h] 004131ED call std::vector<int,std::allocator<int> >::push_back (4119B5h) 004131F2 jmp $LN5 (413211h) } catch (std::exception &) { return 1; 004131F4 mov dword ptr [ebp-10Ch],1 004131FE mov dword ptr [ebp-4],0 00413205 mov eax,offset $LN9 (41321Ah) 0041320A ret void CCatchTestDlg::OnBnClickedOk() { Test(1,0); } int CCatchTestDlg::Test(int foo, unsigned char * goo) { std::vector<int> v; try { v.push_back(1); } catch (std::exception &) { return 1; } 0041320B mov eax,offset $LN5 (413211h) 00413210 ret } catch (std::exception &) { return 1; 00413211 mov dword ptr [ebp-4],0 00413218 jmp $LN9+17h (413231h) $LN9: 0041321A mov dword ptr [ebp-4],0FFFFFFFFh 00413221 lea ecx,[ebp-34h] 00413224 call std::vector<int,std::allocator<int> >::~vector<int,std::allocator<int> > (41192Eh) 00413229 mov eax,dword ptr [ebp-10Ch] 0041322F jmp $LN9+54h (41326Eh) if (v.size()) { 00413231 lea ecx,[ebp-34h] 00413234 call std::vector<int,std::allocator<int> >::size (4115A5h)

    C / C++ / MFC c++ debugging visual-studio graphics help

  • return in catch block
    C clawton

    Are there any rules of thumb, guidelines, issues with, etc... about having a return in a catch block? For example: try { // Some code... } catch (std::exception &) { // log error return -1; } Also try this test using VC with VS 2005 SP1 (Microsoft Visual C++ 2005 77626-009-0000007-41138) 1) Create standard MFC dialog based application 2) Add new method with signature: int foo(); 3) in foo add the following code: std::vector v; try { v.push_back(1); } catch (std::exception &;) { return 1; } // Just some code that does something... if (v.size()) { } return 0; 4) Step through the code in debugger. On several systems, I see the debug statement indicator move onto the line with "return 1". The disassembly code is very strange indeed. Any comments from the guru's out there? :) Thanks!

    C / C++ / MFC c++ debugging visual-studio graphics help

  • Initial size of ActiveX control.
    C clawton

    Hi - When I use CWnds's CreateControl(), it wants a rect for the size of the control. If the ActiveX control is bigger than that rect, how can the container discover this information? Thanks. Chris

    C / C++ / MFC com docker question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups