Hi ,
My code flow is like this Main() -> GUI_DispCharAt( char c, int, int) -> GL_DispChar(c) -> GUI_Context.pAFont->pfDispChar(c);
the address of each of the above routines are: Main(): 0x 4a69
Where is the calling function located (address)?: GL_DsipChar(c): 0x2bc6
Where is the called function located (address)? :GUI_Context.pAFont->pfDispChar(c); 0x20ef
GUI_Context
I am attaching 3 files (print screen), 2 of them gives you the address of the above functions and 3rd one shows the error after executing the GUI_Context.pAFont->pfDispChar(c);
GUI_Context si strcuture;
paFont is member of GUI_context
pfDispChar () is function and member of paFont
Which memory model are you using (tiny, small, ...)? its default one i.e., small
If you look at the disassembly window what is the code generated for the function pointer invocation?: can not see the code generated after this compiler jumping out from the location and giving an error (see the error file attached)
Thansk
Sunil
Attachments:
error.png 243 KB
GL_DispChar_Address.png 266 KB
GUI_DispCharAt_Address_routine.png 261 KB