All documents disappears when I close the database with (NSFDbClose)
All documents disappears when I close the database with (NSFDbClose)
I developedadatabaseusingtheEXTNDallis wellbut when I close the database with NSFDbClose function , alldocumentsdisappears !!!!??? ... Any one have an idea to resolve this problème ???
I don't have much experience with the C api so I don't know how much I can help on this. I take it that you are running an agent (LS or Java?) and that you are making this C api calls in the agent? Can you post the rest of the code so I/others can see what exactly it is trying to do?
This function locks the database to delivery to the customer for it can not open with domino designer, I use a lotus script agent to call function, as follows :
Declare Function NSFDbClose2 Lib "nnotes.dll" Alias "NSFDbClose" ( Byval dbhandle As Long ) As Integer
Function DBSetHideFlag (path As String ) As Integer
Dim ReplicationInfo As DBREPLICAINFO
Dim status As Integer
Dim hDb As Long
status = NSFDbOpen2( path, hDB )
If status Then
DBSetHideFlag = status
Exit Function
End If
DBSetHideFlag = NSFDbReplicaInfoGet2 (hDB, ReplicationInfo)
Dim oldVal As Integer
oldVal = ReplicationInfo.Flags And REPLFLG_HIDDEN_DESIGN2
ReplicationInfo.Flags = ReplicationInfo.Flags Or (REPLFLG_HIDDEN_DESIGN2)
DBSetHideFlag = NSFDbReplicaInfoSet2 (hDB, ReplicationInfo)
Dim newVal As Integer
newVal = ReplicationInfo.Flags And REPLFLG_HIDDEN_DESIGN2