TobsTec's Q&A profile
Architecture Web Service vs. Component
I'm looking for any recommended articles that discuss the pros/cons of building a web service vs. a component assembly. I'd like to find something that provides some guidelines for choosing one implementation method over another. Does anyone know where I can find an article like this The in-process is an old term of MTS days and is not relevant in .NET terminology, - I am not sure what is the term for "non remoting" calls in .NET, hence used the same. By "In-process" - I mean Plain Old method call, directly, not via remoting. For which we refer the called class as DLL's as regular reference and not a web reference (or could have it in the same Visual studio project itself). Th ...Show All
SQL Server Notification services folder in Object explorer
I have created set up in my system succesfully.But there is no Notification services folder in Object folder.Please help me I am new to notification services.I can't able to proceed. What edition of SQL Server did you install SSNS is only available in Standard and Enterprise editions. Did you opt to install SSNS during the install of the instance HTH... Joe ...Show All
Visual Studio Express Editions Trying to create an object and use it.
I want to create a new vending machine object and use it. I think this class does create the object, but I have this funny feeling it's not really doing anything with it. For example, when I use Insert(nmbrQurtrs, nmbrDimes, nmbrNickels); I didn't have to use Caffeine.Insert() which make me think I have an unused object or something. I am not sure about whether I have done this in a way that actually uses the object. Should I make a subclass inside this class and put main there Well, I am confused at the moment, any info on what you see would be very appreciated. Thanks in advance. class VendingMachine { private double moneyInsrtd = 0.0; //exact change only private int cupsCoffeeAvail = 0; private doub ...Show All
Visual Studio Team System Performance Problem #2
We've got a project with 3200 objects. The project contains about 10 errors. When we attempt to double-click on one of the errors to bring up the file, Visual Studio will hang for anywhere between 3 and 10 minutes. The Task Manager shows 'devenv.exe' consuming about 90% of CPU resources for this entire time. We're using the RTM version of DBPro. Amos. Me too, we also have performance problems which stall Visual Studio (or at least one thread in VS). So we are killing VS 3 to 4 times a day. Afterwards deleting the .dat file helps to get it up and running again. ...Show All
.NET Development Memory leak in SerialPort.Read?
Hi. I communicate with the serial port on my ”PDA/smart device” to another device (custom circuit board). The PDA needs to send data at least once a second to the hardware just to confirm that there is a connection; If not the hardware shuts down. The PDA also receives information from the device witch is displayed. The problem is that when the PDA receivea data, the application starts to leak memory. After 30 minutes to an hour the garbage collection procedure takes so much time that the communication halts for several seconds, witch in turn causes a timeout. Could there be a problem in the SerialPort.Receive() or in the garbage collector. Most likely I have done something wrong… Here is a simplified ...Show All
Windows Forms PictureBox with Text
I would like to create a user control that could show a picture box with text underneath it like we see in the case of dextop icons. Can anybody give me some idea how I can do it. Start a new user control and name it MyImageView. Drop a label on it and change properties: AutoSize = false, Dock = Bottom, TextAlign = MiddleCenter. Add the paint event for the user control and paste this code: public partial class MyImageView : UserControl { private Image mImage; public MyImageView() { InitializeComponent(); } public override string Text { get { return label1.Text; } set { label1.Text = value; } } public Image Picture { get { return mImage; } set { mImage = value; Invalidate(); } } ...Show All
Visual Studio Express Editions Printing
This area is a little confusing.. Please, would someone assist here or provide code to simplify. I tried the below code but it only prints "this will be bold" and "this will start at 400 pixels" - borrowed code I am trying to use the dialogue box just like a standard program where the user chooses the settings and all functionality available in windows. Shihan Here is the code BUT http://www.codeguru.com/vb/gen/vb_misc/printing/article.php/c11233__1 What I would like to do is use the windows dialogue box to allow the user to use all the functionality possible. How do i do this the was standard print boxes do. Shihan ...Show All
Visual Studio 2008 (Pre-release) ArgumentOutOfRangeException in SubmitChanges
Hi, I receive the following exception when trying to submit changes made in a database backed class. Test method UserManagerTest.MyTest threw exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index. at System.Collections.BitArray.Get(Int32 index) at System.Data.DLinq.SimpleTrackedObject.HasChanged(MetaDataMember mm) in C:\Program Files\LINQ Preview\Bin\Disasm\System.Data.DLinq.il:line 106219 at System.Data.DLinq.SimpleTrackedObject.<GetDataChanges>d__0.MoveNext() in C:\Program Files\LINQ Preview\Bin\Disasm\System.Data.DLinq.il:line 105226 at System.Data.DLinq.SimpleChangeDirector.GetUpdateCommand(TrackedObject tracked) in ...Show All
Visual C++ Use of __m128i as two 64 bits integers
Hi, I'm trying to write an x64 implementation - targeted at AMD64 - of the lock-free queue designed by messrs Maged M. Michael and Michael L. Scott (go to http://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html ) and referenced in http://www.devx.com/amd/Article/33290/1763 . The technique involves wrapping up pointers to the 'next' node in the singly-linked list as a pointer and a version. As pushes and pops occur, the algorithm constantly checks the version of either the tail or head node (when pushing/popping respectively) whilst it attempts to make modifications. If the versions change during the push or the pop (meaning another thread has just completed a change), the thread restarts th ...Show All
Visual Studio Team System Build history not deleted when deleting Team Projects?
I have the following situation: Created Team Project "ProjectA" Created a new Build Type named "Nightly Build" and run it 10 times Then I deleted ProjectA with TFSDeleteProject Next I installed Scrum for Team System I then created a new project again named "ProjectA" I created a new Build Type again named "Nightly Build" I run that Build Type 2 times When I add a new Sprint Backlog Item and go to the "Bug Details" tab and click to open the Build combobox I get to see the total of 12 build histories while I was expecting to only see the last 2. In the database TfsBuild I can only see one build so these builds must have been cached in the registry Because I cannot access the Registry due to the net ...Show All
Visual Studio Express Editions Rich text box text formating problem
I have developed a C# user control. This user control contains a Rich text box. We are using this user control in an ASP .NET site for rich text editing. The problem is losting test formatting. First we have changed some formatting displayed texts (formatting means BOLD, Underline, font size change, font change, etc), Then lost these formatting after minimizing and maximizing the internet explorer. How to solve this problem One more thing is this problem not there when use this control in a desktop application.. pls help me...... Jefy Well, you can deliver it to asp.net forum , there you may find satisfactory answers. Thank you ...Show All
.NET Development How to setup programmatically channels?
Hi, I want to configure a http server channel and a http client channel programmatically instead using configuration files. I'd like to know the correct syntax to translate the following configurations files Client <configuration> <system.runtime.remoting> <application> <channels> <channel ref="http" secure="true" port="0" /> </channels> <client> <wellknown type="General.IBroadcaster, General" url="http://localhost:5555/Broadcaster" /> </client> </application> </system.runtime.remoting> </configuration> Server <configuration> <system.runtime.remoting> <application> ...Show All
Visual Studio Express Editions database
can u help with the display data, i have one mdf tha manages all the employees, but i'd like to show only one category... i searched the web and i found a look and find method but it didnt work.. how can i do do u know where to find an example... kisses there are also many examples on the forums on how to retrieve data and databind them to a bindable control and perhaps even show a specific column :-) Here are some links which hopefully will guide you to the right points: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=753872&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=728535&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=632326&SiteID=1 ...Show All
.NET Development Exception handling / Best Practices
When adding a record to a DB with a unique key, I'm currently checking for duplicates (before I attempt to add) by reading and checking record count. Would it be a better practice to just Add and trap the exception Also: Is there a DataBase of all exceptions that might be thrown I find myself using 'Catch e' and then using Debug to get a clue as to what refinements to make (i.e., 'Catch e as xxx'). I've search (gotten lost in) MSDN, but I haven't found one complete source. MS must keep a DB of ALL exceptions somewhere. Although I used a DataBase example in my question, my question is much more general. The question is: Is it better to check for errors in the way I have for 50 years -- Pre-processing -- or by using the exc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX 2 Time Bomb
Almost all MDX2 Ctors are calling the bombing code below: public static unsafe void CheckTimeBomb () { DateTime time1 = new DateTime ( 0x7d6 , 10 , 5 ); if ( DateTime . Compare ( DateTime . Today , time1 ) >= 0 ) { MessageBoxW ( null , & _C@_1PI@LKOFODJP@ $AAT $AAh $AAi $AAs $AA 5 $AAp $AAr $AAe $AA 9 $AAr $AAe $AAl $AAe $AAa $AAs $AAe $AA 5 $AAv $AAe $AAr $AAs $AAi $AAo $AAn $AA 5 $AAo $AAf $AA 5 $AAD $AAi $AAr $AAe@ , & _C@_1DE@JJLLKEIK@ $AAM $AAi $AAc $AAr $AAo $AAs $AAo $AAf $AAt $AA 5 $AAM $AAa $AAn $AAa $AAg $AAe $AAd $AA 5 $AAD $AAi $AAr $AAe $AAc $AAt $AAX $AA $AA@ , 0x2000 ); throw new TimeBombException ( "This pre-release version of DirectX has expired, please upgrade to the latest version f ...Show All
