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

Software Development Network >> Dmitry Pavlov's Q&A profile

Dmitry Pavlov

Member List

sureshv
NeilBerry
Stephen_Sbh
lamont_23
Rolento
AnonymousI
watch is
joginaidu
cblaich
Heinz09
Mercury529
Dave987654321
Boulderdude
crystak
rae_mel84
PIEBALD
David Ing
ItsMe!!!
Carl Daniel
David Zokaites
Only Title

Dmitry Pavlov's Q&A profile

  • Visual C# Windows Service OnStart Event

    Hello Everybody I wanted to know how to work with Windows services In the Service it is said that we should not write looping code in the OnStart Event So where should i write my code of looping event as such i wrote in the start event it works fine Is it good to write the code in onstart as my code will take a time may be more than 30min to 1 hr And one more thing how to stop the service i.e after my code has done the work Thank you in advance Sarguna, The OnStart event handler is not intended to contain the service's 'work' code. Instead try moving your looping code to a function that follows the WaitCallback delegate definition and call ThreadPool.QueueUserWorkItem in the OnStart event. This will allow the OnStart event hand ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Can't use Microsoft Points to subscribe to XNA Creators Club?

    Hello, I want to become a member of the XNA Creators Club, and because I don't own a credit card I went out and bought 2 x 2100 Microsoft Points (because it also showed "redeem code" as a payment method). After entering both the 25-character codes, it didn't accept this as a payment method.. So now I'm stuck with 4200 Microsoft Points and an empty wallet. Is there a way to become a member using the Microsoft Points Or do I really need to use a credit card Because then I'm screwed.. Thanks. You don't have to have an actual credit card (although you still threw away the money on the points). You can go down to your local bank and get a pre-paid credit card and use that to purchase a subscript ...Show All

  • .NET Development Why am I getting OutOfMemory Exceptions???

    This is the second time I have asked this question. I will try to be more specific this time. I have written/deployed a service in C# using VS.NET 2003. This guy is getting OutOfMemory exceptions which I cannot explain. This service does consume (managed) memory from the heap. However, all pointers to the uses of managed memory are held in local variables with my class's methods. I don't have any class level variables (like arrays) which hold pointers to managed memory. So, when these class methods (that consume memory in local variables) go out of scope, then I expect that the memory becomes available for release by the Garbage Collect thread. I have added a call to the GC.Collect() method to manually initiate the Garbage Coll ...Show All

  • Visual Studio 2008 (Pre-release) Multi-user Testing

    Our Application is rewritten using WCF. We would like to perform a load/stress tesing on the application hosted in test environment. We would like to simulate the traffic sent over the wire by WCF client in our load test tool. The messages sent over the wire are compressed / base 64 encoded and binary encoded. For simulating the load generated by the WCF Client to the services we have captured the traffic sent over the wire without uncompressed / non encoded. There are really 3 things I need: Compression / Decompression as DLL Base 64 Encoder / Base 64 Decoder as DLL Binary Encoder / Binary Decoder as DLL So that we can take the plain SOAP Envelope in WCF and pass ...Show All

  • Visual Studio Express Editions Data in 'bin' but not in database

    I have creating an application and data is being saved to the database in the 'bin/debug' but not in the project database. I have set the database.mdf to 'Copy if newer' but this does not help. Am I right in thinking that when i run the application the 'bin' database is used If so how should it get the the project database so that I can see it when I preview data Help would be appreciated. yes thats correct, it will use the bin\debug folder since thats where its launching the application from. you could modify the connectionstring to point to the file located somewhere else if you wanted what exactly do you mean by previewing the data ...Show All

  • Visual Basic same form to block

    hi for example; when user opened form2, user won't open form2 again. how can I do To only allow a single instance of a form to show you can use the my forms within you application. This application will only create one instance of Form2. It doesnt matter how many times you click the button. An example of default instancing. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My.Forms.Form2.Show() My.Forms.Form2.Activate() End Sub End Class ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Recompile

    These files are very simple in structure, and it wouldnt be hard to write a converter. Heres how it goes: {       String version (i.e "1.0.0.0")       String originalFile (i.e "E:\dev\xna\source\starterkits\SpaceWar\media\projectiles\pea_proj.x")       Int32 triangleCount       Int32 vertexStride       Int32 vertexStart       Int32 vertexCount       Int32 batchCount             (for each batch)             {   &nbs ...Show All

  • Windows Forms What property says wether ToolStripOverflow control is ToolStrip control is overflowed or not?

    What property says wether ToolStripOverflow control is ToolStrip control is overflowed or not in runtime ...Show All

  • Software Development for Windows Vista VS2005 "remembers" ExternalDataExchange interfaces which no longer exist and doesn't see new ones

    Dear all, I am working on an asp.net hosted workflow solution which uses separate projects for the ExternalDataExchange interfaces and the workflows. I find that changes to the ExternalDataExchange interfaces and associated classes cause tremendous confusion, because they fail to get recognised when trying to set the properties of, for example, HandleExternalEvent activities in the workflows. I seem to need to rebuild the solution several times and close and reopen VS2005 repeatedly before sanity prevails, and I can get everything consistent again. Is there some way to avoid the hassle which I am experiencing It wastes an inordinate amount of time, and looks to me like some kind of bug in VS2005. Perhaps there is a way to ma ...Show All

  • .NET Development Getting parameter-type T TypeInfo for call to GetValue...

    Greetings, I am implementing a generic container class (RedBlackTree<T>), which needs to be serializable. This is not a remoting question, but a serialization question. I appologize up front for the language choice, I am using C++/CLI for this project because it allows for deterministic deletion of managed objects, and because the original project was in C++, so the converion to managed is easier to C++/CLI than C#. The serialization appears to work, meaning it executes without throwing any exceptions, and the serialization information appears to have all the correct data when viewed through the watch utility in the debugger. When I attempt to deserialize, however, I run into errors. The code is as follows: ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA methods

    Hi, This is my first post here. My English is not good, so excuse me for any mistake you could find :). OK, I have been programming with unmanaged DirectX for some years and I now I just started learning XNA, not to migrate from DX, but just to know a new technology. XNA is relly a fantastic tool, but I admit I felt a great impact when I saw the XNA code for the first time (... but nothing that could not be cleared with a bit of patience :) ). There is a huge difference between unmanaged DirectX (native C++) and XNA (C#). OK, lets to the doubts: The XNA Game Studio Express Documentation shows 5 main methods that make the game works. They are: Initialize, LoadGraphicsContent, UnloadGraphicsContent, Update and Draw. What ar ...Show All

  • SharePoint Products and Technologies i need to change the default value of a field in create new item in the task list items

    Hi, when the user is working on a certain list and he clicks on new item. I need to change the default value on one of the fields programmaticaly. So I did this, let s suppose that my list is called Tasks and the field that I need to change is the " Title " field. And I am working in a site called site2 in my Sharepoint web site. What I did I create a web part and add it to the NewForm.aspx page in the Tasks directory. Then I did this in CreateChildControls () method I did this in the code :  for (int j = 0; i < spw.Lists.Count; j++)                 {                &nbs ...Show All

  • Commerce Server Calculate Tax based on Product Information

    I have come across a situation that presents me with 2 problems. 1. In the state we work, some items are not taxable (Clothing, for example) while other tiems are (Household, for example). We need to be able to identify which category (not necessarily Catalog Category) the items in the LineItem belong to. At first my thoughts were to add a custom property in the Catalog Manager (IsTaxable) and i would be able to find this property inside the pipeline. Form there on it would be fairly easy to accomplish. 2. I can live with the solution above, if i could find a way to get access to the product information, which i cant. Anyone has any ideas on how to get this data OrderForm.LineItems does not provide access to actual Product Info; ...Show All

  • .NET Development Strange problem with XmlReader/XmlWriter: "The process cannot access the file '...' because it is being used another process"

    Hello, I have a strange problem when using XmlReader/Writer. After writing the xml file and restarting the app I like to read the contents from that file. Writing the doc XmlTextWriter writer = null; try { XmlDocument doc = new XmlDocument(); writer = new XmlTextWriter(filename, null); ... doc.Save(writer); } catch (Exception ex) { ... } finally { if (writer != null) writer.Close(); } ... and reading the same file (after restarting the app) StreamReader sr = null; try { XmlDocument doc = new XmlDocument(); // *** THIS LINE CAUSES THE EXCEPTION *** FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read); sr = new StreamReader(fs); doc.LoadXml(sr.ReadToEnd()); ... } catch (Exc ...Show All

  • Architecture Design consulting

    Hi all, I have the following design conflict : I have to write an application that reads and writes values to hardware device. I have two filed devices maybe more in the future (D1,D2,...) Each device has it's way for making communication. I thought to make the design as following : 1. Build IDevice interface 2. Build D1 class and D2 class that implement IDevice. 3. Build Tag class that maintain the value of certain adress in the devices. 4. Build a serial port class that implements the communication with the COM ports. I want to build a container of Tag class witch may relate to D1 class or D2 class. I don't know how to connect between the Tag class and the D1,D2. I thought to put a reference to D1 in Tag ...Show All

©2008 Software Development Network