justin000's Q&A profile
Visual Studio Team System IDE Attempted to read or write protected memory
I am seeing these errors frequently with VS 2005 RC1. I do not recognize any pattern that causes the errors, but I am going to guess that it is somehow related to aborted a debugging session on a webtest because that is what I was just now doing when I got the errors. --------------------------- Microsoft Visual Studio --------------------------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. --------------------------- OK --------------------------- followed by: --------------------------- Microsoft Visual Studio --------------------------- Unspecified error -------------- ...Show All
Visual C# How to build an editor like DataSourceListEditor?
How do I make an editor like the DataSourceListEditor in VS.NET 2005 That editor really handy. Instead of showing a dialog, just click to drop down and close up, so good huh Yes, that's it. I've used Reflector and see lots of interesting thing. I've found some links: The ColorPicker WinForms Control - http://www.vbinfozine.com/a_colorpicker.shtml http://www.classdotnet.com/pages/Design.IWindowsFormsEditorService.html http://www.devx.com/DevX/Article/20920/0/page/7 My favourist is these articles of vbaccelerator: http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/index.asp But it seems that .NET 2.0 gives us no good way t ...Show All
SQL Server How to upgrade from SQLXML3
I have written a whole bunch of XML and XSD files for SQLXML3 but now with Yukon-Beta2 I find no way (and the docs pretend it has never been there) to actually use these files with SQLXML4! ! It can't be that I really need to re-design all these schemas and convert them to SP's and then REWRITE my apps which used XPATH over HTTP queries to utilize the new SOAP functionality. Any help would be apprechiated! Hi Todd, thanks for the answer - I was guessing such. I just find it amusing that noone bothers to mention it - officially!! Even NO WORD on www.sqlxml.org or any other blogs or sites. ...Show All
Software Development for Windows Vista Notification on Windows Text change
Hello, I have a question in SDK windows programming. I have a window control, implemented as an editable control for user to enter text. User can add text in the window control either by typing through keypad or copy/paste using mouse. I call GetWindowText() to read text from the control. I want to display a message while user is entering text or copying a value, if the text exceeds a certain length. I am aware that I can trap keyboard and mouse events to do this. But I would like to know if there is any way to get notified, when there is a change in text on a window control Your response is appreciated. Thanks. Correct ...Show All
Visual C# Adding to DataGridView in ASPX
Is it possible to add drop-down lists to a datagridview object This is in ASPX, not Windows forms. Thanks, TomK. Yes it is possible. I think you'll need to use templatecolumn and in item_created event, you'll need to bind it... a quick search at google should help.. http://www.google.com.tr/search hl=tr&q=using+dropdown+in+datagrid+asp.net&btnG=Ara&meta = ...Show All
Visual Basic Return the line number where an exception has occurred.
I am looking for a method to return the line number of the code where an exception has occurred so I can include it in my alert message. Does anyone have an example that would help identify the location of the exception. Any help would be greatly appreciated. In a debug build where you have debug symbols the exception's stack trace should automatically include that information. I wouldn't recommend displaying exception messages to an end user. ...Show All
Visual C# Nice Threads!
I could really use some help here... I am using C# 2005 and have created a splash screen that runs on a seperate thread. I can invoke the splash screen in the Main() method, but then I can't get rid of it! I am attempting to put a line in the Form1_Load (or maybe Form1_Shown) that calls a static method in the splash screen to close that form. But, when I do so, it complains about an invalid cross-thread operation. How can I get this screen to close Here are the relevant parts to my splash screen: // Static Public Method to launch Splash Screen static public void ShowSplash() { if (ms_frmSplash != null) return; ms_Thread = new Thread ...Show All
Visual C# Threading - ActiveX Events/Objects
Hi, I have a threading problem that drives me absolutely nuts and I don't know what to do: I'm using an ActiveX object and subscribe to one of its events. Whenever I execute the method that drives the event, a couple events are triggered. The event response holds an ActiveX object which I need to work with. What happens now is that whenever the event response returns it runs on a different thread. I want to store the event response activex object in a Hashtable which was created on the main thread. Now, when all the events are done, I continue processing on the main thread. But here's the odd thing: All the actvivex objects in the hashtab ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Probably stating the obvious here...
I am making a game using visual studio .net 2003 with directx 9 2005 update. I create a deployment project with visual studio that includes all directx.dll files and other detected dependancies. I deploy the game to the computer on which it was developed and it works fine. Now I want to test the networking so I deploy it to a laptop. The laptop is running windows xp with SP 2 (so .net framework is there obviously) I also installed latest runtime on this laptop. When I try to run the game, it says: "Application has generated an exception that could not be handled" It may be that the game itself is throwing some ki ...Show All
.NET Development Retrieve images from Access database
Hi All, How to display images stored in databse on a Webform. I am Using OleObject to save the image(jpg) to database. I searched all websites and used the following code.But still i am not able to diaplay. Please help me out. The code is System.Data.OleDb.OleDbConnection Con = new System.Data.OleDb.OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\images.mdb;"); System.String SqlCmd = "SELECT Image FROM Images"; System.Data.OleDb.OleDbCommand OleDbCmdObj = new System.Data.OleDb.OleDbCommand(SqlCmd, Con); Con.Open(); System.Data.OleDb.OleDbDataReader OleReader = OleDbCmdObj.ExecuteReader(); while (OleReader.Rea ...Show All
Visual Studio DateTime picker and the ReportViewer
Hi, I am running SQL Server 05 (SP 1 CTP) and Visual Studio 05. Is the reportViewer used for the Asp.net webforms supposed to have a working date time picker control I know that this was an issue on the beta 2 but I am still expericiencing the same problem. The date report parameters work fine on the preview but when displayed on the ReportViewer in a webform they don't work. I am running version 8.0.0.0 of the Microsoft.ReportViewer.WebForms Thanks, Mauricio Can you be more specific about how it doesn't work Do you get an error message Does the calendar not show up at all ...Show All
SQL Server SSIS Optimization
Hi There We have a package that simply reads a rows from a table and puts it into a flat file destination, this repeats through a for each loop. It is a very simple package. Problem is it takes 10 minutes to do a thousand rows. This is incradible slow, i have check indexes are fine, the table are only 1000 rows, but it seems to only read and write about 3 rows a second, this is crawling. Please how can we make tis faster, are there any obviously properties setting we should be checking We have started using SSIS alot around here, main problem is that all our packages seem very slow ! Whether they run in GUI debug or in a job in sql server ( ...Show All
Visual Basic Trying to write an Excel Formula using a VB.Net variable
I am trying to add a formula that will subtract Column C from B through code, but I don't know how to format the formula using a variable in my code to move to another cell. I more then likley going about this wrong, so any help would be appreciated. The following works with the exception of the formula. Please Help. Dim xlApp As Microsoft.Office.Interop.Excel.Application Dim xlBook As Microsoft.Office.Interop.Excel.Workbook Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet Dim lb As Integer xlApp = CreateObject( "Excel.Application" ) xlBook = xlApp.Workbooks.Add() xlSheet = xlBook.Wor ...Show All
Software Development for Windows Vista Beta 2-Lab 1: EventDeliveryFailedException
Not withstanding the Labs are possible not full-proof, can anyone explain what is going on when I try to say 'Reject' a previously 'Approved' report I'm getting this: An exception of type 'System.Workflow.Activities.EventDeliveryFailedException' occurred in System.Workflow.Activities.dll but was not handled in user code Additional information: Event "ExpenseReportReviewed" on interface type "ExpenseLocalServices.IExpenseService" for instance id "71708a60-d9a5-4dcd-b9fa-3ede9769a7eb" cannot be delivered. Cheers, Hi there JB. Because yo ...Show All
Visual FoxPro Inserting and Updating images file from VFP9 to SQL Server 2005
i am developing a form where i am collecting personal information such as name, address and signature of the person as a bmp file........ i am saving the data in the SQL Server 2005 . My front end is VFP 9 forms. i am building a SQL query to insert the record....... the prob that i m facing is that i cannot concatenate the image type with the SQL string that i m building the insert works fine if i dont try to insert the image the image is saved in a column of datatype "IMAGE" in SQL Server 2005 plz help thanks, Manu I am also attaching the sample code of the project but it is not working...please help lcCurrDir = SYS(5) + ...Show All
