Mark Hotton's Q&A profile
Smart Device Development Pocket PC Mobile 5 app....buffer too small or too many cursors open
ok I keep getting this error....a form as one record of data in labels and a combobox to select a new person...select the person the app gets a new record into a sqlceresultset and puts the data in the form labels... if you select a new record from the combobox about 50 times ths error comes up-----HELP !!!!! i am using one sqlceconnection object (variable) for the whole app...the resultsets are dim'd as needed and closed when i'm done... what does this error mean...i have tried a bunch of stuff.... thanks I think what's happening is that you create an updatable ResultSet, but never close it. You need to close (and preferrably dispose) it when you are done with it. Same applies to the command object ...Show All
Visual Studio Tools for Office Problems creating the install package
Hi, i've managed to create the add-in that i want and i can test it on my development machine and it works fine and integrates with other projects well and all is good with the world on that front. however, when i try to build the setup project that visual studio creates for me the compiler tells me that the build has failed and gives me no errors descriptions for some reason. just says failed and gives no reasons! so i had no idea in which direction to look about solving the problem and i've searched the net up and down trying to find something but i just can't get it. i'm sure i'm doing something silly but i can't for the life of me see it. i saw an article about the whole trust and security thing and i've implemented that into my ...Show All
Visual Studio 2008 (Pre-release) SOAP authentication failed
Hi, I have browsed this forum, and I found similar question, but none of the solutions have worked for me, so maybe I am doing something silly. However, let me try to describe what I am doing (I am fairly new to wcf programming). I managed to reproduce this same problem with the selfhost application (an example on the SDK, with the ICalculator). The problem manifests itself only when the client and the service aren't running in the same domain. If they are in the same domain (on different machines), everything runs fine. If I try to run the service inside a specific domain, and the client outside (say, just logged in locally into the machine), I get the following: An unhandled exception of type 'System.ServiceModel.Security.Sec ...Show All
.NET Development HOT FIX K921883
Hi All, After implementing the HOT FIX K921883 released by microsoft , My application start giving error while executing DML statement on SQL server 2000. The underlying framework used is .NET 1.0. The hot fixed target .NET 2.0 framework. Please help me to sort resolved this problem. Thanks, There has been at least one issue discovered with 921883, so you may need to get another update. But posting the call stack may prove useful as well. http://support.microsoft.com/search/default.aspx query=921883&x=0&y=0&catalog=LCID%3D1033&spid=&qryWt=&mode=r&cus=False ...Show All
Visual Basic Waiting for a Document to Load to Process
I'm trying to process the information in an HTML file, but I can't get it to wait for the file to load before trying to process its information. Here's what I've tried (using Visual Basic/Visual Studio, but language shouldn't matter too much): Web.Navigate(" page url here" ) While (Web.ReadyState = WebBrowserReadyState.Loading) End While Dim stream As StringReader = New StringReader(Web.DocumentText) Dim num As Integer = 0 Dim currentLine As String = stream.ReadLine() Debug.Print(currentLine) While (Not currentLine.Substring(0, 4).Equals("<td>")) ........currentLine = stream.ReadLine() End While The Debug statement always prints null, and the Exception comes on that last While statement. ...Show All
Windows Forms Auto log out advice...
Hi, I need some advice/best practice on how to implement the following requirements: 1. I have an MDI application that needs to have an 'auto log out' feature that monitors for a period of inactivity before logging the current user out. 2. It needs to close all windows and display a password screen. 3. It should not attempt to auto log out if any dialog boxes are present or if any MDI child cancels its close event. I have no problem with the general mechanics of all of this. It's already implemented. The problem I have is the definition of 'period of inactivity' and how to monitor the same. Activity should include any mouse movement or keyboard press for any non-modal form, including the MDI parent and all children. M ...Show All
Visual Studio Tools for Office Trying to create a C# macro for WORD - "current .NET security policy does not permit"
Hello, When trying to run a C# application for EXCEL, downloaded from: http://www.c-sharpcorner.com/Code/2003/May/Excel2003fromCSharp.asp , I'm getting the following error: The current .NET security policy does not permit ExcelProject to run form the fold .\ExcelProject_bin\. Do not change the security policy in your computer. The .NET security policy is controlled by your administrator or the developer who wrote the custom macros. You can still edit and save the document. Contact your adminsitrator or the author of this document for further assistance. Based on previous posts, i'm starting to think the problem is related to the fact that i don't have 'Visual Studio Tools for Office' installed on my machine, but what's int ...Show All
Visual C# help with the following code
OK - I've been jealous of VB style event handling for a while, but I didn't realise it had performance issues ( which is obviously a problem in a web app, which creates the class instance on every postback ) fyi. . . I just created two identical win apps (vb/c#) - 1 form, 1 button. double clicked the buttons in each app and filled in a simple "Console.WriteLine" the vb was 28kb, the C# was 20kb the VB IDL dump was 200 kb the C# IDl dump was 80kb granted the VB has alot more extraneous "MyProject" stuff, but there was definitely a good bit more IDL in the vb form. But I am not an IDL wiz so I couldnt tell you what it all meant. So next time someone says "It all compiles to the same IDL" tell them they ...Show All
Windows Forms Hooks
Excuse me for my bad English. I got a problem. I need my application to receive notifies each time user sets the mouse cursor over files' icons and system is about to show a tip with information on this file. I mean icons which are in Windows Explorer, not within my application's window. Does anyone know how to do that You need to write a Shell Extension Handler. That's very hard to do in .NET, shell extension handlers are designed to be written in C++. How committed are you Three months of rebooting your PC every 5 minutes ok with you Start reading here ... ...Show All
Software Development for Windows Vista CreateHandle method with C# on Windows Vista
Hi All, yesterday I installed Vista on my computer and now I'm trying to compile and run some C# projects. I have an error while search the handle of a usercontrol; this is the error: Error creating window handle. Any idea Does Vista manages in a different way all this Thanx in advance Marcello I'm trying to get the handle of a UserControl with simply call this.Handle property of my usercontrol. Marcello ...Show All
SQL Server File System Task Error
Hi, I am using the 'File System Task ' to create a directory structure (e.g ..\DB; ..\DB\LOG; ..\DB\BACKUP; ) I set following properties for the single tasks: UseDirectoryIfExists = True; Operation = Create Directory; The task works fine before installing SP1 on the server. Now it creates an ERROR if the directory already exists and it is not empty. SSIS package "testcreatedirectory.dtsx" starting. Warning: 0xC002915A at Create DB Directory, File System Task: The Directory already exists. Error: 0xC002F304 at Create DB Directory, File System Task: An error occurred with the following error message: "Das Verzeichnis ist nicht leer.". (The Directory is not empty.) Task failed: Create DB Directory ...Show All
Visual Studio Team System Can not uninstall SDM model
Hi, I have a problem that is similar to this one: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=231282&SiteID=1 However I did not see if the solution is available. Basically if I remove registry entries that does not remove toolbox items. There is also another issue.. Looks like if applications/endpoints with the same names were installed before, toolbox is still trying to use old definitions even after I update registry entries/sdm files (remove old paths, add new for modified SDM ). However designer can not find abstract definitions for old items and there is a problem. One more scenario.. I remove my definitions, use "devenv /resetuserdata", reinstall my SDM files however they do not appear on th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. invalid mesh reference?
hey.. im trying to finish a directx 3d game assignment for my uni course and came to a problem i apparently cannot solve by myself. i have an arraylist containing players (objects of type Player). each of the players contains his own arraylist of characters (objects of type Character). upon a creation of the character object, specific mesh from .x file is loaded, processed and stored into charMesh variable. the meshloading method goes like this: public static void LoadMesh( D3D.Device device, string filename, string texture, ref Mesh mesh, ref Material[] meshmaterials, ref Texture[] meshtextures, ref float meshradius ) { ExtendedMaterial[] materialarray; if( MainForm.RELEASE == 1 ) mesh = Mesh.FromFile( filename, MeshFlags.Mana ...Show All
Silverlight (formerly WPF/E) How do we do a clean install for Feb CTP?
I've got Visual Studios 2k5 with SP1 If i try to uinstall the Dec Template I get "This template is dependent on the Microsoft Visual Studios 2005 Web Application Projects and its dependencies. See section 4.2.2 of the WPF/E SDK Release Notes for more information." But I can't install Microsoft Visual Studios 2005 Web Application Projects even though it told me to install "Update to Support Web Application Projects" (which installed fine) first. I though Visual Studios 2k5 SP1 was meant to solve all this Does anyone have any ideas cheers I had the same problem, I used the Windows Installer Cleanup utility http://support.microsoft.com/default.aspx/kb/290301 to remove it from the ...Show All
Visual Studio Team System Advantages of Running Loadtests using MsTest
Hey, Just curious to know if there are any advantages of using MSTest at the command prompt to run the loadtests. Will there be any improvement in the % time spent in webtest code or any increase in the load generated Thanks, I would not expect a significant performance difference when running from the command line. Typically, you're going to want to run big load tests on a set of agents, not your dev machine, so the CPU time used to display the graphs doesn't actually affect the load generation anyway. Josh ...Show All
