unhandled exceptin : Unhandled Memory Exception

BlitzMax Forums/BlitzMax Programming/unhandled exceptin : Unhandled Memory Exception

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Call your Type TAdminDepartment and your field AdminDepartment that way BlitzMax knows exactly what you are referring to.

At the moment I think the compiler suspects you are actually wanting:

self.AdminDepartment=Self.AdminDepartment.CreateAdminDepartment()

which is causing a null pointer because the right hand side is using the null Self.AdminDepartment field not the TAdminDepartment type to locate the CreateAdmin function.