Tim Mavers's Q&A profile
Visual C# Understanding Threading
I am trying to understand threading... its been hunting me ever since c and pythong.. and now c# and I can't hide from it anymore... I was wondering if some one can show me a really simple threaded snippet and explain it to me if ok... as we speak Im creaing a pdf file about threads.. but It's being a pain. I need some baby steps here.. and this is one of the only place to look for help.. besides other forums that I know. hmm downloaded pdf... but.. Just to clear my head out a bit more.. how would you use threading with this snippet. using System; using System.Threading; using System.Net; class ThreadTest { static void Main() { string[] ipList = { "127.x.x.x", "192.x.x.x" }; for( int x = 0; x < ipList.Length; x++ ) { IPHostE ...Show All
SQL Server How to check whether SSIS is installed
I'm using the import wizard to create a new table from a flat file source. The table gets created but no data gets copied. What's wrong Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error) Messages * Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - inSsrc_txt" (1). (SQL Server Import and Export Wizard)   ...Show All
SQL Server Default Filegrowth
Can anyone comment as to why MS would have changed the default filegrowth for data files from 10% to 1MB in 2005 I just got unpleasantly surprised by that one. I cannot come up with a reason for this change other than maybe autogrowth of data files is deemed irrelevent with instant file initialization. Aynway, you can change that by setting the default growth of the model database file to your appropiate value which will act as a template for new databases. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Tools for Office Community?
If this is a 'community site', why can I not reply to most of the posts Shouldn't a community site be about starting conversations << I am surprised Cindy didn't ask for you to be moved to the forum Where is the forum for... ( sorry Cindy could not resist :-) ).>> I've been thinking about this... On the one hand, there are the forum guidelines that say the forums should stay on-topic. On the other hand the fact that the Office team has decided that newsgroups are the support medium for their applications. And then (I've run out of hands) there's the "Community" aspect: what the "community" wants should be respected. And balance that against, where are people most like ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Recompile
These files are very simple in structure, and it wouldnt be hard to write a converter. Heres how it goes: { String version (i.e "1.0.0.0") String originalFile (i.e "E:\dev\xna\source\starterkits\SpaceWar\media\projectiles\pea_proj.x") Int32 triangleCount Int32 vertexStride Int32 vertexStart Int32 vertexCount Int32 batchCount (for each batch) { &nbs ...Show All
Visual Studio Express Editions Couldn't run application because MSVCR80D.dll couldn't be found/is missing
Hello, As you can see in the subject, I have a problem with a file I'm missing when I'm trying to run(debug) something written in 'Microsoft Visual C++ 2005 Express Edition'.I already tried reinstalling it a few times, but still I keep on getting this error(I deleted EVERYTHING which had something to do with Visual C++, even .NET Framework 2.0)..I would be very thankful when someone could help me with this problem as soon as possible, because I need it foor school and this way I can't practice C++ at all.. Ralph I think the original point was missed here though. This means that when Visual C++ was installed, for some reason the debug libraries wasn't installed along with it. IMO this is a problem because ...Show All
SQL Server How to get mobile subscription to sync with dynamic snapshot
Hello Everyone, I have a publication on a Sql 2000 (SP4) server. This publication has dynamic filtering enabled. What I want to do is create an interface which will generate a new dynamic snapshot based on filtering input from users. So far I can create the dynamic snapshot easy enough and I can see the filtered results on a Sql 2000 subscriber. However, there seems to be no way to configure a mobile database to point to the dynamic snapshot. This is easy to configure in a Sql 2000 subscription - the options are right there are on the properties page. Yet, it seems like the mobile database only points to the required unfiltered snapshot through the IIS proxy. Is there any way to force the mobile database to use the dynamic snapshot ...Show All
Visual Basic Complex Auto Update Program
I've written simple auto-update logic before so that the version number of the program is compared to a version number stored in a web server txt file. What I'm going after now is more along the lines of programs that have lots of files that might be upgraded. This could mean that my web server text file looks like: primaryapp.exe, 1.5.0 secondaryapp.exe, 1.3.2 mainapp.exe, 1.1.0 mainapp.dll, 1.0.2 When the main application that contains the updater logic runs, it needs to compare the version of each of the above files on the computer against the number stored in the web server file. I know how to reference the version of the program that I'm running but I don't know how to grab the version numbers of other programs. ...Show All
Visual Basic Hello nooby here... needs a quick answer!
Ello... I am in the middle of programming a game... ... again.. in visual basic... and I can't seem to find a way to make it check to see if a image is a certain image... Basically... what i want it to do... ... is when you click it... have it check to see which picture is up... Example (Red is the part I'm stuck on and can't seem to get to work I've tried so many different things its insane... but I'm sure one of you experts has the answer I'm looking for) : If Picturebox1.Enabled = true And Picturebox1.picture = ("C:\Picture.jpg") Then Picturebox1.Image = Nothing Picturebox1.load = (C:\Picture2.jpg") End If ANY help what so ever would be appreciated... Thank you all, Moveit Hi, this should do it: If Pi ...Show All
Visual C# serialization demystifyied :)
Hello, can you advise me information about serialization in .NET Framework 2.0 on the web I imagine something more compact than actual MSDN docs are, focused on this topic. In MSDN I didn't found some info, for example: - why ISerializable implementation is not invoked using XmlSerializer and how to customize serialization of specific properties then - why ISerializable methods and any xml attributes do not seem to be required at all, although they're told to be required. - why, when serializing a hierarchy of objects, the contained types (extra types) do not output full type name and just the ending identifier, and how to solve that..(!!) I appreciate tips where to learn about, also if you can advise to this concrete pro ...Show All
Visual Studio Sandcastle : Attributes on methods
If I have attributes assigned to a method then Sandcastle displays the attributes as part of the Syntax block. This is acceptable (and possibly a good idea). However Sandcastle is also adding extra blocks to the output for the attribute. Consider the following example code: /// <summary> /// An example method, just for demonstration purposes. /// </summary> /// <param name="parameter"> This is the description of the parameter </param> /// <returns> The input parameter will be returned, along with a friendly greeting. </returns> [ SuppressMessage ( "Microsoft.Performance" , "CA1822:MarkMembersAsStatic" )] public string SomeI ...Show All
Visual C# Threads stop with no error before completing work, any ideas?
Hi, I have a VB.Net C# program that has multiple threads. For the program to finish it would take about 2 - 3 days so I leave the program running overnight. When I come back in the morning, no errors appear on the screen but the threads are no longer running. Anyone have an idea on why this is happening Do threads have a maximum run time What would be the best way to counteract this Thanks AussieGuy Firstly, I'd make your app output a log file so that you can trace where the app is failing. Secondly, Ensure your threads aren't going out of scope. Thirdly, Are you using Thread.Join() to ensure the application is waiting for the threads to finish HTH Si ...Show All
Visual Basic Windows Service Monitoring Problem On Vista
I've built a small utility to monitor the status of SQL Server Express and start/stop it and it works nicely on Windows XP SP2 and fuctioning great but when I've tested it on windows vista it monitors the service ok but I can't start/stop the service any more unless I use the Run as administrator command to start my tool I've used the folowing code to test my rights on windows My .User.IsInRole(Microsoft.VisualBasic.ApplicationServices.BuiltInRole.Administrator) but it gives me false - note that I've logged as an administrator to windows - is there is any way programtically make the program have administrator rights on windows so I can use all functionality of my little tool Btw, this doe ...Show All
Smart Device Development Does and application done for Pocket PC 2003 runs in Windows Mobile 5
Is there any problem in running a Pocket PC 2003 application in Windows Mobile 5 o 6. Does it keep the compatibility. Yes, there’s backward compatibility for the most part. Many PPC applications would work on WM 5.0 and 6.0 PPC, but some won't. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader support when running on the 360
When your app is running on the 360 will it be possible to use the extended HLSL that is available that platform While this is still up in the air and subject to change, as it is currently shaders (.FX) will be available on the Xbox 360 however they will need to be compiled at build time and not duing runtime on the Xbox 360. ...Show All
