Exe and shared library
- static resolution of call Exe and provider library Binary code when linked from various object code files into an executable has its function calls between modules resolved. When the code runs function calls are direct transfers of control. A static interface library shared library provides a fixed API that can be used by one or more programs and have the extension .dll. A polymorphic interface library provider library implements an abstract API. They usually have a single entry point that...
main body of the function
Some types of error are due to bad programs. When this type of error is discovered, the thread with the erroneous program should be terminated. In Symbian OS, this is a referred to as a panic. The only proper response to a panic is to fix the program with the error. Typically, a panic is not discovered by the program that made the error, but by some library code which operates on behalf of that program. If the library code is in a DLL running in the same thread as the program, it may use the...
Two types of dll in Symbian OS
Static interface DLL Polymorphic interface DLL In Symbian OS, there are two types of DLL static interface DLLs also known as shared library DLLs and polymorphic interface DLLs sometimes referred to as provider libraries or dynamically loaded DLLs . Both types of DLL allow other executables an .exe or another DLL to access their code. We can think of these executables as clients. The functions and static data in the DLL source code are specified in a header file .h . Some of these functions and...
symbian 1
Symbian was formed in July 1998 initially from Psion, Nokia and Ericsson with staff from Psion Software. Three months after formation Motorola joined as an owner. In 1999 Matshushita, known in the western world by the brand Panasonic, became the fifth co-owner. By October 1998 when Motorola joined the company Symbian had approximately 140 employees and started a steady growth of 20 people per month for a few years. In early 2002 Siemens became another part owner of Symbian. In mid 2003 Symbian...
use Memory Leak Detector Allocation Failure Simulator Tools
Being able to discuss exception and memory handling is necessary as well as being able to implement them We run code in which exceptions may occur, in a TRAP harness. When exceptions occur, we Leave the normal flow of execution and return to the trap harness. We implement compound objects with two-phase construction. In the first phase we put code that won't raise exceptions, code that may raise an exception is performed in the second phase. Should an object need to be cleaned up should an...
RCriticalSection Like mutex but restricted to threads within a process
As was mentioned, threads within the same process share the same address space. For this reason, a means of serialising access to shared resources is required. RSemaphore These have a count value that is decremented by calling the Wait member function of the semaphore handle and incremented by calling the Signal member function of the semaphore handle. A semaphore with a negative value implies that the requesting thread must wait for the completion of some event s i.e. wait for the semaphore to...

