Software Development Network Logo
  • SQL Server
  • .NET Development
  • IE Development
  • SharePoint Products
  • Visual FoxPro
  • VS Team System
  • Visual Basic
  • Audio and Video
  • Visual C#
  • Game Technologies
  • Visual Studio
  • Microsoft ISV
  • Smart Devicet
  • Windows Vista
  • Visual C++

Software Development Network >> Djgann's Q&A profile

Djgann

Member List

mabrouk
Boot2TheHead
JimT Utah
Tarin
Rocky79
Deepesh Verma
hellomcv
codehelp
Linlin425872
Roger Lipscombe
Claudiu Chiorean
Cristina Stanca
Becky N
Piotr Ignaczak
Gess Man
Kal100
DaveMich
Trent Saunders
dfgdrf
DevDells
Only Title

Djgann's Q&A profile

  • Windows Forms getting media files from a winform

    I am designing a winform client that should get around 30 media files (mp3, mp4 etc) in the size of 10 mega. every X minutes the client will check for updates, and if it finds any it should download the new media files from the server. what is the most efficient/fast way of transferring those file to the client 1. ftp 2. binary format with Windows Communication Foundation (and I can notify the client about changes so no need to check for updates) any other options or considerations (security ) hmm... must you transfer the files if its on your own network looking for/scanning every few minutes will be expensive if using TCPClient/Sockets since you have to establish a connection every time and ...Show All

  • .NET Development CodeDom: create "using(StringWriter sw = new ....")

    Maybe I just cannot find it, but how do I create a statement like this: using (StringWriter stringWriter = new StringWriter()) { .. more code } I can see the CodeTryCatchStatement and so forth, but which one is the right one for "using" From what I understand the using statement (for auto-disposal of types that implement IDisposable) is not supported by codeDom. You can of course generate code that explicitly implements it with the CodeTryCatchFinallyStatement class, ie: the output would look like System.Data.Common.DbCommand cmd = null; try { cmd = factory.CreateCommand(); //blah } finally { if( cmd != null ) { ( ( IDisposable )cmd ).Dispose(); } } You m ...Show All

  • .NET Development GDI leak detector tool

    I did not see any forums for GUI development in .net. So I am posting it here. Is there any tool out there for .net which can help me find GDI leaks I can see the leak in Task manager - but I want the stack information on where the object was allocated. Thanks Pawan Try .NET Memory Profiler 2.0 and filter on the namespace System.Drawing. it can give you the list of undisposed objects with the call stack details. ...Show All

  • Software Development for Windows Vista How to persist and reload a workflow instance to sql datastore

    Hi Iam new to wwf and trying to persist/save workflowinstance to sqldatastore i have looked at the samples provided with sdk.in hosting.persistance sample it uses delay activity to call OnWorkflowIdled event to persist to database and clearing in unload event.I need to persist the instance to sqldatastore and track the instances.Which events/methods to use for persisting workflow instances and how to track the instances.I would be great if any one have code sample to persist and track an instance. Thanks in advance SVNR If you are using the SqlWorkflowPersistenceService then you can configure it to persist automatically everytime the workflow goes idle, by specifying the unloadOnIdle pa ...Show All

  • SQL Server CREATE ASSEMBLY error: could not be installed

    I ran the following: CREATE ASSEMBLY A3rdPartyDLL FROM 'C:\Program Files\3rdPartyComponents\3rdParty.dll' WITH PERMISSION_SET = EXTERNAL_ACCESS and got the following error message: Assembly 'A3rdPartyDLL' could not be installed because existing policy would keep it from being used. How can I change the 'existing policy' DO you think that external_access is enough for this library External_access is more restricted than UNSAFE. Perhaps the library uses some functionality which are need the permission set UNSAFE Did you already tried that For an overview of the permissions granted in the permission sets, have a look here: http://msdn2.microsoft.com/en-us/library/ms345101.aspx HTH, Jens Suessmeyer. --- htt ...Show All

  • SQL Server Can't Create cube

    Is there is a way to create cube against database which tables get new records every few seconds I get these errors Thanks in advance Warning -2128674815 : Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_Log, Column: InsertDate, Value: 2/23/2007 9:22:32 AM. Thanks in advance Hello. I have not build anything like this but my guess is that you will have to use ROLAP for dimensions and Measure Groups. The error you see probably depends on that you have a MOLAP cube where the dimensions have not been processed before the partitions/measure groups. Keep your datamart in the relational engine is my recommendation. Five seconds is a very short batch window. I suspect that you have a cub ...Show All

  • Windows Search Technologies outlook 2007 is constantly indexing

    i have installed outlook 2007 onto a winXp machine for a customer and the machine was left on 2 nights and the indexing is still working (or maybe finished and restarted ) in any case the CPU is constantly accessing the hard drive and therefor slowing down the machine Norton is not installed, how can we either stop the indexing to see if that is the problem and if it is how can we correct the situation On winXP you can right-click on 'magnifying glass' icon in the notification area of the taskbar and select 'Snooze indexing' button. This should stop indexing from proceeding (while having Windows Search still running). Alternatively you can stop Windows Search Serivce (wsearch) in Services MMC sn ...Show All

  • SQL Server Dependencies not correct with temporary tables --> replication is failing

    Hello all, here is a stored procedure I have: CREATE PROCEDURE spU_GUI_AppliqueConditionFinancementPourGuichet ( @GuichetId int, @Validateur nvarchar(40) ) AS CREATE TABLE #tReservations (ReservationId int) IF (dbo.GetSiGuichetEnRegle(@GuichetId) = 0) INSERT #tReservations EXECUTE spU_GUI_AppliquePerteFinancement @GuichetID, @Validateur ELSE INSERT #tReservations EXECUTE spU_GUI_AppliquePerteAgrement @GuichetID, @Validateur SELECT GR.Id, dbo.FormateNoms(GR.Name) AS Names FROM #tReservations LEFT JOIN AnotherTable GR ON GR.Id = AnotherTable.id DROP TABLE #tReservations GO The creation is ok but when I look to the dependencies, I see that it depends on GetSiGuichetEnRegle only. For me, it shall also depend on ...Show All

  • Visual Basic html editing problams

    i have create a file : Imports System.io ..... System.IO.File.Create( "C:\filename.html" ) now i want to edit it : <html> bla </html> i know that i can use Streamwriter but Dim StreamW As StreamWriter streamw.write("<html>bla</html>") doesnt work what shold i do to wirte into html / txt files with stream writer A FileStream can be used to make files... and in the case of using File.Open(), a FileStream instance is returned. The FileStream class extends the Stream class which is one of the possible items you can pass into the creation of a StreamWriter . A more direct way to have a FileStream instance create the file is to ...Show All

  • SQL Server SQL Recovery Mode

    Hi, How to make all MSSQL DBs run in Simple log form by default other than FULL so when we srhink DBs the logs will go bybye. :-) Thanks SET NOCOUNT OFF DECLARE @strSQL nvarchar(50) DECLARE @databaseName nvarchar (255) DECLARE MyCursor CURSOR FOR --used for cursor allocation Select name from sysdatabases Open MyCursor Fetch Next From MyCursor Into @databaseName While @@Fetch_Status = 0 BEGIN SET @strSQL = 'ALTER DATABASE '+ @databaseName + ' SET RECOVERY SIMPLE' EXEC sp_executesql @strSQL Fetch Next From MyCursor Into @databaseName END Close MyCursor Deallocate MyCursor Print 'Recovery Model changed to SIMPLE for all databases' Hope this helps. ...Show All

  • Visual Studio Express Editions Can one item hold more events ?

    Can, lets say a button handle two events. I need this Private sub btnStart () handles btnStart.MouseEnter btnStart.Image = (" somewhere ") End Sub Private Sub btnStart () handles btnStart.MouseLeave btnStart.Image = ("somewhere") End Sub Yes a function can be used to handle more than one event.  Just list all the events separated by commas after the 'handles' keyword Private sub btnStart () handles btnStart.MouseEnter, btnStart.MouseLeave Obviously the signature of the function has to match the signature of both the event's handlers.  For example, one function can't handle both MouseEnter and MouseDown because MouseEnter requires an EventHandler function while MouseDown requ ...Show All

  • Visual Studio Express Editions Get an error using the Data Connection to connect to MDB file.

    I created a table link to a cvs file using Access 2002....I then used Visual Basic .NET (2003) to do a data connection to the MDB file which is linked to the cvs file. Note: I have to link to the table because the table is constantly changing. I can't use import for this reason Select the following: Provider : Microsoft Jet 4.0 OLE DB Provider Connection : Point to where my MDB Access file is located. I press "Test Connection" and it says "Test Connection succeed". But when try to open the Table I brought in, it gives me the following Message: "The text file specification 'MYFILE Link Specification' does not exist. You cannot import, export, or link using the specification." Note: I am ...Show All

  • Visual C# Exception Breakpoint on Application Termination

    I am using C# 2005 Express edition. My application runs fine but on closing I get the following message (for some reason I can't take a screenshot of the dialog) The exception breakpoint A breakpoint has been reached (0x80000003) occurred in the application at location 0x7c90130 This happens in the debug version and release version. My first reaction was that I had left a breakpoint in the program, my second that it is related to the debug version. I am new to C#2005 and could not find any swicth to change the build type from debug to release so don't know if calling for a Build automatically created a Build version. I would like to get rid of it since it would be annoying for my users Thanks in ad ...Show All

  • Windows Forms PropertyGrid & UITypeEditor

    The property grid insists on only using strings to identify which option is selected from a collection, and I need to allow the user to select from a list of strings, and have a GUID returned. So, I created a UITypeEditor so that I could use a ListBox to select options in a PropertyGrid. That way I can fill the listbox with a collection of custom objects that contain a guid, and a string property that is tied to an overridden .ToString() I figured out how to get my data into the propertygrid, but I can't figure out how to get the grid to select one of the items in the list in response to the values in the object that I attach the grid to. I've tried doing the selection in the EditValue function, which is where the listbox gets pop ...Show All

  • Visual Basic Show and hide a form

    I have a form (frmResults) that shows a list of results for a name search. I would like to keep it open but hidden after the user selects a record to view, which opens another form (frmMain) and hides itself. The frmResults' Load event fills a table adapter based on parms passed to the form (first and last name). I have a button on frmMain that returns to frmResults using My.Forms.frmResults.Show and Me.Close. Problem: when I try to return to frmResults I get this unhandled exception: "Object reference not set to an instance of an object." It happens on the line where the table adapter is filled. Is there an easy fix for this or do I have to pass the name search criteria around to get the results to show again T ...Show All

©2008 Software Development Network