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

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

4155.0. "Mcc_desframe & Memory Allocation" by LFOIS1::ALIE () Fri Nov 27 1992 05:55

    Hello,
    
    
    one of my customer developp applicatiom on Decmcc,
    
    in an "acces module", they use :
    
    	Mcc_desframe_set_svr_and_reply
    
    They have pb at first time with the memory allocation ( buffer=1024)
    at the second time ( buffer=1024*2 = 2048)
    at the third time (they have a message error (memory Allocation)
    
    The question is:
    
    Can we reserve directly for insteance 8k in this buffer (and how can we
    do this?)
    Or must we work with this limitation ?
    
    PS: this pb occur only with iconic map
    
    
    thanks for your Help ....
T.RTitleUserPersonal
Name
DateLines
4155.1you can specify the Out-P buffer sizeMOLAR::ROBERTSKeith Roberts - Network Management ApplicationsFri Nov 27 1992 12:2422
    I imagine that you are refering to the 'Out-P' Call Argument.
    
    The Iconic Map is using a STATIC descriptor for Out-P .. the size if
    1024 bytes.  Because this isn't large enough for your data to return,
    the Design Framework (DFW) is 'guessing' that twice that size might
    work.  In your case, this loop is repeating a few times until the
    buffer *is* large enough.
    
    There is no external way of changing the DFW Out-P buffer logic,
    however you can detect when the buffer-too-small condition occurs, and
    change Out-P yourself.
    
    After calling Set-CVR-and-Reply, if the return status is ..
    
                              MCC_S_INSUFBUF
    
    Then set p_callargs->p_out_p->mcc_w_curlen to 8192 (or what ever value
    is best for your situation).  This will tell the Iconic Map to create
    a larger Out-P buffer (of your specified size) and call your Management
    Module again.
    
    /keith
4155.2Opps ... make that MCC_S_INSUF_BUFMOLAR::ROBERTSKeith Roberts - Network Management ApplicationsFri Nov 27 1992 12:277
    In my last reply, change:
    
    	MCC_S_INSUFBUF
    to
    	MCC_S_INSUF_BUF
    
    /keith
4155.3ThanksLFOIS1::ALIEMon Dec 07 1992 11:3710
    Thanx for your quick answer,
    
    i was in training this past week...
    
    So i give your specification to my customer tomorow.
    
    
    Thanks again, Bye
    
    /christophe