Alex-MyRpg's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Any way to debug effect files?
Is it possible to set a break into a line in an effect file to have a peek either in Window and/or XB360 mode Also note that XNA doesn't appear to pass the appropriate debug flags in with shader compiling, so when you debug shaders in XNA, you're debugging optimized assembly-style shaders, not your HLSL source code. You can usually reason your way back to what the source code was doing for each instruction, but things like the instruction re-ordering sometimes gets in the way of clarity. ...Show All
Visual Studio 2008 (Pre-release) Scrollviewer issue - Incorrectly renders child grid columns.
Here is the problem. If I specify 'auto' for the Horizontal and Vertical scroll on the scrollviewer, my grid somehow doesn't keep the first column locked at 150 px. If I take those attributes off the scrollviewer my grid look correct but I obviously don't have scrollbars anymore. This is frustrating. Help! The following code makes Grid1's first column at least half the width of the total width of the grid itself (Which in my case is wider than my screen width). If I take the attributes off, it the first column is 150 px like it is supposed to be. <ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"> <Grid> <Grid.ColumnDefinitions> ...Show All
.NET Development Is there a way to get list of all colors?
I need to get list of all system colors from drawing.color and be able loop through them is there a way to do it This gets all the system colors, I am sure there must be another well documented way to do this.. ColorConverter d = new ColorConverter (); foreach ( Color c in d.GetStandardValues()) { Console.WriteLine(c.Name); } hope this helps ...Show All
Game Technologies: DirectX, XNA, XACT, etc. JIT register allocation and bounds checking
A few questions for Shawn or one of his buddies: 1/ Does the register allocator used in the XBox JITter use all of the available scalar floating point registers If not, how many can it deal with 2/ Does the XBox VM ever skip array bounds checking, and if so under what conditions 3/ Presumably there are no bounds checks when using unsafe code and pointers 4/ Are the method inlining limitations of the CF VM mentioned here still applicable to the XBox VM - especially the one about not inlining any method with floating point arguments or return values (yikes, that would be all floating point setters and getters!) Andy. AndyL if that is true, it scares me. A lot. I can't imagine it's not a b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with ZBuffer and Projection matrix
Hi DirectX experts. I have found a weird problem. The ZBuffer is behaving strange when i change the projection matrix. I experienced these problems while building my engine, so i used one of the SDK samples to reproduce it. Here is my code (Its pascal): Be sure that DirectX is not clearing the Z buffer without you're help. The projection matrix, along with the view and world matrix, is used to compute transformed vertex position and thus final pixel Z value. The Z value range is given by the projection matrix according to its construction parameters (near, far, fov, width, ...). This range is used for clipping and enable comparing Z values within its limits. Changing one of this values, and especialy swaping from orthogonal ...Show All
SQL Server Simplest "Transfer SQL Server Objects Task" failure
I'm perplexed and in need of a sanity check ... Instance of SQL2K5-SP1 on Server2003R2. Created two databases Test1 and Test2, create single 2-column table (tblTest)in Test1 with one row of data. Create SSIS package to transfer the table and its data to database Test2 using "Transfer Objects Task". Fails with error code 1073548784. I have tested for security issues and don't beleive these to be the cause: I have monster privelidges and can successfully use SSIS packages to execute CREATE TABLE etc. Have also tried most combinations of Task options (eg COPY ALL OBjects etc etc) Have tried this on three different servers: same results. This simple test is the result of distilling down problems I'm having with SSIS ma ...Show All
SQL Server MDF Size and SP_SPACEUSED
How come my SP_SPACEUSED and the actual file size don't match db1.MDF 932,032 KB (viaexplorer) db1_log.LDF 734,784 KB (via explorer) SP_SPACEDUSED database_size 1627.75 MB unallocated space 211.77 MB reserved 715176 KB data 569496 KB index_size 26152 KB unused 119528 KB Why is there such a big difference It did match: data file size + log file size = database_size. Therefore, applying the formular, you will find the result is consistent: (932,032 KB + 734,784 KB) / 1024 KB/MB = 1627.75 MB Thanks Stephen ...Show All
Connected Services Framework HelloWorld Sample-CreateSession times out
hi, Can somebody tell, why should the CreateSession time-out . After clicking CreateSession button, the status continues to show "create session in progress", and after some time, it times out. Links are all proper. thanks,. anita hi, We had a look at the input trace at the location specified. We noticed that, there was an exeception getting thrown. <processingStep description="Entering SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" /> <processingStep description="Exited SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" /> <processingSt ...Show All
Software Development for Windows Vista WMI Win32_NetworkAdapterConfiguration EnableStatic call fails with error 0x80070005
Here is the code I am using: strComputer = "." Set objWMIService = GetObject( "winmgmts:\\" & strComputer & "\root\cimv2" ) Set colNetAdapters = objWMIService.ExecQuery ( "Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE" ) strIPAddress = Array ( "192.168.0.1" ) strSubnetMask = Array ( "255.255.255.0" ) For Each objNetAdapter in colNetAdapters WScript.Echo objNetAdapter.Caption If Left (objNetAdapter.Description, 15) = "Realtek RTL8150" Then errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask) If errEnable = 0 Then WScript.Echo "The IP address has been changed." ...Show All
Visual C++ Problem - CEdit displays entered character 4 times
Greetings! I'm buiding a dialog-based App and use lots of the CEdit-Control to enter floating-point-numbers. My problem now is that every single CEdit displays the entered character 4 (!) times in its field, for example: I enter "123" The CEdit says "111122223333" I cannot think of anything unusual I have done to the CEdits, only the Number-Flag in the Properties-Editor is checked for all of them. But diabling this flag did nothing to solve my problem. Instead of 'a' I get "aaaa"... Any clues what's going on here Bye! I am seeing this problem on XP x64 Service Pack 1 machines. The code works properly on 32bit XP. Anyone have any ideas Thanks, Chuck ...Show All
SQL Server Transform - Pivot report
I have to create a report using the below query (query is in MS Access). Can anyone tell me how to create a Transform Pivot report in SSRS TRANSFORM Sum ( CD1 ([CheckAmount])) AS [The Value] SELECT "Total Amount of Checks" AS Type, tblResult.AccountNumber, tblResult.CheckDate, tblResult.Status, Sum ( CD1 ([CheckAmount])) AS Total FROM tblResult GROUP BY "Total Amount of Checks " , tblResult.AccountNumber, tblResult.CheckDate, tblResult.Status PIVOT IIf ( IsNull ([statusdate]), "Outstanding" , Format ([StatusDate], "Short Date" )); ...Show All
Windows Forms problems when sql server replicated
Hi there, I have a windows application developed in VS 2003. Everything works well as long as the SQl server is not being replicated but when the SQL server is replicated , i get an error as data update failed: updating columns with the rowguidcol property is not allowed.See log for more details. I have an ID field with the uniqueidentifier property. I have tried deleting teh dataaset in the schema and adding all teh fields manually . Even then i get an error. it wud be great if anyone could help me out with this issue. Cheers ...Show All
.NET Development Very Urgent - System.IO.IOException: There is not enough space on the disk.
Hi, We are facing a bug in which we are writing data to the excel file in the floppy and the floppy size is full it raise an “ IOException” (memory full) , in this case I am not able to close the StreamWriter object because StreamWriter Close () function internally call the Flush () method. But after sometimes or immediately ,i got another IOException of memory full and the call stack show that it raises when the Garbage Collector (GC) call Finalize() function. I do not wants this second exception , becuase i can not handle this second exception and sometime a process is also runing in the Task Manager after closing the application even i am using the Environment.Exit(0) function in Application for exiting the ...Show All
SQL Server For Each Loop Failure when some values in recordset are NULL
I have a for each loop container that is performing various tasks as it loops through a record set. Some of the values from the recordset are NULL at times and this causes the FELC to fail because it is unable to map the variables that have NULL values. Is there something I can set to have it accept the NULLS or something I can change about the variables themselves. This is valid data that still needs to be processed. There are other attributes that have data in the record. Here are samples of my error messages: Error: ForEach Variable Mapping number 19 to variable "User::varTransactionReference" cannot be applied. Error: ForEach Variable Mapping number 20 to variable "User::varFlowStartDate" cannot be appl ...Show All
Windows Forms somebody plz help
hi, i added a datetimepicker to one column of datagrid. i got this by downloading generic datgrid user control from web. after i download that control, i got the 'calendercolumn' also as columntype. it is working. but when i ma trying to insert one row thru datagridview to sql table' s datetime column, when i am clicking on the calender cell value itself it is giving me the following error. "to replace this default dialogue please handle the data error event............... System.InvalidCastException was unhandled by user code Message="Specified cast is not valid." Source="GenericDataGridView" StackTrace: at GenericDataGridView.GenericDataGridView.CalendarCell.InitializeEditingControl(Int32 rowIn ...Show All
