[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

3465.0. "Uil compiler limit to 1000 objects??" by TAV02::ITAMAR_E () Mon Oct 15 1990 05:40

Hi everybody,
    
    Is there any limitation for the number of objects in a uil file?
    One of our customers has an application that generates a uil file.
    The uil compiler aborts with  %UIL-F-SUBMIT_SPR, Internal error , when
    the number of the objects in the file grows above 1000.

    Is it a known problem? Is there any fix or workaround available??

    Any help is welcome.

    Thanks in advance,

    Itamar. 
    
                                                          
T.RTitleUserPersonal
Name
DateLines
3465.1Break it into two filesVINO::MCARLETONReality; what a concept!Mon Oct 15 1990 11:108
    
    > Is there any fix or workaround available??

    You could break up the single UIL file into two files that when
    compiled produce two UID files.  You can then pass both file names
    to DwtOpenHierarchy.

    					MJC
3465.2Submit a QAR or SPRRTL::BRINKLEYDo it right all the timeMon Oct 15 1990 11:238
>>  Is there any limitation for the number of objects in a uil file?
    
    None that I know of. What should be done here is to submit QAR or SPR
    with the version # and some pointer to the UIL file that is causing the
    error to occur.
    
    Binky
    UIL Developer
3465.3A little example please...TAV02::ITAMAR_EMon Oct 15 1990 12:4515
    RE .1

    Is it possible to get a little example that shows how to pass two file
    names to DwtOpenHierarchy?? I'll be very grateful.

    RE .2

    Of course, I'll send a QAR the moment I'll finish to create the minimum
    environment that reproduces the problem - for your convenience.


    Thanks a lot,


    Itamar.
3465.4exampleVINO::MCARLETONReality; what a concept!Mon Oct 15 1990 13:0340
    
    
    
    
    
Example of using more than one UID file:
    
static DRMHierarchy s_drm_hierarchy; /* Key to the UID files */

/* Data to interface with UIL-generated structures */

static char *uid_files[] = {
  "decw$system_defaults:menus.uid",
  "decw$system_defaults:main_window.uid",
  "decw$system_defaults:dialog_boxes.uid"
};
static DRMCount nbr_uid_files =
    (sizeof uid_files / sizeof uid_files[0]);

main()
{
    int status;
    char uidstr[512];
    int i;
    .
    .
    .
    status =
      DwtOpenHierarchy(nbr_uid_files, uid_files, NULL, &s_drm_hierarchy);
    if (status != DRMSuccess){
        uidstr[0] = '\0';
        for(i=0;i<nbr_uid_files;i++){
           if(i) strcat(uidstr,", ");
           strcat(uidstr,uid_files[i]);
        }
        printf("Can't open uid files %s\n",uidstr);
    }
}                                       
    
3465.51E6 THANKS !!!TAV02::ITAMAR_EMon Oct 15 1990 13:147
    RE .4
    
    Faster than the speed of light...
    
    Thanks for the example,
    
    Itamar.