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

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

forrestcupp

Member List

Robert F Bouillon
Chris4578
sticksnap
GROTH
Adrian Foot
Kaos
eric02
Rafael Mores
prog.gabi
Sweeps78
Kimball
Duncan Woods
guyinkalamazoo3
dark_pa6awan
WL_07
Ceex
Will Buchanan
qrli
frozennose
JCJCJC
Only Title

forrestcupp's Q&A profile

  • Visual Studio 2008 (Pre-release) WCF for high troughput scenarios?

    Hi, I was wondering if WCF is usable in scenarios where high throughput has to be achieved . For example a financial market data service that broadcasts market data via UDP (roughly 10k messages/sec). It's important that packets are as small as possible .. can this be achieved with WCF or is there always a high message size overhead Thanks, Tom Reason I'm asking is because when I look at a trace from a netTCP session, there is a lot of "overhead": ......:net.tcp://kingvest.ath.cx:8000/servicemodelsamples/service.........5http://Microsoft.ServiceModel.Samples/ICalculator/Add:net.tcp://kingvest.ath.cx:8000/servicemodelsamples/service.Add%http://Microsoft.ServiceModel.Samples.n1.n2V...s...a.V.D ... ...Show All

  • SQL Server SSIS VERY large binary file import/export HEADACHE

    Since the removal of TEXTPTR, READTEXT and UPDATETEXT etc. has been announced from T-SQL I need to come up with an alternative way of moving large binary data files in and out of the Db. The main problem is that if I am moving a 1Gb flat file into a Db I don't necessarily have 1Gb of spare memory to "load up" the file and then save it. At the moment I get a pointer to the field (using TEXTPTR) and then set up a FileStream from my c# code to UPDATETEXT via a stored procedure 8Mb at a time. This has worked well for me in the past and is relatively speedy too. It has the added advantage that the code doesn't return before the task is complete (unlike shelling out bcp, for example). Does anyone know of a similar (or preferably) a bet ...Show All

  • Visual Studio 2008 (Pre-release) Can't Get WAS Host Tcp Sample to Work

    I am running Vista and am going though the Windows SDK Hosting samples. I can get the NamedPipeActivation sample to work under WAS, but I keep getting this error with the TcpActivation sample: "The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:59.9589870'." The inner exception states: "An existing connection was forcibly closed by the remote host." I have successfully built the sample and run the AddNetTcpSiteBinding.cmd batch file. IIS 7 Manager shows a binding of type "net.tcp" with a host header "808:*". I am able to con ...Show All

  • Visual Basic Getting a task queued on a secondary thread to run on the main thread

    I have a msg queue that runs on it's own thread that receives msg commands. Does anyone know of a way to launch a task or raise an event on the main thread from the queue thread My goal is to receive task on the queue and execute them one at a time on the main thread. Thank you for you time and kindness. I would set this up using events, doing something like this: Public Delegate Sub ActionEventHandler() Public Class MessageQueueProcessor Public Event Action1 As ActionEventHandler Public Event Action2 As ActionEventHandler '... Add additional events as necessary Public Sub StartProcessingEvents() '...Add code here to interface with MSMQ End Sub End ...Show All

  • SQL Server question about hierarchical dimensions

    Hi, I have a cube that has a "Cost Centre" dimension and a "Product" dimension. Both of these are hierarchical and have multiple levels. I've been asked to write a report which will show a breakdown by "product" & "cost centre" for a certain measure. I wrote the following query which does what I wanted... SELECT NON EMPTY { Hierarchize([Cost Centre].[L01 Cost Centre Name].members) } ON COLUMNS, NON EMPTY { Hierarchize([Product].[High Level Product Name].members) } ON ROWS FROM [MyCube] WHERE ([Measures].[Costs]) I've now been asked to show the cost centes in groups which are not in the hierarchy. For example, lets say that I have the following Cost Centres members in level 2 of my dimens ...Show All

  • SQL Server ability to use variables in package configurations and set their values at runtime

    Hi, My scenario: I am using a FTP Connection Manager and the configuration setting for it is being set in the package configuration xml file. So the xml file contains the Ftpserver, FTp server username and password. The package is picking up the values from the xml file and is executing successfully. I have to do this because I was not able to provide an expression to the Connection Manager Server Password property. Now, I want to pick up the ftp details from a database table and set it in the xml file during runtime. Is this possible OR something like using the <Configuration ConfiguredType="Property" Path="\Package.Connections[FTP Connection Manager].Properties[ServerPassword]" ValueType=" Variable "><ConfiguredValue ...Show All

  • SQL Server How to filter Profiler trace by dbid in 2005?

    Is there any way to filter a SQL Profiler trace by dbid This was a feature of earlier versions, but I can't figure it out in 2005. Thanks! Hi there. From the Profiler GUI, create a new trace, move to the Events Selection tab, click the Show all Columns check box (this is important, as the filters box will only show columns that are selected in the interface), then click the Column Filters button in the lower right corner of the box, you should see the DatabaseID option about 1/3 of the way down the list box on the left...click it, then set the appropriate value in the text box in the lower right of the screen... HTH, ...Show All

  • Visual Studio Express Editions need help

    I was wondering how do you run programs after you put in the code because my dad was helping me with a code/program from a book( C++ in 21 days second edition by Jesse Liberty) and we couldnt find out how to run it. P.S. try to make it simple cuz Im only in 9th grade and reading a book from 1997 to learn C++ First go to NEW -> PROJECT and select EMPTY PROJECT!! Then right click on "source files", and select NEW ITEM -> C++ FILE. Then put your code in the window that appears, and CLICK on BUILD -> BUILD SOLUTION!! That's it!! ...Show All

  • SQL Server Error 1418, fails to connect mirror server

    I I use the mirroring wizard to config all these three servers(windows authorization is used), the error logs in primary server and mirror server are showed as below a) On primary server: Error: 1474, Severity: 16, State: 1 Database mirroring connection error 4 'An error occurred while receiving data: '10054(An existing connection was forcibly closed by the remote host.)'.' for 'TCP://mymirror.mydomain:5022' b) On mirror server: Database Mirroring login attempt by user 'NT AUTHORITY\ANONYMOUS LOGON.' failed with error: 'Connection handshake failed. The login 'NT AUTHORITY\ANONYMOUS LOGON' does not have CONNECT permission on the endpoint. State 84.' . It states I do NOT hav ...Show All

  • Smart Device Development GPRS Issue with WebService calls

      Dear guys ... we have an application running on Windows Mobile 5.0 and .NET Compact Framework 2.0. The application makes some web service calls. The issue we are having is that when a web service call is made, it doesn't detect the GPRS automoatically. What we have to do is go to IE and open some website that enables the GPRS and after that the application starts making web service calls via GPRS automatically. Is there a way to make the web service call detect GPRS automatically. I heard that NETCF does have support for web services and the underlying http object automatically connects/disconnects from gprs networks when it is used. Is it true Regards Nabeel   NETCF should establish a connection to ...Show All

  • .NET Development ServicedComponent RegistrationException - Invalid Derived Classes

    I am having difficulty with code that used to work in 1.1 working in 2.0. I have an n-tier application that uses ServicedComponents for persisting database information within a single transaction. Because I want these classes to be able to participate in transactions, I derive them from System.EnterpriseServices.ServicedComponent. In 1.1, this worked just fine, however in 2.0, when remoting these components using .NET remoting over TCP, I recieve a RegistrationException stating that: Invalid ServicedComponent-derived classes were found in the assembly. (Classes must be public, concrete, have a public default constructor, and meet all other ComVisibility requirements). Since my other project contains 100's of different classes, I created a ...Show All

  • Visual FoxPro rounding bug in vfp8?

    I have found what seems to be a rounding bug in VFP8. Any ideas how I can get around this please I was doing some testing when I found that I was a penny out on digging deeper it seems that when lnValue = 0.57500000000000, Round(lnValue,2) gives 0.57!!!!! when it should give 0.58. This is causing my validation to fail. Is this a bug The strange thing is that Round(.575000000000,2) gives 0.58 but the extra 0's in the scenario above are causing the difference. Hi Darren >> The strange thing is that Round(.575000000000,2) gives 0.58 but the extra 0's in the scenario above are causing the difference I think that this is a limitation of VFP's floating point number implementation. As stat ...Show All

  • Software Development for Windows Vista SerializationException while Persisting inside UnloadInstance Method

    Hi all, while persisting,Im getting a SerializationException of the SqlConnection !So my workflow is gettin terminated and hence the instanceid is not gettin saved in the instancestate table! Its happening inside the UnloadInstance method when i try this static void UnloadInstance( object workflowInstance) { try { //Here is where gettin exception. (( WorkflowInstance )workflowInstance).TryUnload(); } catch ( PersistenceException ex) { MessageBox .Show( "Exception in Unloadinstance " + ex.Message); } } I made the Class which declaring the SqlConnection(Inside my Data Access Layer) as Serializable and even made the field SqlConnection object as NonSerialzed.But still it ...Show All

  • Visual Basic A list with key-value pairs sorted by adding sequence?

    Hello, i need a key-value pair list sorted by adding sequence like a collection. But i see that the Dictionary Class, the HashTable Class, the Sorted List Class seem not to do that. Must i use two Collections one with the keys a second with the values for that, or does such a list exist Regards, Markus What your probably looking for is a sorteddictionary collection which is avaialble in VB2005 Sorted Disctionary Class http://msdn2.microsoft.com/en-us/library/f7fta44c.aspx This represents a collection of key/value pairs that are sorted on the key. ...Show All

  • Visual Studio 2008 (Pre-release) How to draw a horizontal or vertical line?

    I would like to draw a horizontal and vertical line for my xy-graph control. These lines should be independent of the zoom factor. And I would prefer not to change the lines every time the zoom factor is changing. My idea was to use Double.MinValue and Double.MaxValue as xy - coordinates: Line horizontalLine = new Line (); horizontalLine.X1 = Double .MinValue; horizontalLine.Y1 = 0; horizontalLine.X2 = Double .MaxValue; horizontalLine.Y2 = 0; horizontalLine.StrokeThickness = 1; WPF isn't drawing the line. The values has to lay between [-60000; 60000] with StrokeThickness = 1 that WPF is drawing the line on a Canvas. How can I draw a horizontal or vertical line <Line X1="0" ...Show All

©2008 Software Development Network