tirengarfio's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Performance and Garbage Collector Monitoring under Windows?
Hello I noticed some people on the forums used the "XNA Framework Remote Performance Monitor for Xbox360" to get data about what the Garbage Collector does and other information while running the game. The documentation also mentions to debug code running on the xbox. My question is: How do I get the same type of information under Windows Is there any tool available I've succesfully used PIX from the DirectX SDK for debugging graphics problems, but that's only for graphics. Any help would be appreciated. I have just used the desktop CLR profiler through perfmon, and I'm pleased with what I've seen. Thanks for the responses. ...Show All
Visual Studio Express Editions Read and compare data from a database
Hi I've got this code: --------------------------------------------------- Dim conn1 As New SqlConnection() conn1.ConnectionString = "Data Source=SERVER;Initial Catalog=DBNAME;Persist Security Info=True;User ID=USER;Password=PASSWORD" *cencored * Dim adaptor As SqlDataAdapter adaptor = New SqlDataAdapter( "SELECT * FROM Accounts" , conn1) *don't know if this is correct* Dim ds As New DataSet Dim dt As New DataTable conn1.Open() adaptor.Fill(ds) conn1.Close() ---------------------------------------------------------- The question I now have is: How do I read the data out of this. Or do I compare data. I need this for login (accounts) authentifica ...Show All
SQL Server Limiting Number of Items Displayed in Report
ey there, quick question... is there any way to limit the number of items displayed in a single page say i want to display up to 10 items, and then the rest of the items are then displayed on the next page any help and suggestions would be greatly appreciated. thanks! Tim It's possible if you group on an expression rather than a field: nest your table inside a list control in the properties of the list click "Edit Group Details..." set expression to : =Ceiling(RowNumber(Nothing)/10) in the expression, 10 represents the rows per page so you could make this parameter driven if you want to force to a new page then check the "Page Break After" check box, otherwise you'll get multiple tables appeari ...Show All
Visual C# BindingSource Filter with textbox.
Hi All! I have a question... How can I do filter the BindingSource and the TableAdapter under c# 2005 with textbox My database is mdb. Please help me! Thank's! Szia Imre, Unfortunatelly I don't speak hungarian very well. (still learning it ;) ). I think what you need is this: txbox.DataBindings.Add(new Binding("Text", table, "PropertyName")); BindingContext[table].Position = line; Hope this will help you. Regards, ...Show All
Visual C++ noob help
ok i have 3 files game.cpp, game.h, and main.cpp and i get this error main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall game::run(void)" ( run@game@@QAE_NXZ ) Game.h: #ifndef GAME_H #define GAME_H class game { public: bool run(void); protected: bool getInput(char *c); void timerUpdate(void); private: double frameCount; double startTime; double lastTime; }; #endif Game.cpp: #include "game.h" #include <conhio> #include <iostream> #include <windows.h> using namespace std; //fps = 30 #define GAME_SPEED 33.333 bool Game::run(void) { char key = ' '; startTime = timeGetTime(); frameCount = 0; lastTime = 0; while (key != 'q') { while ( ...Show All
.NET Development SqlDataSource to call stored procedure
Can someone show me how to use SqlDataSource to call stored procedure in a c# class (a support class for aspx) and not in aspx or code-behind Thank you for your reply. I was a little confused. I am using .net 2.0. Is sqlDataSource a replacement of OracleClient, which I think so I saw note on msdn site for OracleCleient states Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework. ...Show All
Visual Studio Team System CTP7: Schema Comparison - DEFAULT ((0)) versus DEFAULT (0)
A user imports a db schema and then compares the imported schema with the current database. Differences are reported related to DEFAULT. The user clicks "write updates", then "refresh" -> Differences are reported related to DEFAULT. Hi, I still have this problem, even though I am up to service release 1, and I have ignore whitespace and ignore constriant and index names checked. I go and look at the create statements and there isthe (0) there, but in the actual comparison I see a difference of ((0)) vs (0). And I am on SQL 2000, using a SQL 2000 project. Any ideas on what I can do here This is painful. Thanks, dcb99 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "Use of unassigned local variable" error on Xbox360 but not Windows
Anyone know why the compiler produces an error when the following code is compiled in an Xb0x360 project but not when it is compiled on a Windows project public void GetTileRect( int tileX, int tileY, out Rectangle tileRect) { Rectangle myRect; myRect.X = tileX * tileWidth; myRect.Y = tileY * tileHeight; myRect.Width = tileWidth; myRect.Height = tileHeight; tileRect = myRect; } I get a "Use of unassigned local variable 'myRect'" when assigning it to tileRect. It's not a big deal, I can get around it by simply using "myRect = new Rectangle()". I'm just wondering why it works in one case but not the other. The same compiler is used for ...Show All
.NET Development ProcessStartInfo to execute vb script with certain user
I tried to use ProcessStartInfo to execute a vb script with certain user name. My Code: --------- ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = fileName; psi.UserName = userName; psi.Password = password; psi.Domain = domain; psi.UseShellExecute = true; Process.Start(psi); The Problem: ---------------- When I set UseShellExecute to true --> the error is "The Process object must have the UseShellExecute property set to false in order to start a process as a user." When I set UseShellExecute to false --> the error is "The specified executable is not a valid Win32 application." Any Help please Bishoy here is a silly Q, is the .NET Framework al ...Show All
.NET Development Read Text file and allow to be opened for writing
I would like to scan a log file in read only mode w no locking. I have tried with FileStream, AssignFile and even CopyFile. My issue is that there is a process running that needs to write to the file which may be during the time I am reading. I have the file open in fmOpenRead or fmShareDenynone and have no issues with opening. However, the app that needs to write to the file errors out w 'Cannot open log file C:\XXX.log' -- it's trying to open the same file in fmOpenReadWrite or fmShareCompat.. any ideas (I can't change the code for the app that's writing to the log) try fFileStreamOne := TFileStream.Create( fFileName, fmOpenRead or fmShareDenyNone ); fFileStreamTwo := TFileStream.Create( ...Show All
Software Development for Windows Vista DirectShow replacement on the way for DirectX?
According to this site near the bottom, it suggests that DirectShow is going to have a replacement for the DirectX SDK. Is this in the works still http://www.toymaker.info/Games/html/gdce_-_xna.html DirectShow is no longer considered to be part of DirectX. It was moved out of that SDK and into the platform SDK. While it may be that they will collect DirectShow and the other dozen or so a/v technologies into some type of media sdk (which is what I read that article to say), I have no reason to believe that they will. And I have no information regarding any replacement for DirectShow any time in the near future. ...Show All
.NET Development What is the difference between Asynchronous programming and Threading?
Are these intended for different purposes And how do these relate to message queueing As George Bush would say, these are the axis of evil... Asynchronous programming Threading Queueing Hi, It has been already discussed, check: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=562590&SiteID=1 ...Show All
Visual Studio Team System Automated Build, have trouble building 3 packages in a build type
Hi, Im trying to create an automated build using the Build Type. I got it to build the four solutions I product use. Now I want to automate the packaging of our product. I placed the 3 vdproj file calls under the target aftercompile When it runs, it packages the first one fine, but the second doesnt really do anything, and the third one throws an error. Can the build type not handle more than one vdproj call I also tried separating each to a different target/station, but still got the same problem. Please help Thanks, Staffan To Everyone , Here is a solution I finally got to work. It might not be the fastest, but it works. I created a Batch File that creates ...Show All
.NET Development Problem in Interop
Hi, I have a problem in interop. I have a c++ dll that has a function that takes the control handle as input and does some manipulation on the editable field. // HINSTANCE SetInstanceHandle(HINSTANCE hInstance) I have a .NET form in which I have a textbox control. Now I import the c++ dll and invoke the function. Now, I pass the textbox control's handle as Control.ControlAccessibleObject .Handle (which returns a IntPtr). This gives me an error quoting " The runtime has encountered a fatal error. The address of the error was at 0x79ef04d2, on thread 0x364. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marsh ...Show All
Software Development for Windows Vista uninstall
Is it possible to uninstall Vista Ultimate/Vista Transformation Pack once you have installed it. I want to try it, but I am not sure if it can be uninstalled if it takes up to much ram or doesn't look that great. Well I tried to uninstall it after I had loaded it onto my system and guess what !!!! its stuck like glue to my computer unless I format the drive its on I cannot shift it it is not all that good a system anyway its hard to find your way round it plus you cannot run hotmail from outlook express unless you pay extra for hotail plus and its no faster than windows XP plus Vista crashes a lot so until they come up witha good system steer clear of this one !!!!!!. ...Show All
