> Ok,
>
> My problem definately lies in the RecordFormInit function.. I think .. Here it is.
> once I run this function I am not able to get a Ptr to object on the form.. or maybe
> just a Ptr to the form. So from what I know, this function is pretty straightforward
> and correct.. but I guess I don't know enough.. b/c it is messing everything up.
<snip>
> LCurrentStatPtr = MemHandleLock(Stat);
> LCurrentStatPtr->RecordCount = 0;
> MemHandleUnlock(Stat);
> MemPtrFree(LCurrentStatPtr);
<snip>
why are you freeing the pointer?
this may be your problem :)) the following code should work:
---
LCurrentStatPtr = MemHandleLock(Stat);
LCurrentStatPtr->RecordCount = 0;
MemHandleUnlock(Stat);
---
(assuming Stat is a valid memory handle). you want to assign
your pointer to a bit of memory (hence the lock).
you dont create any memory - you just use it. and your asking
the OS to free it? - it has not allocated any for it.
RTFM.. please.. understand what MemHandleLock and MemHandleUnlock
actually perform. i am sick of this message.
hope this helps.
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11