Thread: exceptions

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    exceptions

    Dev-c++ doesn't recognize __try __except (which I found out are called SEHs), even when I turn Error Handling on in the settings. Does anyone know how to give dev that support, I really don't feel like using a different compiler cause of that now.

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    SEH is a Microsoft-specific extension. Dev-C++ uses gnu compilers, which are not Microsoft specific.

    My advice would be to eliminate use of SEH; Standard C++ supports - portably - try and catch which functionally give the same capability as __try and __except.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Are Exceptions effective?
    By Petike in forum C++ Programming
    Replies: 5
    Last Post: 09-13-2008, 12:23 AM
  2. Intercepting Fortran exceptions
    By MarkZWEERS in forum C++ Programming
    Replies: 2
    Last Post: 08-06-2008, 09:13 AM
  3. Debug --> Exceptions in Visual Studio 2005
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 08-10-2007, 02:12 AM
  4. Need advice: catch exceptions or call methods to check bits?
    By registering in forum C++ Programming
    Replies: 1
    Last Post: 10-03-2003, 01:49 PM
  5. Throwing exceptions with constructors
    By nickname_changed in forum C++ Programming
    Replies: 14
    Last Post: 07-08-2003, 09:21 AM