ok this is the problem.
I am making a huge link list of bitmaps by memalocating each bit map into a link list.
this is only part of the code
struct datinmem
{
double *memb
};
datainmem dimem;
list<datainmem> memblockdata;
list<datainmem>::iterator memblocklist;
....
void adddata()
{
memblockdata.push_back(dimem);
}
...
if(dbKeyState(22)&&dbKeyState(1))
{
if(memlockdaa.end()!=memblockdata())
{
memblockdata.pop_back();
memblocklist=memblockdata.end();
if(memblocklist!=memblockdata.begin())
{
memblock--;
dimem=*memblocklist;
///4 bits too discribe a point
for(wincnt=12;wincnt<dbGetMemblockSize(1);wincnt=wincnt+4)
{
curmemblockbyteone=dimem.memb[wincnt];
curmemblockbytetwo=dimem.memb[wincnt+1];
curmemblockbytethree=dimem.memb[wincnt+2];
dbWriteMemblockByte(1,wincnt,curmemblockbyteone);
dbWriteMemblockByte(1,wincnt,curmemblockbytetwo);
dbWriteMemblockByte(1,wincnt,curmemblockbytethree);
}
dbMakeImageFromMemblock(16,1);
}
}
}
...
for(wincnt=12;wincnt<dbGetMemblockSize(1);wincnt=wincnt+4)
{
dimem[wincnt]=dimem.memb[wincnt]
}
The problem is retrieving data that i push on to the list.
I get this error as it pulls data. I get this in the autos call stack
--------------
name value
curmemblockbyteone 83
dimem {memb=0X00000000}
memb 0X000000000000
error cxx0030:error:espression connot be evaluated
--------
is this because i memalocated it and it lost the data when pushed it on the list. Maybe a better solution is just set aside a certain amout of images that get the previous image values. Then when I undo it goes to the previous image. Well I guess if your out there then you know how I solved my own problem. I not going to use memblocks but I will use Images to store previous data from last image know I have to redo code.
Go through yourself at a wall.