axelfxxx's Q&A profile
SQL Server Framework 2.0 changes - TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.
If you connect to a server and open a query in SQL Managment studio (2005) and looses connection and then regain the connection, when you try to run the query it gives me a "TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host." This happens against both 2005 and 2000 servers. If I re-run the query it works. However, this happens in our VB.NET app as well for clients with Wireless connections. So, something has changed in Framework 2.0 regarding this, does anyone know how to tell the client to not throw this error and just try connecting the server instead which will work No, I did not get the debug trace function to work, it simply dont dump any data, dont ...Show All
.NET Development DataView class, RowFilter property
DataView class allows filter table rows using search mask. Example: DataView view = new DataView(table); view.RowFilter = "name LIKE '*hello*' "; In this case it is impossible to apply "he*o" filter as symbols "*" are disabled in middle of string: view.RowFilter = "name LIKE 'he*o' "; - error. My current decision is implementation custom DataView. Is it best way Do exist already implemented decision Hi, You can do it with this filter : MyView.RowFilter = " myColumnName like 'pro*' and myColumnName like '*duct' "; HTH. ...Show All
.NET Development Fatal Flaw in the Large Object Heap?
Hi All, After playing with the GC I find the following interesting. The problem domain I typically work in requires the allocation of very large arrays for image processing. We have discovered some issues when our processes are long running. We run out of memory and can not reclaim it. Our only recouse is to restart our processes. In an effort to discover why I uncovered the following: The LOH (Large Object Heap) is never compacted. I think this is a fatal flaw in the GC. I understand MS stated reason for this, but shouldn't there be someway to compact the LOH if necessary, at least a method call that forces the issue Does anyone know of anything that can be done Any workaround is better than killing the process... Here is a demo ...Show All
Smart Device Development Remapping POWER button
Hi to all, how i can remap POWER BUTTON with the aim to replace the POWER_STATE_SUSPEND with a POWER_STATE_IDLE ! Thanks for any help, Muzero Hello, I tried to use this code in my c# project but it doesn't work, have anyone been able to use PowerPolicyNotify in c# // Mikael Mike12 wrote: Hi, I have tried this, but when my Mio A701 switches off after 1 minute of idle time (enabled in power manager), all apps stop running. I have changed the "SuspendToUnattendedMode" from 0 to 1 in the registry. That makes no difference. I have produced this C# code: public enum PowerMode { ReevaluateStat = 0x0001, PowerChange = 0x00 ...Show All
Visual Studio Express Editions Backgroundworker copyfiles with progressbar
with reference to ahmedilyas code below to copy specific file types with progressbar... how can I run this code with progressbar in a backgroundworker and trigger the progressbar progress http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=833129&SiteID=1 Dim theExtentions() As String = { "*.jpg" , "*.bmp" } For Each currentExt As String In theExtentions Me .ProgressBar1.Minimum = 1 Dim theFiles() As String = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), currentExt, SearchOption.AllDirectories) Me .ProgressBar1.Maximum = theFiles.Length Me .ProgressBar1.Value = 1 Me .ProgressBar1.Step = 1 For Each currentFile ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?
Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream QuantumMischief wrote: Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream C# is the future only if all you are concerned about is writing games for Windows PCs and Xbox 360. I'm sure Wii, PS3, DS and PSP will continue to have their fair share of AAA titles in the years to come and they will be written in a mish-mash of C, C++, GLSL, Cg and ASM, ...Show All
Visual C# How to decide who is calling a class library?
A IE extension wrote with c#, how decide who is the container ( iexplore or explorer ), I found this.container is null Hi, assuming you have used " WebBrowserClass" [lets say obj name is "Explorer"] //after checking READYSTATE_COMPLETE and its true then if (Explorer.Document is HTMLDocument) //if this is IE then it will go inside the if statement and if its windows explorer then it will not { ... your code... } Should work fine, HTH, ...Show All
Software Development for Windows Vista Modifying a Running Workflow
Hello Everyone, I have xoml only workflows. I can run / track them just fine. Now I'd like to be able to modify their definitions at runtime. I'd like to be able to add / delete activities or change activity parameters while the workflow is running and have the runtime use the newly added activities / parameters. Does anyone have an example of how to do this Thanks in advance You will be able to find some samples in the following links: http://msdn2.microsoft.com/en-us/library/ms741723.aspx http://wf.netfx3.com/files/folders/technology/default.aspx Among those samples there are some dynamic update samples - i.e. DynamicUpdateFromHost-. The code you need to modify a workflow( add new activities or remove not running ...Show All
Smart Device Development how to show dll files in file explorer?
Hi all, does anybody knows how to show dll files in File Explorer in Pocket PC 2003 SE Emulator I know I can use the remote file viewer to see the dll files but i want to see it in File Explorer. I tried running the BarCodeSample example from Intermec but it kept saying that it cannot find ITCScan.DLL in the Windows directory of the emulator. I have, using the remote file viewer, added itcscan.dll into the windows directory. I have even change the name to ITCScan.DLL in case it is case sensitive but to no avail. What can be the problem How do I view dll files in File Explorer Atiz You need to enable 'view All files' to see the dlls. Click and hold in empty space in the file explorer. In ...Show All
Visual Basic How to connect to Server Database (Remote Acccess)
I using VB2005, and I would like to create same simple program that related to the Access or SQL database. The problem is, I want My database is store in server, and i can remote access to the server's database for Inserting, Deleting, Editing and updating the database that store in server. And i also can access the database using my VB2005 program to edit the record in the server database through Internet Connection. Can VB2005 solve above problem Can someone HELP HELP HELP me up asap. Thank Thank Thank ... Thanks for replying .... BUT .... I see that someone using <MS Remote> provider to doing Remote Accress in ADO connection String. what about this Can it connect to database (Access Database ) throught Intenet Thanks ...Show All
Visual C# C# and SQL Query
Ok... Ive started learning C#. I have loaded a datasource odbc connection and dropped 1 of my tables onto my form. Now I also have a textbox and button on my form. The text box takes the current date and converts it to excel serial date and stores that into a variable 'serial'. Now I need to make a query on my table. I can create a query comparing 2 columns without a problem. My problem is that I cannot use my variable 'serial' in my query. Here is what it looks like: SELECT ... FROM ... WHERE WHERE TranDetail.EndDateTime = TranHeader.EndDateTime AND (TranDetail.EndDateTime >= @serial) I am using the query builder. I cannot get the TranDetail.EndDateTime >= @serial to work. I know its not able to use my variable ...Show All
Visual Studio 2008 (Pre-release) FilterParameters
Yo sync bros... going for a param filter and have the below working except for the FilterParameters section. What is the SyncTable command Equivalent for param filters used like in the example below Thanks for looking. :) ' -------------------------- SYNC TABLE ProposalDetail --------------------------------------- ' the SQL Server Everywhere Edition provider for the local Database Me .ClientSyncProvider = New SqlCeClientSyncProvider( My .Settings.MyConnectionString3, True ) 'Each table to be syncronized needs a SyncTable definition to set the options Dim ProposalDetailSyncTable As New SyncTable With ProposalDetailSyncTable .TableName = "ProposalDetail" ...Show All
Visual Basic Move Mouse To "Start" and Click, all in code. Possible?
is there anyway for me in code to move my mouse over to "Start", or anything else on the screen and not on the form and click all in code. what I got is system.windows.forms.cursor.position = new point(start.x,start.y) but I dont know how to tell it to click. Hi The mouse clicks ... not the cursor To do this (as far as I am aware) would entail you branching into the unmanaged world. Hopefully you have experience of interoperating with the windows api ... if not, you may need to do some research before trying what you are attempting. If you are simply looking to show the start menu, i suggest you investigate the keydb_event exposed by user32. All you would need to do is send the Ctrl+Escape keys and the st ...Show All
SQL Server Calculated measures on Analysis server
Hi, Is there anyway I can process calculated measures of the cube on server As of now its getting processed on client and its taking lot of client memory . We have got a good configuration server . Is there anyway I can configure to get this processing done on OLAP server Any help/tip will be appreciated Thanks, SP Hi Deepak, We are usin AS2000. What exactly u mean by alluding by " alluding to MDX query processing" Thanks ...Show All
Visual Studio Team System How is unplanned work report calculated?
I have been trying to find out how the unplanned work report is actually calculated. I find the process guidance documentation insufficient in this regard. Can anyone help here please, and if so, is there another source of information about all of the reports that describes how they are calculated Thanks in advance, John. A resource I found useful is Working with Microsoft Visual Studio 2005 Team System: http://efe.ege.edu.tr/~unalir/e-Book/Microsoft%20Press%20-%20Working%20with%20Microsoft%20Visual%20Studio%202005%20Team%20System.pdf Starting on page 249 is a short description of the reports. ...Show All
