GavH's Q&A profile
.NET Development How do I Dispose - it simply doesn't work...
I have a Bitmap memory leak but cannot figure out how to fix it - I have read a lot from MSDN etc but it is just a painful read and none of it seems to work... Dispose just does not seem to work, can someone please help as it would really be useful... Many thanks in advance kindest regards Sean the problem is indicated as per the following... Started at 24/01/2007 15:17:28 Get Server Names Started at 24/01/2007 15:17:28 Get Server Names Ended at 24/01/2007 15:17:31 Processing IDTProxy at 24/01/2007 15:17:31 Memory used before collection: 875168 Chart Saved to d://temporaryGraphs\IDTProxy.jpg Memory used after full collection: 29560152 Processing appnode1.qaz.com at 24/01/2007 15:18:04 Memory used before colle ...Show All
Visual Studio 2008 (Pre-release) Webservice sync limitations
Hi Everyone, I've created a vb.net app based on the n-tier design where my webservice is located on a Windows 2003 server running IIS6. My SQL Server database is on another server running Windows 200 Server and my client is Windows XP. I'm sync'ing about 20 tables with 1 of them containing approximately 200,000-300,000 records. My problem is everything works perfect except on that one large table unless I delete out some of the records. This particular table is setup as "SyncDirection.DownloadOnly" as it has monthly sales figures. When I attempt to sync that table and not limit the records my client app gives me a timeout error. If I increase the timeout within the web service proxy on the client, I then get an error on the c ...Show All
Windows Forms Combo box resizing
Just want to make sure that I have this straight and am not missing something. Unless one wants to draw their own control, the height of a combo box cannot be changed except by changing the font If that is indeed the case, then why does a combo box with a selected font (say Arial 8.25) render as different height than a text box with the same font selected That makes for one ugly form; either the text box and combo box can't be side-by-side without looking akward, or the text box and combo box can be the same size, but the fonts are significantly different. Someone, please tell me I'm missing something obvious. Thanks! ahmedilyas wrote: of course the height of the combobox can be changed, just select the combobox on the ...Show All
Windows Forms Panel/Form lost focus
I'm currently using a panel in my form to host a DirectX display. I'm using the Form's MouseWheel event for zooming and the panel's MouseMove for the panning. I've recently added a toolstrip slider to adjust a property in the display. All is working well except for once the slider is used I can no longer zoom using the form's MouseWheel event. I still register the MouseMove events on the panel, but the form's MouseWheel and KeyPress are no longer triggered. What am I missing GrkEngineer Your form has lost the focus and can't get it back. Check this thread for a work-around... ...Show All
SQL Server Cannot use credentials for proxy account
Hi, because my package does not run with SQL-Server-Agent, but without problems if started by "hand", I created a new credential which contains the information needed for the package. I did this as described on: http://msdn2.microsoft.com/en-us/library/ms190703.aspx . After that i tried to create an proxy account, but when I chose the created credential, Management Studio says "Der Proxy "[name_of_credential] ist kein gultiger Windows-Benutzer(Microsoft SQL Server, Fehler: 14529)". This means something like: "This Proxy is not a valid windows-user. Error: 14529". Any hints how to use a credential that is not a windows-user Regards, Jan Wagner GethWho wr ...Show All
Visual Studio Tools for Office Deploying Outlook Add-In (after following tutorial Part 2) - fixed!
First off, it's worth saying that VSTO 2005 is excellent both as a product and as supported by all of the great articles and samples. Office has become a very important Hosting environment for enterprise applications and VSTO (and the community) is exactly what we need. I just finally got my Outlook Add-In to work with one-click deployment, but I needed to customize the SetSecurity project referenced in the Part 2 Walk-thru. I added a "trustTargetDir" parameter and when "trustTargetDir" is true, then the AddSecurityPolicy method uses "FullTrust" o the targetDir. In my case, I'm using Redemption.dll because I need to manipulate MAPI Extended Headers, and even though I set the Interop.Redemption.dll als ...Show All
SQL Server Selecting varchar(MAX)
Hi, Hope I'm in the right forum. Is there some sort of trick to being able to see all the data in a varchar(MAX) column I'm inserting some lengthy data into varchar(MAX) columns. Running the profiler, I can see that long strings are being passed in. But, when I query (to grid, text or file), I only see the very first character. In addition, when I do a SELECT LEN(myVarcharMaxColumn), it returns 1. What am I missing here Thanks, Mike hi, as you can see by the following code, which is quite similar to your declaration, DECLARE @v varchar; SET @v = 'abcdefg'; SELECT @v; a varchar variable declared this way is defined to be 1 byte as no dimension has been specified.. you usually ...Show All
Windows Forms Toolbar and menu items
Hello everybody.. I have two problems that are making me crazy... i hope some of you can help me.. I'm developing a windows forms app, vs2003, c#, and i have a typical toolbar on the top of my forms which i use as a menu, it has some several toolbarbuttons (some of them pushbuttons, other dropdownbuttons) and i need to change the text color displayed by the buttons, using my own specified color (rgb combination) but i can't do it.. the forecolor property of the toolbar seems to have no effect and the toolbarbuttons don't have this property available, i've tried with the text as images, but it doesn't work because only accepts icon formats (16x16) anything else bigger is not displayed correctly.... On the other hand my second problem is ...Show All
SQL Server Livestats.XSP having trouble importing log files.
My company is running Livestats.XSP v7. We have been trying to import log files for a website for a few days now but Livestats keeps getting stuck randomly throughout the import process. What I mean by this is it will list all of the log files by date which have been imported, then on one date it will show as its status as "importing...". We really need to get this remedied as soon as possible and it seems that support for Livestats is slim. Does anyone any idea that could help me Thanks in advance. Tim B I am having the same problem as described as above but just with sotes hosted onanother ms webserver. I can read logs just fine from linux servers but not from wither of my windoze ...Show All
Windows Live Developer Forums Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0
Hi, I created a simple add-in for Windows Live Messenger. All it does is open a connection to a local SQL server and retrieve some information. However, as soon as it tries to open a connection, I get the following error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed I went to .NET Framework 2.0 configuration --> Runtime Security Policy --> Increase Assembly Trust and set the assembly's trust level to "Full Trust". However, I still get the same error above. I also tried to adjust zone security and set every zone's trust level to "Full Trust" as well but still no luck. Can anyone please h ...Show All
Game Technologies: DirectX, XNA, XACT, etc. help regarding a game
hi all, i need a source code of putting a ball into a basket somewhat like basketball or some similar game in xna.. can you please let me know the source code or site where i can find it Hah great quote. But if I remember right, some of LaMothe's older books predicted that Windows would never take off and DOS was here to stay, the mouse will never be used as an input device for games, and C++ will never become more popular than C. He knows his programming, sure, but foresight is not one of his best qualities. Since then, whenever I hear a prediction from LaMothe, I can only assume that the opposite will happen ...Show All
Visual Studio 2008 (Pre-release) RequestContextMessageProperty class throws NullReferenceException
The "IDisposable.Dispose()" method of the internal class RequestContextMessageProperty throws a NullReferenceException, because it does not check if the context field is null before it attempts to close it, i.e. context.Close() I came accross this bug when I used the wsProfileDualHttp Binding and executed the following code: MessageBuffer buffer = msg.CreateBufferedCopy(int.MaxValue); msg = buffer.CreateMessage(); // do stuff msg = buffer.CreateMessage(); buffer.Close(); The last line, i.e. buffer.Close(), throws the exception because it contains a RequestContextMessageProperty property that has a context field value which is null. Anybody else came accross this problem ...Show All
Visual C# Resizing form with BackgroundImage
I can't set the Hight property bigger than 780 it is stuck, why I need to enlarge ir so it will fit into printing page. ...Show All
SQL Server SSIS..Problem Parsing FlatFile Source
I'm trying to Move data from a FlatFile Source to an SQL destination row delimiter {LF} Column Delimiter is "comma" Number of columns in each row : say 7 Example Rows Example 1: 1,1,1,1,1,1,1{LF}2,2,2,2,2,2,2{LF}3,3,3,3,3,3,3{LF}4,4,4,4,4,4,4{LF} Example 2: 1,1,1,1{LF}2,2,2,2,2,2,2{LF}3,3,3,3{LF}4,4{LF} There is no problem parsing Example 1: With Example 2. The Old DTS used to parse fine..when it encounters a row delimiter it fills the rest of the columns with null... While the New SSIS flat File source is following column count in each row...and is considering " 1{LF}2" as column item rather than a row delimiter... Is there any way around it or is it a bug Thanks for any help in advance ...Show All
Visual Studio Team System Configuring Alerts
Hi, How to configure Email alerts for Test results (Unit test failure /Pass/ Incomplete code coverage) and Code analysis failure for a Team project in Team Foundation Server Thanks in advance..... Hi, I am referring to Team Build. I want to know if i could configure alert only for unit test failure or code analysis failure separately i.e have project alerts for unit test failure/code analysis along with 4 alerts already given by TFS rather than subscirbing to "BuildCompletionEvent". Thanks. ...Show All
