Richard Robertson Posted May 29, 2010 Share Posted May 29, 2010 And reference count thing?Active in your situation. However, you are wasting time opening and closing the dll and incrementing and decrementing the reference count. Bad code can illustrate a number of situations quite easily but that doesn't make it a good thing. Link to comment Share on other sites More sharing options...
Mobius Posted May 29, 2010 Share Posted May 29, 2010 (edited) This is not true.Reference count is important.What if I do:DllOpen("mydll.dll")DllCall("mydll.dll", ...)?Clutching at straws with boxing gloves to generate context, not at all like you dude.Ed:As for Mobius... you are very uninteresting person, almost boring. Aw shucks trancexx everybody knows that, no need to project. I'm just a kitty chasing tardy threads. Edited May 30, 2010 by Mobius Link to comment Share on other sites More sharing options...
monoceres Posted May 29, 2010 Share Posted May 29, 2010 Come on. Remember that the reference count is valid across the entire process, including other modules. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
trancexx Posted May 29, 2010 Share Posted May 29, 2010 Active in your situation. However, you are wasting time opening and closing the dll and incrementing and decrementing the reference count. Bad code can illustrate a number of situations quite easily but that doesn't make it a good thing.Good.It's irrelevant to what I waste my time in this situation. The quality of code is irrelevant too. Also I have no doubt you see my point and the purpose of the code.For some others to draw conclusions.As for Mobius... you are very uninteresting person, almost boring. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Valik Posted May 29, 2010 Share Posted May 29, 2010 I think we've seen enough. We should all be able to agree that using correctly written code will produce an unpack operation each time the DLL is invoked using the DllCall("dll_name.dll") syntax.We should all be able to agree that well written code will have at most one unpack operation when the DLL is attached during DllOpen(). The DLL will not be released (DllClose() until it's usefulness is complete so each subsequent call of DllCall() does not require unpacking.We should all be able to agree that poorly written code can be used to demonstrate alternate possibilities but that such code should not be used in the real-world. If such basic mistakes are made in a real-world application then it is not a stretch to fathom other more fundamental mistakes have been made rendering the DllOpen()/DllCall() mistake moot.I don't see where this particular tangent needs to continue. 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