home
recent topics
recent posts
search
faq
RC-WinTrans
Forum
remember me
register
|
lost password
| |
jbronka
-
all messages by user
19.11.2015 12:06:41
Topic:
RWTCmd error code
Jan Bronka
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 ?
20.11.2015 14:28:36
Topic:
RWTCmd error code
Jan Bronka
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 ?
24.11.2015 06:15:33
Topic:
Problem with NETFilesConverter.macro file
Jan Bronka
Hello,
Regularly, after killing RCWinTrans10.exe file 'NETFilesConverter.macro' is destroyed and in result next start of RCWintrans finishes with crash.
When file will be overwritten from copy (orginal after installation) again, for some time, all is fine.
RCWinTrans10 need to be killed becase usage of automation mode case problems with closing process (even in samples there is possibility to kill process).
What can we do with this problem ?
24.11.2015 11:23:51
Topic:
Problem with NETFilesConverter.macro file
Jan Bronka
Answering your questions...
1. NETFilesConverter.macro size is significantly bigger than orginal, It is binary file I do not know what is inside however I had to add to my process restoring this file from copy to have stabil result. If you wish I can deliver to you "damaged" file.
2. I use WMI to kill RCWinTrans10.exe but similar efect I had by killing using TaskManager
3. COMAutomation mode - this is excactly what RWTCmd.exe is doing. In my particular case I have VBS script and inside I just use RCWinTrans.Application object
My current process is working in the following way (this is part of build process):
...
1. create lock (to guarantee other build process will not access RCWintrans becasue version 10 does not support it... Version 7 works perfectly)
2. kill RCWinTrans10.exe (sometimes process hangs [of time of closing is too long])
3. restore file NETFilesConverter.macro
4. perform translation process of one library (write all target files)
5. close RCWinTrans
6. kill RCWintrans10.exe (to do not have hanging processes)
7. restore file NETFilesConverter.macro (to do not leave not working RCWinTrans)
8. go to point 2 and perform another library
9. when all libraries were translated release lock
...
There is redundant killing and restoring but it is very fast compare to translation process and give me clean process...
24.11.2015 11:43:38
Topic:
RWTCmd error code
Jan Bronka
Thank you for your answer
24.11.2015 19:48:27
Topic:
Problem with NETFilesConverter.macro file
Jan Bronka
Thanks for you answers I will try to check these ideas
pages:
1
Powered by AspNetForum
6.9.6.0
© 2006-2010 Jitbit Software