Hello,shoo Thanks for you did valuable works. the new lv_15.exe worked fine. no any crash has been happened. but it worked slowly. ;================================= hostname can display chinese name and english name in our localnet. the probability of crash maybe created at "invoke gethostbyaddr,addr dwIpaddr,4,2" line in multithread running. since they writted same eax at the same time. modified as following: ;=========================== pushad invoke gethostbyaddr,addr dwIpaddr,4,2 .if eax !=0 xmov lpNamebuf,[eax] .else xmov lpNamebuf,offset unknown .endif popad ;=========================== but the crash still exist there. regards
slow because only one thread works at once. do not think such registers preserving is needed - they have to be preserved by OS in the context of the thread. i still think the problem is in the amount of threads: try to do as i told you: create limited amount of threads - 10. write a proc returned next ip (its code even can be placed inside thread proc between ENter and LeaveCriticalSection) - and try it again. you can even make a constant for count of threads and when it will work - try to increase it and test. tell me if you will get a success. regards!
hello,shoo now, I can limit the Arp_IP2MAC threads amount. if i put " invoke gethostbyaddr,addr dwIpaddr,4,2 .if eax !=0 xmov lpNamebuf,[eax] .else xmov lpNamebuf,offset unknown .endif " into between ENter and LeaveCriticalSection, then lv_15.exe can't work truly. regards.
he-he... foreign code and other work do not let me concentrate well enough... so, while can you tell me "was ist das"?: Код (Text): invoke wsprintf,lpNamebuf,addr szMacFmt1,lpNamebuf ; HostName invoke wsprintf,lpIpbuf,addr szMacFmt1,lpIpbuf ; IP addresss and does it needed at all - let's see
Hello,shoo you are completely right. yeah, it is the foreign code. as told as a proverb : I drawed a snake in a paper, and added foots with it. now, limited the amount of thread is not necessary. All is ok. Thanks you very much. regards
so, now you should to go in for studing Russian to take a part in a common forum you will see the word "chin.." - "китай.." is also usable here nice proverb - can you repeat it with chineze chars here? regards!
you can also look there http://www.winasm.net/forum/index.php?showtopic=410 for my little interesting dialog box
no, it is not a translator. it is an add-in (plagin) to winasm studio, which pops unicode dialog with editor, where you can enter unicode text (even mixed with some languages) and then insert it into ansi text as dw-s (while all code editors are ansi-editors). in other side, if you use winasm, you can insert russian letters into your code as dw sequence. for example you can insert rus. word "Привет" ("Hello") into your source with it as dw 0041FH, 00440H, 00438H, 00432H, 00435H, 00442H, 00000H and compile proper independently of codepage of your editor. well, try to compile this: (just made 608430782__uhello.bat