FLTK logo

STR #2817

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]

STR #2817

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Add a hook to track timeouts
Version:1.3-feature
Created By:mingodad
Assigned To:matt
Fix Version:None
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 mingodad
13:35 Mar 29, 2012
timeout.patch
3k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 mingodad
13:35 Mar 29, 2012
Here is a patch to add a hook to track timeouts the main reason to implement it for me is to catch exceptions on win32 with mingw.

It is in the same line of the Fl::handle hook.

ex:

Fl::do_call_timeout_ = &my_do_call_timeouts;

void my_do_call_timeouts(Fl_Timeout_Handler th, void *data){
    try {
        (*th)(data);
    }
    catch(DBException &e)
    {
        fl_alert(e.what());
    }
 }
 
 
#2 matt
13:09 Feb 02, 2019
Sorry, but what you are doing is easily implemented by moving the try .. catch block into the timeout itself. This feature does not solve a common problem, but is very specific for your approach. I'll have to reject this.  
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.