Announcement

Collapse
No announcement yet.

problem while using file_LoadFunction( )

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem while using file_LoadFunction( )

    Hi,

    I am using file_LoadFunction( ) for calling functions defined in my "MainMenu.4FN" file. When i am loading this first .4FN file its working fine and at the same time when i am trying to load another .4FN file (PhoneMak.4FN), file_LoadFunction( ) returning 0. This is my code:

    func main ()

    var rtrn,InitPhMake,SlctdPhMake;

    ScrnHndl := file_LoadFunction("MainMenu.4FN");

    if(ScrnHndl)

    ScrnHndl(INIT_MAINMENU);// Init TextBox Box

    rtrn:=ScrnHndl(GET_MM_EVENTS);

    ScrnHndl(CLOSE_TEXTBOX);

    mem_Free(ScrnHndl);

    endif

    ScrnHndl:=0;

    ScrnHndl := file_LoadFunction("PhoneMak.4FN"); //Passing file name should not exceed 10

    if(ScrnHndl)

    ScrnHndl(INIT_SCRN_CNTRL,0,0);// Init TextBox Box

    rtrn:=ScrnHndl(GET_PM_EVENT,1,&SlctdPhMake);

    ScrnHndl(CLOSE_PM_SCRN,0,0);

    mem_Free(list);

    endif
    endfunc
    Please go through this..thanks...
    RHS

  • #2


    All these functions need memory to load.

    If there isn't enough memory the function wont load (i.e. it returns 0)
    Mark

    Comment

    Working...
    X