shaeron's Q&A profile
Visual Studio 2008 (Pre-release) Multithreaded
i have 2 threads in client and i call simultaneously from 2 threads to service. i define the service as ConcurrencyMode .Multiple [ ServiceBehavior (InstanceContextMode = InstanceContextMode .PerSession, ConcurrencyMode = ConcurrencyMode .Multiple)] i call from thread 1 and thread 2 (from client ) to service simultaneously. untill the thread 1 finish to work thread 2 is stacked and only after thread 1 return,thread 2 start to work. this function like reentrant despite i define the service ConcurrencyMode .Multiple btw i use in feb version . With PerSession, there is one Service object per client prox ...Show All
Architecture separating data access - Busines logic and UI
Hi friends, I have a question which I could not sort out. I checked the previous posts, I saw something relevant but not exactly what i need to know. I would like to create an Logical N-Tier application which will include DAL, BLL and UI . I decided to use TypedDataset created by visual studio dataset designer as the Data access layer , but my question would still remain even if I used custom entity classes . Now I am going to build a Business Logic layer to provide the comunication between UI and DAL . Lets assume that I have created the BLL and I use the following code in my UI. Me .DataGridView1.DataSource = mBLL.GetObject that works very w ...Show All
Visual FoxPro Select data from a cell grid
I am building a grid and I need to select a record from the grid from the same column everytime but it needs to differ depending on which row the user has selected. What is the best way to aproach this Activerow.something ok I have sorta got it figured out.... this . parent .label. caption = this . Parent .grdProvIDs.column1.text1. value HOWEVER! The column I need to gather the data from is column9 and it is not visible, I need to be able to select its data by only clicking on its row. PS The code I have above only lists what I need when column1 is selected ...Show All
Internet Explorer Development Embedded video crashes IE 7
Since about mid January everytime i browse to a page that contains embedded video IE 7 crashes. This also affects watching Adobe flash files and other forms of video. all i get in the event logs is: The first example was watching NBA TV Broadband and the second was browsing to a page with embedded flash. This is extremely frustrating so any ideas or fixes would make me a happy man. Faulting application iexplore.exe, version 7.0.6000.16386, time stamp 0x4549b133, faulting module wmvdecod.dll, version 11.0.6000.6324, time stamp 0x4549be1d, exception code 0xc0000005, fault offset 0x000ed7d1, process id 0xf88, application start time 0x01c74a3a58fb0c0d. OR Faulting application iexplore.exe, version 7.0.6000.16386, time stamp 0x45 ...Show All
SQL Server deleting a data viewer causes BI Studio to crash
Is there any way I can remove the data viewer (or even the whole data flow task) so that BIDS doesn't crash. Whenever I delete the data viewer, or the objects that the flow is linking to, or the data flow task, or even the sequence the data flow task is contained in, BIDs crashes. thanks mmmmm, I thought I had got around the problem. I deleted the data viewer, immediately created another of a different name and came all the way out of bids. Right click edited the dtsx file and this allowed me to delete the dataflow task, data viewer et al, going back into bids on running the packages it is still popping up the data viewer windows even though they and their parent objects have seemingly been deleted fro ...Show All
Visual FoxPro Pass by reference?
I am using the code below, the method RunTransaction should be filling the objects varReply and StrErrorInfo with data (they are hashable objects). But its not working. I think its because its not passing the objects by reference. I know everything else is working ok from the log file. I tried SET UDFPARMS TO REFERENCE. Nothing. Thanks Sam. oClient = CreateObject( "CyberSourceWS.Client") varReply=CreateObject("CyberSourceWS.Hashtable") strErrorInfo=CreateObject("CyberSourceWS.Hashtable" ) oProxy = CreateObject("CyberSourceWS.ProxyConfig") oLogger = CreateObject("CyberSourceWS.Logger") IF FILE("C:\FOX\ccLOG.TXT") DELE ...Show All
Visual C# String conversion for building select-where-clause (specific ODBC-Interface)
Hi, I need to build a string with a string inside like: "select * from %1 where %1.CalendarId == 'STANDARD' " where value 'Standard' is value of a variable, see following code snippet void selectCalendarData( string _calendarId) { // query string axCapQuery = "select * from %1 where %1.CalendarId == %2" ; StringBuilder sBQuery = new StringBuilder ( "select * from %1 where %1.CalendarId == " ); // Query building sBQuery.Append(_calendarId); ... } but this gives me wrong string "select * from %1 where %1.CalendarId = Standard" How can I convert and append variable to get 'Standard' as output. Thanks, Andrea ...Show All
Software Development for Windows Vista Please help! Can't get any filter I write to connect to ffdshow
Hello all. I posted a similiar question here before, but I'm still struggling with it and have no idea what to do. Help would be greatly appreciated. The problem is the ffdshow MPEG-4 Video Decoder filter. I cannot get ANY homemade filter to connect to its output pin no matter how hard I try. Nor can I get any of the sample filters to connect to it. Even the Dump sample can't connect to it, and that filter is so simplistic that it should connect to anything. Calling IGraphBuilder::ConnectDirect with ffdshow's output pin and my test filters' input pin yeilds 0x80040207, no compatible types. Which is completely nonsensical because CheckMediaType in the input pin isn't even being called. No debug messages are being generated either, so I have ...Show All
Visual Studio Team System The maximum number of errors has been reached.
On building a database project i am getting 0 error, 200 warnings and 1 message. Message is - "The maximum number of errors has been reached. 41 total errors and 1231 total warnings were encountered." As a result i am not able to build the solution.Is there any way to ignore this message and go ahead with building and deploying the solution Or if there is any way to resolve the issue then please let me know. Thanks. What is an example of an error What is the sense of building when you can't deploy due to errors In Data Dude a "build" is the same thing as generating a deployment script. If it can't generate the script due to the errors, then you can not have a successful b ...Show All
SQL Server Shrinking the Log file on a DB that is mirrored
Hello, I'm having couple of DB that are mirrored. my concerne is regarding the Log file size. I'm running the following steps: BACKUP DATABASE [DBName] TO DISK = N'Backup_File' WITH NOFORMAT, INIT, SKIP, NOREWIND, NOUNLOAD, STATS = 10 then BACKUP LOG [DBName] TO DISK = N'Backup_File' WITH NOFORMAT, NOINIT, SKIP, NOREWIND, NOUNLOAD, STATS = 10 if I try to run a SHRINKFILE (DBName_log, 20) I receive the following info: Cannot shrink log file 2 (DBName_log) because all logical log files are in use I'n a bit tense using a BACKUP LOG [DBName] WITH TRUNCATE_ONLY as it's part of a mirroring. but I need to reduce the size of the log file. thank four your suggestions Eric ...Show All
Windows Forms ContextMenuStrip memory problem
Hi, I think there's a leak in .NET ContextMenuStrip control. Create a simple control and place a contextmenustrip on it with 1 or 2 items. Now, take a form with a button and create a new instance of this usercontrol on each click. Check application's memory in performance tab of Task Manager. You;ll notice that the memory increases considerably on each click (100-200KB or so). Remove the contextmenustrip from usercontrol and repeat the same, memory increases by (4-8KB). I am also disposing the previous instance before creating a new one. The code looks somethink like UserControl1 uc1; Button_Click { if(null != uc1) { uc1.Dispose(); } uc1 = new UserControl1(); } other controls work just fine regards ...Show All
SQL Server Run Sql on multiple databases
I need to run a same query on 15 different databases and union the results. Does any of the experts know how to do this with good performance Any help is appreciated. Thanks What are you trying to do You may get adequate performance just by executing the query: select column1, column2 from database1.schema.table union all select column1, column2 from database2.schema.table ... union all select column1, column2 from databaseN.schema.table The key is: 1. RAM - enough to work with the set in memory, if possible 2. Query plans - one slow query will run much slower than 15 fast ones (I just built a 26 query join on 15 million rows that runs in < 1 second.)) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there an easy way to generate a random color?
I was trying to generate a random color to be passed into the Sprite Batch Draw function to put a tint on the sprite being drawn. mSpriteBatch.Draw(mBackground, new Rectangle (0, 0, 1024, 768), mRandomColor); However, there doesn't appear to be any way to create a new color from RGB values for the XNA frameworks Color object. I had thought that I would be able to do something similar to how you would create a new color when using the System.Drawing dll. Color mRandomColor= Color.FromArgb ( ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) ) ; Is there an easy way that I'm just overlooking to achieve that same effect Have you thought about putting System.Threading.Thread ...Show All
SQL Server T-SQl Question
Hi Guys I have been given the task of upgrading a program from Access VBA to C#.Net. In the Access Program, the developer has run queries from tables, and then run queries on the queries previously generated and used the later as a source for a datagridview. I have to implement the same feature in Sql Server 2000. Due to the table structures currently in place there is no turnaround. Is there a way to first run queries and use the output of these queries in another query in Sql Server 2000 If yes, how examples would be appreciated. Thanks There are a lot of different ways you can approach this. Personally, I would opt for stored procedures and temp tables. Since you're using C#.net, I'm assumi ...Show All
Visual Studio 2008 (Pre-release) SecurityNegotiationException Issue accessing WCF service when Client is in different Machine
Hi, I have created WCF service and Client. It is working fine, if both service and client are in same system, but if i place the client module in different system which under the same domain, i am getting the security negotiation exception The following is App.config configuration : < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < system.serviceModel > < bindings > < wsHttpBinding > < binding name = " WSHttpBinding_IMetaDataService " closeTimeout = " 00:01:00 " openTimeout = " 00:01:00 " receiveTimeout = " 00:10:00 " sendTimeout = " 00:01:00 " bypassProxyOnLocal = " ...Show All
