home
recent topics
recent posts
search
faq
RC-WinTrans
Forum
remember me
register
|
lost password
| |
Home
»
RC-WinTrans Support
»
RWTCmd error code
For support issues and specific questions related to RC-WinTrans' use, features and functions.
show rated messages only
|
19.11.2015 12:06:41
Jan Bronka
Posts:
6
During execution of RWTCmd (RC Wintrans v. 10) from time to time application returns error code -1.
Important seems is that any calls of RWTCmd does not have /a or /keepalive arguement (it is strongly expected as RCWinTrans with this arguments does not deallocate memory)
Process we have implemented:
1. checks if database is up to date (argument /IsUpToDate)
2. If database need to be updated we call argument /Update
3. Finally we generate output file using /WriteTargetFile
Error code -1 is returned (not always) on any step of our process.
Problem does not occure if all calls are with /a or /keepalive
Can you please tell us what -1 error code means ?
0
•
permalink
20.11.2015 13:43:42
Support
Administrator
Posts:
245
> ...seems is that any calls of RWTCmd does not have /a or /keepalive arguement >
>
This is possible. Not using /a then RC-WinTrans is closed and started again (as COM server) for the next command from RWTCmd.exe.
Closing RC-WinTrans takes time to free all COM objects and to free the .NET Garbage Collection (GC). It depends on the size of
a project how long it takes to free all. RWTCmd is fast to call the next command and to start RC-WinTrans again -- before all objects are released from the previous command (previous use of RC-WinTrans).
Try: Use "Wait"/"Sleep" before calling RWTCmd for the next command. For very large projects it can take up to 1-2 minutes
until the GC is cleared and all COM objects are released -- it depends. Try it with a "Wait" of 15 sec..
Regards,
Support, Schaudin.com
0
•
permalink
20.11.2015 14:28:36
Jan Bronka
Posts:
6
We solved this problem by repeating RWTCmd call in loop up to 100 times with delay 2 seconds if returned error code is < 0 but it does not look nice and I think in professional usage (where you hve to translate ony by one several components) case serious problems. Additionally there is no possibility using RWTCmd write all output files of all language in one shot... becasue of this number of calls to RWTcmd increase (there is possibility to use API which I'm going to check)
I think problem in general is change introduced since RCWinTran9 where it is no longer possible to to start parallel operations (2 calls from batch mode in the same time). It is not possible becasue automation server in which RCWinTrans is working is started in UI mode (1 instance). For us it is serious problem becasue builder normally manage many components in the same time... so for now time of build explode becasue we have "bottle neck" by RCWintrans (we have to have queue of builds waiting till RCWintrans complete previous operation build support).
Why idea working very nice on v7 was changed ?
0
•
permalink
24.11.2015 11:40:07
Support
Administrator
Posts:
245
.
> introduced since RCWinTran9 where it is no longer possible to to start parallel operations (2 calls from
> batch mode in the same time). It is not possible becasue automation server in which RCWinTrans is working
> is started in UI mode (1 instance).
>
This is true.
Only (1) one instance of RC-WinTrans is started/used. And: (2) RC-WinTrans is started (as COM server) as
normal application (UI mode).
(2) UI mode: We cannot change this. RC-WinTrans must be started and used as COM server (as UI application).
(1) One instance: We will strive to solve this for the next service release (February/March 2016).
Regards,
Support, Schaudin.com
0
•
permalink
24.11.2015 11:43:38
Jan Bronka
Posts:
6
Thank you for your answer
0
•
permalink
show rated messages only
|
Home
»
RC-WinTrans Support
»
RWTCmd error code
Powered by AspNetForum
6.9.6.0
© 2006-2010 Jitbit Software