alwayssmiling's Q&A profile
.NET Development Multithreading protection for DataViews - Any help?
It looks like I'm missing something with respects to DataView access from a cached object and multi-threading protection. Every now and then, I will get the following Application error in our logs: System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.IndexOutOfRangeException: There is no row at position 4. at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.IsOriginalVersion(Int32 index) at System.Data.DataRowView.get_Item(String property) It will vary from the position 4, position 2, etc... I can assure you the data is there, and will work on any subsequent request. It's just when two requests come in simultaneously that this error will occur. I ...Show All
Windows Live Developer Forums Inside Windows Live Contacts Control
How it works I meen is there any web services that helps retrieve groups and contacts Is there way retrive this information from desktop application Hi Danny! Thank you for your answer! I'm wating for your article =) I'm interesting on retrieving something like tree of groups and contacts (xml ): group1 ___user1 (user info) ___user2 (user info) ___user3 (user info) group2 ___user4 (user info) ___user5 (user info) ... ...Show All
Smart Device Development Problems with more then 5 CE devices connecting to a webservice
we made a program in .net 2005 for a windows CE device. It uses a webservice to read and write information in a database. Everything works well, till the moment we start working with more then 4 devices. With 4 it works sometimes but with 5 or more after some minutes all devices stop working. They can't connect to the webservice anymore. Does anyone has an idea what could be the reason. Because we need to be able to work with 10 devices. thanks, Bart flandersit wrote: Strange thing is when we do this with one device we don't get an extra connection. Any idea what's the load look like on the server could it simply be serving a single device much faster than multiple devices, so your ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error - Spacewar Starter Kit (GSE Beta2)
Hello, I can't run Spacewar Starter Kit, I get an error: Error 1 Error code: -1 encounted when initializing FBX file loader. The file is either corrupted or it is not a valid FBX file. C:\Documents and Settings\ma o\Dokumenty\Visual Studio 2005\Projects\MySpacewarWin1\MySpacewarWin1\Content\Models\p1_pencil.fbx MySpacewarWin1 Czech language with Slovak interface pack. But in XNA readme is mentonied: "Although XNA Game Studio Express itself is available only in English, it is supported under any of the language settings available on these operating systems." So I suppose that's not the problem. Nevertheless, thanks for notice. ...Show All
Visual C++ Passing struct as an argument to a thread pool worker
Hey guys.. I have a problem... It looks that it is a very common problem but still I cant find a way to solve it. I have a dll which contains a thread pool. Each function performed by the thread pool need several arguments to pass in. For this purposes I created a structure like this: typedef struct _tagWorkerFunctionParameters { char* url_ptr; char* ip_ptr; int port; THREAD_CALLBACK callback; // callback function int id; } WORKER_PARAMS, *PWORKER_PARAMS; each time the dll is called from the following function, a new job goes to the thread pool and waits for a free thread in a queue. extern "C" __declspec(dllexport) int r(char* url_ptr, char* ip_ptr, int port, THREAD_CALLBACK callback, int id ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Build speed with many projects
I've been working on my first large XNA project and am finding that building my projects takes forever. I have both my Windows and 360 projects in the same solution, and there are 5-6 projects each. Normal setups like this in Visual Studio are a incredibly quick to build on average, but with GSE I notice that it seems to be invoking MSBuild for every project regardless of the solution configuration or dirty state. For example, if I have platform set to x86, my build output window still scrolls the 360 projects, each one taking 1-2 seconds to find out it's not set to build. Worse yet, it does this for every project, every time I build, even if I just made a one line change in an assembly with no dependencies; builds take 25-30 seconds! M ...Show All
Visual C# Math application
I am learning flash via C# and C++ express version, to write programs for kids free of charge to help them learn reading and math but at the moment I am trying to find sample applications of samples of code to look at that will help me I would like to write a win32 application not console that would take a set number and then gen a group of math problems random and then give 4 sets of replys like a multiple choice question, how would I go about writing this SAMPLE Random question output V 5 O 50 O 55 X10 O 45 O 60 < ---- multible choice random gen replys ----- ...Show All
Windows Forms Screen Print
This seems to be a very simple thing but I just can't find anything to tell me how to do this. Everything seems to point to printing a document. I just want to print a hard copy of the current (active) screen (window/form). Thanks for any help, JasinB(David) private: System::Void printDocument1_PrintPage(System::Object^ sender, System::Drawing::Printing::PrintPageEventArgs^ e) { Bitmap^ bm = gcnew Bitmap(this->Width, this->Height); this->DrawToBitmap(bm, this->ClientRectangle); e->Graphics->DrawImage(bm, 0, 0); } ...Show All
.NET Development Multiple Security Tokens
I just wanted to clarify one thing... Is it possible to have multiple security token elements in the same SOAP header I want to define one security token element for the kerberos ticket from AD and another security token for an RSA token. Has anyone done anything like that Thanks, dwj ...Show All
Windows Forms Custom Object in DataGrid
Hi all, I am in the process of developing a Datagrid that is bound to a collection of custom objects, and will display the data as columns of custom controls. I have successfully created a custom gridcolumnstyle which hosts the custom controls. However I have run into problems with binding to my custom datasource, and mapping the gridcolumnstyle to the necessary properties. My data structure consists of an ArrayList (acts as my table), which then contains a collection of further ArrayLists (my rows), which each contain a collection of my custom objects. The reason my data structure is composed this way that the size at compile time is unknown i.e not only could there be any number of rows, there could also be any number o ...Show All
Smart Device Development Trouble with Threading on Motorola Q Smartphone
I'm having some trouble with threading on a Motorola Q Smartphone which runs WM5 as you know. I have a C# program that I've been running under XP quite successfully. When I recompile it (with a different UI of course) for the Q, the threads to not start. Here's a code snippet... _thread = new Thread(new ThreadStart(Receiver)); _thread.Start(); which is executed in the main thread and where Receiver is: private void Receiver() { ... } I have some debug output that dumps messages to a text box on the display. The message dumped by the thread when it first starts never makes it to the display. Any ideas why this simple code would work under XP but not on a Q Thanks, FM Proba ...Show All
.NET Development GAC temp and tmp
I've observed that part of the GAC is a temp/tmp subfolder. To be specific, it's c:\windows\assembly\temp[tmp]. When are these folders. Can someone give me a use case scenario I have some assemblies in there that are getting loaded into my process space. Also, when do these folders get cleaned Any information will be beneficial. Thanks Thanks for blog, it definitely explained some things. Via process explorer I definitely see a file handle pointing to this temp location. I am more so curious to know: Why the assembly was left there; does this indicate failed install/uninstall Why the process would have a file handle pointing there. It's almost like fusion looks under the assembly subfolde ...Show All
Visual C# Visual Studio 2005 - PILE OF ***!
Hi, Although .NET 2.0 has brought ,any great additions to the .NET family, the IDE for me is the worst part of the experience. 1. The IDE is terribly slow... much slower than it should be. 2. The IDE seems full of bugs. These two problems do not make a good productivity combination. I do not believe Visual Studio 2005 is suitable for enterprise development, where you typically work on large scale solutions consisting of hundreds of projects. The IDE simply chokes on large solutions. Intellisense comes to a grinding halt and solution level configuration changes, such as setting debug/release mode take minutes (2minutes or more per click). The number of crashes of the IDE per day is also pretty high. We have started recordi ...Show All
SQL Server Exception with ReportViewer in local mode
I use a ReportViewer to display a report in local mode (WinForm). As long as I use VS2005 in debug mode, the report is displayed correct without any problems. If I run the compiled application directly, I get a crash message : "xxx has encountered a problem and needs to close. We are sorry for the inconvenience.".... None of the exception handlings are called (the one where the "Me.ReportViewer1.RefreshReport()" is located and the one from the application "MyApplication_UnhandledException") Thanks for help Peter Hi Panpan, I'm experiencing the exact same problem right now and I can't find out what's the cause. Did you ever figure it out If you did I'd appr ...Show All
Microsoft ISV Community Center Forums Blocking IM
Hi, Is it possible to block IM for all users in LCS 2005, i just wanto to use Audio Video conferencing feature. Pls help. Ekta We checked with the Microsoft support engineers, and here is what they told us: "IM (read SIP communication) is the basis for communication in LCS. Audio and video conferencing are added functions when you have an IM session open with another user. Hence disabling IM and enabling only audio and/or video conferencing is not possible." We hope this helps. Thanks Lisa (MS ISV Buddy Team) ...Show All
