The code is pretty simple. clstring just grabs some memory using new.This
routine is called 3 times, and on the third time I get an error that I'm
writting to an odd address in memory. (see /// error here below). I have no
idea where this could be coming from. The code doesn't change between calls.
How do people go about debugging this type of problem?
class filebase
{
FileRef Handle;
# define FILENOTOPEN 0
static UInt16 volRefNum;
bool FindVolRefNum();
bool CheckVolRefNum() const;
int RW;
protected:
clstring *PathName;
public:
filebase()
{
clstring *dummy;
dummy = new clstring("");
PathName = dummy; /// error here!
Handle = FILENOTOPEN;
}
Chris Bruner
Compulife Software Inc.
==============================================
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/