MoSync 3.0.1
MAPanicReport Struct Reference

A MoSync Panic or other unrecoverable error. More...

#include <maapi.h>

List of all members.

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]

Detailed Description

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()

Member Data Documentation

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

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

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

See also:
maTime()

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines