You have a pointer to a structure, but you have not attached it to any structure, thus when you assign things, it is probably trying to put these things into memory which isn't yours. Dave