Changed the code a bit. Same error.

dbID = DmGetDatabase(i++) ;

 DmDatabaseInfo(0, dbID, fileName,...) ;
Values returned seem to be valid.

{
   LocalID _dbID = DmFindDatabase(0, fileName) ;
   if( dbID != _dbID )
    dbID = _dbID ; // I've put a breakpoint here but cw didn't stop so the
ids were the same.
 }

DmOpenDBNoOverlay(0,dbID, dmModeReadOnly) ;
Open failed with the mentioned error.

Regards,
    Miro Pomsar


----- Original Message ----- 
From: "Miro Pomsar" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Thursday, March 03, 2005 17:51
Subject: Re: about memHeapCompact on NVFS devices


> Hi,
>     I'm getting this error on Treo650 simulator
>
> "vfsdbcache.c, Line:5722, non-orphan record in closed dbDesc"
>
> Sequence of calls:
> dbID = DmGetDatabase(i++) ;
>
> DmDatabaseInfo(0, dbID, ...) ;
> Values returned seem to be valid.
>
>
> DmOpenDBNoOverlay(0,dbID, dmModeReadOnly) ;
> Open failed with the mentioned error.
>
> This sequence of calls normally works. What I did was some stress testing
> by artificially lowering available memory.
>
> Regards,
>     Miro Pomsar
>
> ----- Original Message ----- 
> From: "Jan Slodicka" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[email protected]>
> Sent: Thursday, March 03, 2005 16:53
> Subject: Re: about memHeapCompact on NVFS devices
>
>
> > Interesting. With a bit of phantasy this might explain some crashes that
I
> > experienced. (Although I don't believe too much in this explanation.)
> >
> > Here is another question on T5 problems:
> > http://www.bitsnbolts.com/tungsten_t5.html states the following:
> >
> > Out of memory error during Backup/Restore operation (Dm 0201): This
error
> is
> > caused by a bug in the Treo 650/Tungsten T5 that 3rd party developers
> cannot
> > work around. Essentially, the more data you read/write from the NVFS
> system
> > on the device, the more likely you are to see this problem. This problem
> > also can show up as a random reset (Treo 650) or Fatal Exception
(Tungsten
> > T5).
> >
> > Does anybody know what they are talking about?
> > BTW, I've got once this error and there was no crash. Following trials
to
> > repeat the situation did not show any problem.
> >
> > Best regards,
> >     Jan Slodicka
> >
> >
> > ----- Original Message ----- 
> > From: "Regis St-Gelais" <[EMAIL PROTECTED]>
> > Newsgroups: palm-dev-forum
> > To: "Palm Developer Forum" <[email protected]>
> > Sent: Thursday, March 03, 2005 1:52 PM
> > Subject: about memHeapCompact on NVFS devices
> >
> >
> > > I've received an answer from PalmOne about the memHeapCompact bug on
> NVFS
> > > devices.
> > >
> > > Here is a copy of Sangram Singh post on PalmOne's NVFS Expert Event:
> > >
> > > <QUOTE>
> > > RE: MemHeapCompact on NVFS devices (T5 in my case)
> > > Posted Mar 2, 2005 by Sangram Singh
> > >
> > > Hi Regis,
> > > We have noted the issue and we will update our NVFS White paper to
> reflect
> > > this.
> > > Unfortunately, at this time there is no workaround for this issue.
> > > Thanks,
> > > Sangram
> > >
> > > </QUOTE>
> > >
> > > My question was:
> > >
> > > <QUOTE>
> > > MemHeapCompact on NVFS devices (T5 in my case)
> > > Posted Feb 16, 2005 by Regis St-Gelais
> > >
> > > it looks like one must not call MemHeapCompact
> > > when there are openned databases. If you do so it will result in a
> crash.
> > > If I compact only when all my databases are closed, I dont have any
> > problems
> > > but I am concern that other applications might have some oppened
> > databases.
> > > I dont think it would be safe to call MemHeapCompact at all.
> > > The docs says that the OS can call this function when needed so I am a
> bit
> > > consern.
> > > Also, I usualy do a MemHeapCompact after massive database
> edition/deletion
> > > to defragment the memory.
> > > So how do we defragment the memory on the T5 ?????
> > >
> > > Here are 2 links on that topic on palm-dev-forum
> > > http://news.palmos.com/read/messages?id=178642#178642
> > > and
> > > http://news.palmos.com/read/messages?id=181579
> > >
> > > </QUOTE>
> > >
> > > For those of you who have a pluggedin account, here is the link to the
> > > expert event tread:
> > >
http://developers.palmone.com/pe/forums/displaypost.jsp?postID=10134889
> > >
> > >
> > > -- 
> > > Regis St-Gelais
> > > www.laubrass.com
> > >
> > >
> > >
> > >
> > > -- 
> > > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/support/forums/
> >
> >
> > -- 
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to