MAPanicReport Struct Reference

#include <maapi.h>

List of all members.


Detailed Description

Describes a MoSync Panic or other unrecoverable error. In MoSync Debug builds, when such an error occurs, the runtime writes an instance of this structure to a Store named "panic.report".

The length of that instance may be greater than sizeof(MAPanicReport), because of the variable-length string that may appear at its end. The member string can, then, be longer than the one byte that is declared.

To properly read an instance of this struct from a store, you should allocate a chunk of memory whose size is equal to the size of the store, then read the entire store into that chunk of memory. Then you should make a pointer of type MAPanicReport and point it to the chunk. Then you can read normally, using that pointer.

See also:
maOpenStore()

maPanic()

malloc()


Public Attributes

int runtimeId
 The type of MoSync runtime that wrote the report. A RUNTIME constant.
int reportType
int time
 The time the report was generated. The format is unix time.
int ip
int code
char string [1]


Member Data Documentation

int MAPanicReport::runtimeId
 

The type of MoSync runtime that wrote the report. A RUNTIME constant.

int MAPanicReport::reportType
 

The type report. Specifies whether the members code and string are valid. A REPORT constant.

int MAPanicReport::time
 

The time the report was generated. The format is unix time.

See also:
maTime()

int MAPanicReport::ip
 

The value of the MoSync instruction pointer at the time the report was generated. < 0 if the MoSync core was inaccessible.

int MAPanicReport::code
 

char MAPanicReport::string[1]
 


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO