Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
Hello, I have a problem with XtAddTimeOut procedure. I did the following : main() { /* Init all windows, create widget to come up on screen */ XtAddTimeOut(10000,MY$PROCEDURE,0); XtMainLoop(); } MY$PROCEDURE() { printf("We are in the timer callback procedure...\n"); XtAddTimeOut(10000,MY$PROCEDURE,0); } ------ Well, this print statement is never being issued. I have also tried XtAddAppTimeOut and had the same problem. Could someone tell me what I am doing wrong? thanks in advance, $$$$ ted $$$$
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2344.1 | May be this? | STU01::BGEISELHART | Mon Feb 26 1990 06:05 | 2 | |
Just a question, how did You declare Your CallbackProcedure? Bianca | |||||
2344.2 | missing ApplicationContext parameter ... | VMSDEV::KRIEGER | Mon Feb 26 1990 15:06 | 19 | |
You have a missing parameter ... you need to add the applicationcontext code below should answer your question --- has nothing to do with how you define MY$PROCEDURE .... jim ... remember programing in decwindows is fun .,.. toplevel_object = XtInitialize ( " ", " ", NULL, 0, &argc, &argv); XtRealizeWidget (toplevel_object); XtAppAddTimeOut( XtWidgetToApplicationContext( toplevel_object ), 10000, MY$PROCEDURE , 0 ); | |||||
2344.3 | apologies needed? | MASTIC::FARRELL | Money, there is no substitute! | Mon Feb 26 1990 16:34 | 17 |
My, my, RE: .2, so quick to judge. You were incorrect. > You have a missing parameter ... you need to add the applicationcontext This is done automatically for you by XtAddTimeOut (It just calls XtAppAddTimeOut with the default context). > code below should answer your question --- has nothing to do with how > you define MY$PROCEDURE .... It had everything to do with this. After I declared MY$PROCEDURE as type XtTimerCallbackProc everything worked fine. Thank you RE: .1 $ |