I think I figured out the lack of "this"
I needed to set A6 stack frames. It appears to
be sending the local variables to the debugger but now I found the
real error. Apparently the program is causing
a bus error when calling DmReleaseRecord() using the following:
void Period::Store (Int Record)
{
Err err=0;
char t[50];
VoidHand Handle;
StrIToA(t,(int)this);
//i = (Int *)MemPtrNew(sizeof(Int));
if ((Record == noRecordSelected)||(Record >= Count))
{ Record = Count;
}
Record =0;
Handle = DmNewRecord(PeriodDB, (UInt*)&Record,1);
err=DmGetLastErr();
err=DmReleaseRecord(Handle,0,true);
if (0==err)
Pack(Record);
//MemPtrFree(i);
}
The problem is pretty consistant. I have tried various forms
but always get the Buss error on the console when the DmReleaseRecord
is called.
What is my malfunction here? It is code similar to other times
I have used it and it works fine.
Mike
----Original Message Follows----
From: "Mike LaPaglia" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Codewarrior R5 C++ question.
Date: Tue, 19 Oct 1999 23:28:39 PDT
Hi, Can anyone tell me what might be going on here:
I have a C++ program with several classes that is in a single
segment app.
I have a global class instance which when I call in the following
order is corrupt.
global.Extract(); /this works fine and populates the class members
global.GetCount(); / this returns a static variable properly
global.Store(-1); / this is corrupt. T
he 'this' parameter while debugging is 0xFFFFFFFF for some reason.
Any other/ similar issues related to this? I have looked
around and cannot find any references to this.
Perhaps I am doing something wrong. The proper library is
being used to link with etc. Thanks in advance.
-Mike
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com