TaYeB's Q&A profile
Windows Forms STA and threadpool problem
Hello, I have a Windows Form project which i tried to merge with a console project that uses Thread pool. After i did that i got a messege saying: "WaitAll for multiple handles on a STA thread is not supported." OMG someone please help me! this is an emergency beucase i must use the ThreadPool. anyone has an idea There would be two reasons the thread that calls WaitHandle.WaitAll() would run in a STA apartment. One is that you're calling it on the GUI thread. That's a no-no, you *have* to pump messages to keep an STA apartment and the GUI alive. Another is that you've initialized a background thread with calling SetApartmentState. The only reason you would have to do that is t ...Show All
Visual Basic Convert Image to Byte
I have managed to get images stored in blob fields in a MySql table from a file and can retrieve them to an Image variable and display them no problem... How can I then take an Image and store it back into the database, need to convert the Image to a Byte() but every attempt at what seems logical to me fails. Currently I have to keep the files and store from file everytime I update as reading a stream into byte is easy, this is the coode for that part:. If File.Exists(ImagesDir + "\" + fName) Then flen = My.Computer.FileSystem.GetFileInfo(ImagesDir + "\" + fName).Length ReDim fBuffer(flen) fBuffer = My.Computer.FileSystem.ReadAllBytes(ImagesDir + "\" + fName) cmd.CommandText += ", )" cmd. ...Show All
SQL Server SSMA for Sybase ASE
SSMA for Sybase: When i am trying to connect to Sybase ASE 12.5.x in SSMA for Sybase.I am unable to connect to Syabse.I am getting this Error Message "Error collecting data. See the inner exception for details." Please help me in this issue or advise me what i can do thanks sanaku SSMA 1.1.618 has a known bug, which can appear when the Sybase server is 12.5.0.x. Seems it is exactly your problem. I suggest using a newer SSMA build (1.1.679), where we have fixed this bug." Try contacting Microsoft support in this case. ...Show All
Internet Explorer Development How do I send data to a html page?
Hello, I am building an application that works alongside explorer. The application generates some data that I then need to enter into som text fields on an explorer page. The application itself is currently in c# but this element could be rewritten in a different language. I am currently using Sendkeys but this relies on the windo having the focus, which I can;t guarentee, so I woudl like to find a way of sending data directly to a field. Any advice or hellp woudl be greatly appreciated. Steve Add a Web Browser Control to your Page public HtmlDocument doc; doc = webBrowser1.Document; doc.All["TextBoxName"].SetAttribute("value", "This text will be in t ...Show All
SQL Server Full-Text Search Problem
I am trying to create a full text index on a column in a table and the data type is Image, but the TYPE COLUMN FILE EXTENSION is in another table. there is no way of creating the type in the same table. the wizard will not allow me to pick the data type field from another table. is there a work around this issue Emadkb hey Feng Tian I hope you could help me in FullText Search. No one else seems to be knowing about Fulltext Search. I'm able to create Full text indexing catalogs, populate them etc.. when i login directly from the server using Sql Server Enterprise manager but when I try to use the same login (db owner) remotely from some other machine using SQL Server Enterprise Manager, I see disabled(s ...Show All
.NET Development System.net Ftpwebrequest FtpWebResponse BUG ????? (Error 530 Not Logged in)
Hi, I'm trying to connect to an Apple OSX Tiger ftp server to get a list of files, and I always get the "ftpwebrequest The remote server returned an error: (530) Not logged in" error, I have tried to use it with a Windows 2003 Ftp server and works like a charm. Public Function ftpDO( ByVal serverUri As String , ByVal path As String , ByVal xUsername As String , ByVal xPassword As String ) As String Dim retStr As String = "" Dim responseStream As System.IO.Stream = Nothing Dim readStream As System.IO.StreamReader = Nothing Dim Request As FtpWebRequest Dim Response As FtpWebResponse Try Request = CType (WebRequest.Create(serverUri & path), FtpWebRequest) Request.Credentials = N ...Show All
SQL Server fuzzy lookup taking too much time
I have a SSIS package where a small table of 270 rows are fuzzy looked up with a table in another sql server and inserts the records to a temporary table. This takes more than 3 hours in debug mode or so and never goes beyond this step.I have used a OLE DB destination to insert to temporary table and temporary table doesn't get a value. How big is that other table The fuzzy will build an index to start with, and this can take time. Review the options on the second tab to influence the index. Also check obvious things like blocking or such like What about a profiler trace, anything untoward ...Show All
.NET Development Problem with Message Queuing
Catch a problem using interface of MessageQueue component : I can't see public queues of domain controller on domain computer. When I try to explore MessageQueuing-labeled node in Server Explorer => catch exception: "Workgroup installation computer does not support the operation." What should I do, to pass this problem Thanks ( and sorry for my English =) )... Hello! How are you trying to access the public queue A few example lines of source code would certainly help us diagnose your problem. Some other quick thoughts are: Make sure you have access to the particular domain controller you are trying to access the queue on. Restart the MessageQueuing service on the domain control ...Show All
Visual Studio Express Editions strcpy working even after deleting pointer.
below code dosnt throw any error and printing goodmorning. Why strcpy working after deleting the str please explain why this happening char *str = new char [100]; delete [ ] str ; strcpy ( str ,"goodmoring"); cout <<str; thanks for the reply. I again looked into the memory str is pointing to before and after deleting. its having memory even after deleting :) Wondering what delete really mean by ...Show All
Visual Studio 2008 (Pre-release) Uri + Pack
Hello, I've created a WPF Browser application within Visual Studio using the latest .NET 3.0 framework and Visual Studio extensions. In my project I have a single WPF Page as well as a single .htm file. My .htm file simply states: "Hello World". I'm trying to create a "Frame" element that displays the .htm file. Everytime I attempt to display the .htm file, I receive an "InvalidOperationException" which states, "Cannot navigate to application resource 'pack://application:,,,/test.htm' in web browser. Am I trying to access my web page completely incorrectly If so, how do I display/access a simple .htm file I have attached my XAML code below. Thank you so much for your help: <Page x:C ...Show All
Visual Studio 2008 (Pre-release) Indigo Beta 2 uninstall faild, couldn't install July CTP
I tried to update to the .NET 3.0 July CTP, but the setup faild because of Indigo setup's failure. Then I tried uninstall Indigo manually, and every times I run the setup, it fails by deleting the Microsoft Digital Identity Service. I have Win XP SP2 Pro (Hungarian) with all updates, and VS2005 Pro without SQL 2005 This is a possible solution... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=608732&SiteID=1 ...Show All
Windows Forms Place menu after particular menu pad
Hi, I have menu as below: <pre>---------------------------- File Modules Help ---------------------------- | Main | | Purchasing | ------------ </pre> When user click on Modules | Main, I want to show specific menus that only for main module. <pre>------------------------------------- File Modules Setup Help ------------------------------------- | Country Code| | State Code | ------------- </pre> How to do this in .NET Thank you ...Show All
Windows Forms Sharepoint 7 beta 2
I have purchased the parner program with microsoft and am having serious issues installing sharepoint 7 b2. The issue is, its claiming i need to install the workflow foundation, yet, I'm stitting here, looking at the installed program with frustration pouring out of my ears. I've installed the program...I even tried installing the .net framework 3.0 to do it. Nothing. Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2_2(EN).exe Windows Workflow Foundation Runtime Components Beta 2_2(EN) for x86.exe my sharepoint simply WILL not go past the stage of the windows icon on load. Help! ...Show All
Visual C# error CS0029:Cannot implicitly convert type 'int' to 'bool'
while ((System.Convert.ToInt32(strupcolid)!=0)); where is the problem Dear all, thank you very much for your advice. I am very sorry to say that due to carelessness or other reasons, I mistakingly regard this line as error line. Actually the error line is: for (int j=arrcolid.Length-1;j=0;j--) //<--error line { path += "<a href=article/" + arrcolid[j] + ".htm>" + arrcolname[j] + "</a>>>"; } ...Show All
Visual Studio Team System .dbproj files to be read inside a Developer Edition of VSTS?
At my workplace we have a number of editions of VSTS, one of those being the new Database Projessionals version for our DBA. We used to create a Database project, then had an app to combine all the .sql files into a master file for execution against our development server. It seems now that this new project type can better integrate into our build server and we will no longer need to use this sql joiner app. Regardless, all developers could view the standard Database project, but these new SQL Server 2005 (.dbproj) files are unreadable by the Developer edition of VSTS. While developers won't be doing many database changes, it's nice for us to be able to get latest and do small changes with code review on our databases, but moving to this ...Show All
