SGA Posted March 21, 2009 Share Posted March 21, 2009 I am using AutoItX3.dll in VB6 to automate one of the application, some times my application hangs and even my OS XP does not respond. Once i kill my exe (Which uses AutoItX3.dll), every thing returns to normal. What might be the cause? Is this due to memory leak? Thanks in advance. Link to comment Share on other sites More sharing options...
Authenticity Posted March 21, 2009 Share Posted March 21, 2009 What functions are you calling? and can you post the code that you think that may cause the memory leak? Link to comment Share on other sites More sharing options...
SGA Posted March 21, 2009 Author Share Posted March 21, 2009 These are the functions which were used extensively, i may not be able to share the code here 1. AutoItObj.WinActive 2. AutoItObj.WinGetState 3. AutoItObj.WinWaitActive 4. AutoItObj.Sleep 5. AutoItObj.WinExists 6. AutoItObj.WinMenuSelectItem 7. AutoItObj.ControlCommand 8. AutoItObj.ControlGetText 9. AutoItObj.Send 10. AutoItObj.ControlListView 11. AutoItObj.ControlGetFocus 12. AutoItObj.ControlClick 13. AutoItObj.ControlTreeView 14. AutoItObj.ControlSetText 15. AutoItObj.Opt Link to comment Share on other sites More sharing options...
Uten Posted March 21, 2009 Share Posted March 21, 2009 Would it be possible for you to create a sample project with the same behavior? How advanced is your project? Ex: One or several window, targeting external processes, Use third party controls, do you manipulate the apartment threading model, do you use other dll's? Do you have tools available to do a proper execution trace of your application (or suspected offending area of application)? I ask not because I'm likely to be able to help you out but because the information provided normally would not be enough to help people help you. Can you replace AutoItObj.Sleep with VB sleep? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
SGA Posted March 21, 2009 Author Share Posted March 21, 2009 Sure i will try to create a sample project with similar implementation and will try once, The code runs on several windows of same application and operates on all type of controls present on window. Yes i use other Dll's but thats not the problem (because the same dll's are used in other applications and not facing any issue there). Link to comment Share on other sites More sharing options...
Uten Posted March 24, 2009 Share Posted March 24, 2009 Sure i will try to create a sample project with similar implementation and will try once,Good, as simple as possible to prove/show the problem. Note: when I say "as simple as possible" I'm not saying it is easy to replicate your problem. It could easily be a daunting (and frustrating ) task to figure stuff like this. Yes i use other Dll's but thats not the problem (because the same dll's are used in other applications and not facing any issue there).That is not a good attitude, it will bite your ass badly some day. Bin there, done that..Another question. Do you use a unit test framework to verify your code? Maybee one that supports Mock objects? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
SGA Posted March 30, 2009 Author Share Posted March 30, 2009 Currently i am not using Unit Test Framework. Can you suggest me any Unit Test Framework which supports MockObjects? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now