mothballd's Q&A profile
.NET Development Ignoring native dll's memory problems
Hi, I am calling some native c dlls in my .net app. Sometimes due to bugs in the c dll, I get this exception in .net code: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Since we do not have access to the code of this third party dll and it will take a long time for them to fix it, is it possible to tell .net CLR to ignore memory exceptions in native dlls T ...Show All
.NET Development How to searching all rows of a Dataset for a specific piece of data?
I'm new to VB2005 Express ADO.NET. I imported data from an Excel file int a dataset and can successfully display it in a table using the built in tables. So I know the data is being imported to my program correctly. I now want to loop through all the rows of data searching for a specific item of data. For example if the dataset is a list of inventory items, I want to build a list of only those items that are out of stock. I assume the b ...Show All
.NET Development Data Connection Woes
So after a few hours of banging my head against my computer, here I am. :) Backstory: A few weeks ago I installed web matrix and MSDE Rel A so I could create some .NET pages from my local machine, connect to a remote SQL Server 2000 database, and then post the .NET pages on the web server. All went well, I could connect to the datasource it brought up the table column names, everything was perfectly working (should've been my first hint to le ...Show All
Smart Device Development WSAEINPROGRESS
When i use the method getRequestStream() of an object HttpWebRequest, and try to write to this stream i got a socket exception. The errorcode is 10036, WSAEINPROGRESS. Dim postBytes() As Byte Dim asciiEncode As Encoding = New ASCIIEncoding ...Show All
Visual Studio Express Editions Display text at certain time?
I need help with a certain part of my app. All I need to do is have a textbox display "Open" between the time "9:30AM" and "4:00PM" and then display "Closed" during the rest of the day. Any help would be great! Thanks Set a timer to go off regularly and to check DateTime.Now to see if it's between those two times, and show text accordingly. So, the code would go i ...Show All
Software Development for Windows Vista Deriving Workflow classes...
Hello, if I want to derive a class from SequentialWorkflow and then define new workflows from this derived class. When I change the base class in the partial definitions of a code workflow to my derived class it works, but when I define it using xoml there is a problem with some partial definition of the new workflow. Is there any way to resolve this example: public partial class Workflow4 : MySequentialWorkflow erro ...Show All
SQL Server How to restore, transfer or copy a sql 2005 database to sql 2000 server
Because I'm stupid I assumed, it would be simple to move a sql server 2005 database to sql server 2000, if I don't use special 2005 features. But restore completely not work. No option in case of restore OK - there are some hints about using export etc. in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=166196&SiteID=1 But it seems to be not so easy. Can someone please explain, how to do this move step by step I need complete ...Show All
Windows Forms Closing a form
I have a form that will read some information from a file when it loads. If this file is not found, I want to print a message, and then close the form. Currently, I am doing this in the OnLoad event..... if(!ReadFromFile()) { MessageBox ...Show All
.NET Development Anyone knows how to read the dumps generated by this tool?
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cptools/html/cpgrfcommonlanguageruntimeminidumptoolmscordmpexe.asp DiegoG You can open dump and minidump files as solutions in Visual Studio. Once it is loaded, press F5 to launch the debugger. The debugger will then be stopped at the point where the dump was created and you can examine callstack, memory, registers, loaded modules and so on. ...Show All
Visual Studio Team System What are visit methods?
Hello I have been using FxCop to develop my custom rules. Although I have been using various Check functions to develop all kinds of rules... I dont know the functions of various visit functions. Can anyone elaborate me briefly Also How can I access the module type in check function : public override ProblemCollection Check(string namespaceName, TypeNodeList types) I am developing a rule which requires accessing of module as well as namespace.. ...Show All
Software Development for Windows Vista Interop Problem with COM IDataObject and TOM Paste
I have been trying to access the text object model (TOM) using the RichEdit control in NET. So far I have successfully implemented most methods of the ITextDocument and ITextRange interfaces. I am now trying to implement the Paste method of the ITextRange interface which is defined as follows: STDMETHODIMP Paste(VARIANT *pVar, long Format); Where pVar is a pointer to the IDataObject to paste, but the contents of the clipboard are used if any o ...Show All
Visual Studio 2005 client and V6 Server
Does the new client work or is it supported with the new V6 server Are there any good reasons to run this way Or, what is gained by doing it The database format did not change between the previous release and 2005. This means that you can use the new tools with the older version of the product which should improve stability and reliability. VSS 2005 has a lot of stability and reliability improvements. -mark ...Show All
Windows Forms Deploying applications and the .NET framework
Hello all, I have created a vb application which i will be rolling out to machines that do not have the .NET framework. I'd prefer not go to each PC and install the framework first if possible. I though it would be good to create a fr ...Show All
.NET Development replace webbrowser contextmenu
greetings, how is this done when i add a contextmenu(strip) to a form that has a webbrowser control and then set the wb contextmenu to it, the wb still uses the default. docs don't mention any thing that this should not work. a search doesn't turn up any additional info. toggling the "iswebbrowsercontextmenu" property works fine. any ideas tia jas this works: in the Sub ...Show All
Smart Device Development Parameterized Query Issues
Hey everyone, I have a Windows Mobile 5 Smart Device Project that has a SQL Mobile data source. I am pulling a table onto my form to create a grid. When I select the Add Query option under DataGrid Tasks, I would like to be able to do a couple of things that the IDE will not let me. First, I need to be able to edit the base query. I have not found a way to create views in the IDE, and this database is being replicated from the server, b ...Show All
