Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi

How i can remove persistence.db file created by trig ?

always getting 0x103 error code

res = IDBMGR_Remove(pIDBMgr, "persistence.db");
if (SUCCESS != res){
DBGPRINTF( "Remove PERSIST Failed");
}

Thanks
Cipson

cipson wrote:Hi
How i can remove persistence.db file created by trig ?
always getting 0x103 error code
res = IDBMGR_Remove(pIDBMgr, "persistence.db");
if (SUCCESS != res){
DBGPRINTF( "Remove PERSIST Failed");
}
Error 0x103 is EBADFILENAME.. Make sure you are referring to the right file. like fs:/mod//persistence.db
"persistence.db" - will take from the current active app directory.
Also make sure the db is not locked by the application

cipson wrote:Hi
How i can remove persistence.db file created by trig ?
always getting 0x103 error code
res = IDBMGR_Remove(pIDBMgr, "persistence.db");
if (SUCCESS != res){
DBGPRINTF( "Remove PERSIST Failed");
}
Error 0x103 is EBADFILENAME.. Make sure you are referring to the right file. like fs:/mod//persistence.db
"persistence.db" - will take from the current active app directory.
Also make sure the db is not locked by the application

> "Also make sure the db is not locked by the application"
Can you please explain me how to unlock db from app? as persitence.db is created by Trig, my actor piece has very limited control over it.
I can delete/remove other actor created files using IDBMGR_Remove(), but facing problem only with 'persistence.db'
Trig piece used to create persistency...
Thanks
Cipson

> "Also make sure the db is not locked by the application"
Can you please explain me how to unlock db from app? as persitence.db is created by Trig, my actor piece has very limited control over it.
I can delete/remove other actor created files using IDBMGR_Remove(), but facing problem only with 'persistence.db'
Trig piece used to create persistency...
Thanks
Cipson

cipson wrote:> "Also make sure the db is not locked by the application"
Can you please explain me how to unlock db from app? as persitence.db is created by Trig, my actor piece has very limited control over it.
I can delete/remove other actor created files using IDBMGR_Remove(), but facing problem only with 'persistence.db'
The trig app should not be running when you try to delete the file. Try to remove the file when trig app is exiting..
One impo point: persistence.db is not created by the actor, but by the trig framework itself, when the trig app wants to save some variable value as persistent..
Why do you want to remove the persistence.db file from the actor??

cipson wrote:> "Also make sure the db is not locked by the application"
Can you please explain me how to unlock db from app? as persitence.db is created by Trig, my actor piece has very limited control over it.
I can delete/remove other actor created files using IDBMGR_Remove(), but facing problem only with 'persistence.db'
The trig app should not be running when you try to delete the file. Try to remove the file when trig app is exiting..
One impo point: persistence.db is not created by the actor, but by the trig framework itself, when the trig app wants to save some variable value as persistent..
Why do you want to remove the persistence.db file from the actor??

ummm.... Ok, I agree with you. But I still have another opinion about it.
maple story mesos eve isk dofus kamas

ummm.... Ok, I agree with you. But I still have another opinion about it.
maple story mesos eve isk dofus kamas

finally i decided to clear the contents instead of deleting file. But i still feel that trig should provide a way to delete it.

finally i decided to clear the contents instead of deleting file. But i still feel that trig should provide a way to delete it.