Re: HELP!! CLW4: Another question about 'Assertion failed after COMMIT'




Robert:

Thanks for your posting. I tried to put the TCF file in a shared
network folder and
last time I checked, the file was not where I set it up to be. So I
might just first
try to fix that (putting the TCF file as common for the network) and
see if things
improve with that. I tried declaring a string where I stored the
location of the
TCF file and using it in the driver options panel for the file in the
DCT editor. It
does not seem to be working. I will try to find out the correct way to
set it.

Thanks. I will keep you informed of the progress.

Federico


Robert Peros wrote:
"fesierra" <fesierra@xxxxxxxxxxx> wrote in message
And what Assert exactly say in your version of AbFile.clw/source code?
This is the procedure code. The last ASSERT before the CheckError
routine is > the one that is failing. Maybe the relations manager is getting
confused?.<cut>
Maybe,but LOGOUT is system(driver) state,specialy if network use one
tcf(transaction control file) for a system,and is pretty stable.

From your second post" I am not using LOGOUT here.. I am using
STREAM lock the file while the loop works".

FLUSH(..) like implicite unlock, at end STREAM-ing file,because:
"A variety of data files have been tested extensively for corruption,
and at this time only one problem has been identified with the file driver.
This data corruption occurs if the following code is issued:
STREAM(file)
LOGOUT(1,file)
ROLLBACK"

For the test purpose add AssertCode for check which error are
generated.Basicly for COMMIT you have 2 errors
48 Unable to Log Transaction
91 No Logout Active

RelationManager.Update PROCEDURE(BYTE FromForm)
<cut untouched >

IF SELF.UseLogout
COMMIT
ASSERT(~ERRORCODE())
? ASSERT(~ERRORCODE(),ERRORCODE() & ' Commit err. in '
& 'RM.UpdateromForm' & THREAD())
<cut untouched >

CheckError ROUTINE
IF RetVal
IF SELF.UseLogout AND SELF.Me.File{PROP:Logout}
MESSAGE('CheckError ' & 'RM.' & THREAD())
!ToDo ROLLBACK() !Yet blocked by COMMIT
END
<cut untouched >

R.

.



Relevant Pages

  • User Account Logon Hours
    ... If they Logout, they are ... they can remain connected to the Network. ... Can someone tell me how to Force the Logoff at a Specific ... Prev by Date: ...
    (microsoft.public.backoffice.smallbiz2000)
  • Help with graphing log data
    ... I am trying to create a chart or graph that shows how many users are ... concurrently logged into an application on our network. ... For the actual data I get a log file that shows USERNAME, LOGIN, ... LOGOUT for each session in three columns that I can import into Excel. ...
    (microsoft.public.excel.charting)
  • Logging in and Profiles
    ... One computer on my network brings the profile down ... upon logon, and then, upon logout, writes it back to the ... network and deletes it off C: upon logout. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Network login timing
    ... the xp systems are setup with the standard dynamic address for their ... they login and logout from the network in seconds. ...
    (microsoft.public.windowsxp.network_web)