User Profile
Collapse
-
I found another leak detector, GlowCode, and while I still can't get line numbers, at least I can get the function name where the leaks were allocated. I expected to see leaks in my marshaling code, and sure enough there are, but I'm also getting leaks from calling WNetAddConnecti on2 in MPR.DLL. -
I'm doing marshaling, but the biggest leaks seem to come from an OCX for scanning that I purchased.Leave a comment:
-
Memory Leak Detector for VB.NET?
I ran the trial versions of Memory Validator and .NET Memory Profiler, but I couldn't get any useful information out of either. Whatever happened to good ol' Bounds Checker? -
I was able to get them by deriving a class from DataGridView and overriding it's WndProc.Leave a comment:
-
I'm not getting any scrollbar messages in the form's WndProc function (nor any mouse wheel messages) so as I turn the mouse wheel I get no output in the immediate window from the following code:
Protected Overrides Sub WndProc(ByRef m As Message)
Debug.WriteLine (m.Msg)
MyBase.WndProc( m)
End Sub
Moving the mouse around does give me messages.Leave a comment:
-
mike1reynolds started a topic VB: How to prevent MouseWheel msgs from auto-generating scrollbar msgs?in .NETVB: How to prevent MouseWheel msgs from auto-generating scrollbar msgs?
I have a VirtualMode DataGridView that bogs down on using the mouse wheel to scroll and gets a backlog of messages such that it continues to scroll long after ceasing to turn the mouse wheel. This is because instead of generating one scrollbar message for each mouse wheel message it generates a separate scrollbar message for each line move, forcing the entire screen to refresh with each line added.
I've put in code to scroll multiple... -
mike1reynolds started a topic How to invoke an STA delegate from an MTA thread? Is marshaling required?in Visual BasicHow to invoke an STA delegate from an MTA thread? Is marshaling required?
In a background worker threads are MTA, while UI threads must be STA. Attempting to instantiate a form class in a background worker throws an exception, so invocation of a delegate is required.
My problem is that I have encapsulated all of my twain driver code into a plain class with no form which I instantiate in the background worker. If the scanner is not loaded I need to display a simple dialog, so I created a delegate on the main... -
VB.NET-APP: How to set Single Threaded Apartment model?
While my project is in an STA state, when I added a class with no form it is executing in an MTA state. I can't find any reference to MTA or STA anywhere in the entire solution. How do I set a class to run in STA rather than MTA mode?
When I try to instantiate a form object from a class with no form, I get an exception of "control cannot be instantiated because the current thread is not in a single-threaded apartment". When...
No activity results to display
Show More
Leave a comment: