Geeks With Blogs
Brian Biales because blogging is just the easiest way to remember things C#
Long running query requests with IIS 7
I have a need for a highly responsive web page that must at least appear to be "pushed" information from the server as it happens, much like you'd see with an HTTP protocol based chat window. The client will utilize JavaScript, and will use JQuery and its UI plugins, and will use its AJAX support to call the requests that will only return when there is data to be "pushed". I know HTML 5 includes support for WebSockets, but I feel it is too soon to rely on them, as the spec is not yet finished and ......

Posted On Thursday, July 21, 2011 10:19 AM

Marshalling the value of a char* ANSI string DLL API parameter into a C# string
For those who do not mix .NET C# code with legacy DLL's that use char* pointers on a regular basis, the process to convert the strings one way or the other is non-obvious. This is not a comprehensive article on the topic at all, but rather an example of something that took me some time to go find, maybe it will save someone else the time. I am utilizing a third party too that uses a call back function to inform my application of its progress. This callback includes a pointer that under some circumstances ......

Posted On Thursday, June 3, 2010 1:35 PM

Dock property headaches, when the control docked to TOP overlays the top of the FILL control...
I've been fighting with this a few times, and did exactly what is described in the following article - fiddled with things until it worked. But this time I was having no luck, and googled the right words, and found this gem of an article on the Document Outline Window, a feature of VS 2005. I won't repeat what it says, just go read this article if you are tearing your hair out trying to get components to dock where you've asked them to dock, and in the order you wish them to dock... Also if you've ......

Posted On Wednesday, March 14, 2007 3:13 PM

CAB/SCSF Constants classes, their hierarchy, and Intellisense
When I generated my first SCSF "Hello World" client application to see what it was all about, I noticed that there was a folder called "Constants" and in each folder there were generated four source modules: CommandNames.cs, EventTopicNames.cs, UIExtensionSiteNames.cs, and WorkspaceNames.cs. This folder was found in the Infrastructure.Interface module, but also in each module "FooModule" I had the factory generate, it would create this folder in the two VS projects it would create, one being the ......

Posted On Monday, March 12, 2007 3:49 PM

lock, SyncLock, and the Monitor class – ensuring “single thread” access to resources in a multithreaded application
I was speaking with a colleague earlier today about a potential threading issue in his code. I suggested serializing access to his object to ensure two threads are not using it at the same time, as that could corrupt the processing. Being a relative “old-timer” who’s largest mutithreading applications were written in Visual C++ v 5 and 6, I remember heavy use of the CriticalSection, and wrapping the lock/unlock of critical sections in a class to ensure that every lock eventually got unlocked. We ......

Posted On Friday, June 19, 2009 6:39 PM

Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) training
Fellow GeeksWithBlogs blogger Patrice Calve posted a brief note earlier today about a four day class regarding the Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) taught by David Platt of Rolling Thunder that just finished up today. I have to agree completely with Patrice, having been there myself the past four days, that it was a great way to get grounded in how the SCSF and CAB work, and what "best practices" to follow when utilizing its many features. We were able ......

Posted On Friday, March 9, 2007 10:47 PM

The other way to resize - resize the contents, not the control
Most resizing logic is either geared toward running the application in different resolutions, or in keeping a control proportionately placed on a page or with reference to other controls. The Dock feature is great for handling a lot of your resizing needs as well. But I've found a solution to a different resizing problem that I'll bet others have run into as well. Let’s say I have placed three labels (or other controls) in a strip at the top of the screen, and these are resized to each be 1/3 the ......

Posted On Wednesday, June 13, 2007 11:13 PM

SCSF/CAB EventSubscription decoration's ThreadOption.UserInterface does not always work
I discovered an interesting issue while decorating an EventTopic subscription in my ModuleController for one of my modules. The decoration was like this: [EventSubscription(EventTop... ThreadOption.UserInterface)... void OnMsgReceived(object sender, EventArgs<Msg> ev) The event is fired on a non-UI thread, and I disovered this event handler was being called on that thread, NOT on the UserInterface thread as specified in the decoration. This decoration works fine in a ......

Posted On Thursday, April 12, 2007 12:15 PM

Copyright © Brian Biales | Powered by: GeeksWithBlogs.net