Robert S P's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Point Sprites on XBOX 360 causes crash
I have an application that draws a large number of point sprites on the screen using DrawUserPrimatives using additive blending. This works fine on the windows version, with around 4 million point sprites being rendered. On the XBOX, when there are greater than around 20,000 sprites nothing draws and then the program exits with code 0 and no error messages. Any insight into what I'm doing wrong -Adam Here is the relevant shader code: texture Texture; float4x4 WorldViewProjection; float alpha; sampler TextureSampler = sampler_state { Texture = <Texture>; MipFilter = LINEAR; MinFilter = LINEAR; MagFilter = LINEAR; }; struct VS_OUTPUT { float4 Position : POSITION; float4 Color : COLOR0; float2 TextureUV : TEXCOORD0; f ...Show All
Visual Studio 2008 (Pre-release) how to inherit winfx usercontrol?
In the project I attached, I have two winfx usercontrols named UserControl1( parent class ) and UserControl2( child class ) .I want UserControl2 inherit UserControl1. Also in UserControl2 I overwrite the parent method. After inherit from the parent class UserControl1, I want to append a new button in UserControl2.xaml, but it seems that UserControl2.xaml can not display the new button control, just display the parent usercontrol1.i find a workaround is to invoke the base class method to add the new button control in UserControl1. xaml.cs. Could you please tell me why I can not add the new button control in UserControl2.xaml directly =========== UserControl1.xaml <UserControl x:Class=&quo ...Show All
Visual C# Internet Control..
Hi. I'm an engineering student and i'm working on my project titled 'Internet Access Control' for our college. Our college has a server connected to our network lab where internet is accessed. I'm using sockets programming and i would be glad if you tell me which classes i have to use along with the addressing considerations. The aim is to have the user (student) log in and the user can have access to internet only for a fixed amount of time. The server should maintain login information and keep a watch on the time for which the user has accessed the net. I mainly need to know about how the program can know that Internet service has been started and ended, how should it do it What are the packages involved Thanks.. Pro ...Show All
SQL Server SQL Backup hangs, server freezes
We have SQL 2000 running on Server 2003. The server has 4 GB RAM, RAID 1 and has the /3GB switch in Boot.ini. We have 6 databases, the largest is about 14 GB. Until recently I could use Enterprise Manager to perform database backups to a folder on the same server but now the operation fails. After selecting the location for the backup and clicking OK, the hard drive light comes on but goes out after 15 - 30 seconds. The progress bar does not move. I've waited and waited but nothing further happens and the server doesn't respond. The only solution is to push the power button and let the server re-boot. Very occasionally the backup will run for a minute or two and the progress bar might get to about one third of the way across, (in which cas ...Show All
SQL Server Dynamic Text Parser?
Hi Guys, I have a script task that is supposed to read and parse a fixed width source file. Basically, I want to make the FieldWidths dynamic so that I'll be able to reuse this package with different files. So Instead of hardcoding the field widths directly into my script task, I want it to be stored somewhere that the package can get when executions starts. Is there a way of doing this The code looks like this: Using Reader As New TextFieldParser(mTempFilePAth) Reader.TextFieldType = FieldType.FixedWidth Reader.SetFieldWidths(1, 8, 8, 8, 4, 8) <-- I want to change this to handle dynamic widths. Hi, The best way to make your package re-usable is to use a & ...Show All
Internet Explorer Development PPS/PPT Problems and IE7
I am not sure if this is rthe coorect forum for this problem but here goes, I have only just downloaded IE7, my problem is that when I open up a power point presentation that has been forwarded to me by email it opens with my default printer icon, the presentation prints wonderfully.. :( but no viewer. I am a silver surfer, fairly new at this could anyway help me with a simple solution Many thanks in advance ...Show All
.NET Development Not the same Primary Key in DataTable and in SQL Table
The database: I have three tables in a Microsoft SQL Server 2005. Those tables are given and can not be changed. The main table of those three is called spbTable and has a primary key (int) called spbId. Further settings of this primary key are: (Is Identity) = Yes Identity seed = 1 Identity increment = 1 The other two tables are dependent on the spbTable with the foreign key spbId. The code: I am coding a web application using C# (ASP.NET 2.0 and ADO.NET 2.0). I was generating three DataTable using the Designer of VisualStudio 2005. So I have three TableAdapter, one for each DataTable and each DataTable has its own sql commands. The code I wrote looks like the following: ...Show All
SQL Server SQL 2005 Express New Login
Hello all Im new to SQL 2005 express so please bare with me, I have set up wireless peer to peer network and I am trying to access an express database from one machine to another. I can transfer files no problem. When I try to create a new login, I am forced to only select logins local to the machine with the database. When I try and create a new login by typing <machinename><windows account > of the second PC, SQL can not see it. I have tried both Windows authentication and mixed mode... no success. Any ideas Thanks Try this as a test... On the remote computer, open a command window. Type the following at the prompt: SQLCmd -S <machine>\SQLExpress -U<us ...Show All
Visual Studio 2008 (Pre-release) remoting IQueryable
Problem: to execute linq query on Iqueryable object that is non local (remote object) Solution: generic IQueryable local proxy that will call some remote proxy, and this remote proxy will locally IQuery remote object why not just remote this Iqueryable remote object – because Expression is not serializable in fact Expression can have local code calls so in some situations it may be hard to serialize it. BUT some subset of all-possible-Expressions-set IS serializable. Actually (today): “could be if done manually” questions: - will there be any mechanism like above solution in final orcas bits - anyone already done such generic IQuerya ...Show All
Visual Studio Team System Error 28925 TFServerStatusValidator
Hi all. I have to install the TFS for our programmers department but I'm unable to get it working... The server is W2k3 sp1, it's a single server install. I followed every step in the installation manual but I'm still getting the error in the subject. I read the post about this error but they could not help me. The security config for ie is not installed, when the website appears during setup it has ASP.NET 2.0, I put the tfsservice account in the local admin group (not in my first attemp but afterwards after getting the error). I'm quite desperate now, has anyone another idea Where can I start troubleshooting Regards Have you checked out this post on the forum http://forums.microso ...Show All
Visual Studio 2008 (Pre-release) Transformations on AdornedElement are also applied to Adorner?!
Hi, I’m using Adorners on shapes and other controls. I’ve noticed that the Adorner is scaled, when the AdornedElement contains a transformation with a scale transform. But I don't want the Thumbs and the bounding rectangle in the Adorner to be scaled also. Is there an easy way around this, or do I manually have to scale these back again. In ArrangeOverride I might be able to scale down the Thumb accordingly if I find that there is a scale transform applied to the AdornedElement. It might not be that easy with the pen used to draw the bounding rectangle though, since it's no likely that it should be scaled down equally on all sides. Thanks in advance! / Joel You'll need to override Adorner.GetDesiredTransf ...Show All
SQL Server how to restore database from full backup and several diff backup
I have a full backup and several diff backup,now i want to restore firstly,I restore full backup RESTORE DATABASE *** FROM DISK = 'D:\databackup\200610140000.bak' WITH NORECOVERY GO it's working,then i don;'t know how to continue Thanks in advance I think i should backup transaction log,is that right Restore differential backup: RESTORE DATABASE *** FROM DISK = 'D:\databackup\200610140000.bak' WITH NORECOVERY GO Restore log: RESTORE LOG *** FROM DISK = 'D:\databackup\200610140000.ldf' WITH RECOVERY right pls audit thanks ...Show All
SQL Server Queue not disabling
HI There My activated proc is rolling back the transaction and putting the message abck on the queue infinately Normally it disabled the queue after a few rollbacks, i can see in the sql log that it just keeps rolling back and re-activating thousands of times. It only stops when i disable activation on the queue. WHy is the queue not disabling Thanx Sorry that comment was on the wrong post, yes i check sys.service_queues to make sure it is enabled. ANd i check the sql log and can see the activated sp activating and rolling abck thousands of times until i disable actiavtion. I find it very strange it always used to disable becuase of the poison message, but no longer not sure why, i would ...Show All
SQL Server Upload subscription report into other database
I have a subscription set up that delivers reports to email addresses. What I'd like to accomplish is not to have emailed the reports, but insert the report into a document management system that uses a MS SQL database. Basically I would like to be able to execute SQL statements when the reports are being delivered. I have found that when a subscription is set up, a background job is created that calls the stored procedure AddEvent. This stored procedure inserts a line in the table Event (in the ReportServer db). Now when the email is delivered, this inserted line is deleted again. What I'd like to know is if there are possibilities to change this procedure to add some code where I can insert a rendered report in another database. ...Show All
Windows Live Developer Forums MSN PROBLEM
ive recently bought a brand new laptop and installed msn messenger ( from the msn site). When i go to sign in it really lags alot, and it never actually signs in... Sometimes i get a error message 80040111 and sometimes it just asks me to try again. Ive tried uninstalling and reinstalling it hundreds of times not to mention deleting any addons or patches. Ive tried to update that DLL file aswell but still get the same message. Windows messenger on the other hand works fine... along with msn messenger on my mates laptop as i have no worries signign into that. Ive also took any firewalls off etc aswell its really pissing me off tbf now aswell.... carnt seen to find anything on net to aid me neither. any help PLEASEEEEE ...Show All
