SnowGrassland's Q&A profile
.NET Development Server currupt when Client close.
I have made a "Hello world" Remoting example. The Client works fine when connecting with the Server. While I close the Client, a message comes out as below, and the Server close. Server has encountered a problem and needs to close. We are sorry for the inconvenience. The debug information is as below: System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I think the code has no error, because the same solution I have test in VS2003 without problem. While used in VS2005, it encountered an error. Th ...Show All
Visual C# PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. Hi Frode Omholt , ...Show All
Visual C++ My College's Viusal C++ Exam June 1, 2006
Dear C++ Experts, I've just examined in Visual Structured C++ today. It was really good exam and so long. I answered most of it and it’s nice one and helpful for many to have a look. I’d be so glad if anyone interested in solving this exam (which I had to snapshot it with my mobile phone camera, as I don’t have scanner and OCR programs couldn’t convert it to text well. So if anyone want it, he have to rewrite the questions and solve them, or just post questions as a post here) as I’m sunk on other exams. Exams' Images links "arranged: Removed for Privacy Kind Regards , Ahmed Mahdy ...Show All
Visual Studio Express Editions how to get windows to open text with my app
Hi,how do i get windows to open txt files with my program i made with vb2005 I think you're asking, "When I double-click on a .txt file in Windows, how do I get Windows to open the .txt file with my VB application " If that's the case, the easiest thing to do is to open Windows Explorer, find a text file (extension is .txt), right click on the file, select "Open with..." then select choose program. You can then browse to your .exe and select "Always use the selected program to open this kind of file." If what you're asking is "how do I open a .txt file with VB 2005" ...Show All
Visual Studio Express Editions Can Anyone Relate To This???
Hi There http://www.geocities.com/tablizer/oopbad.htm Cheers Bronco Billy "Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed" Hi, we live in a free world where erveryone can express his opnion. I know I like OOP. You should try both worlds and see whats best for you to use. ...Show All
Smart Device Development Multiselect listbox for Compact Framework
I'm developing a VB.NET PPC application using VS2005 Beta 2. I've noticed that the SelectionMode property (which allows you to specify a single or multiselect listbox) for the listbox control is not available for smart device development. This seems like a fairly basic property that has been omitted from the Compact Framework. (By the way, I'm porting this application over from the Palm OS, which has had this capability for many years). Any idea whether the SelectionMode property for the listbox control will be available in the released version of VS2005 If not, is there a recommended alterna ...Show All
Visual Studio Express Editions TreeView question #2
Hi Is there any way to get a TreeView which is being populated with Files to read the appropriate file icons for each of the files I do have a useful program (Audacity) which can rip icons from files, but I suspect that would be a rather long and laborious procedure. Is there any inbuilt function or method to do this kind of thing Even just the system file icons would do most of the job for me. It is a bit boring when I just have one folder icon and one file icon to display in the TreeView. How are you populating the files If you are doing it and not a binding it's easy. If you are using a binding ... I'd say ...Show All
SQL Server can't modify stored proc which is in a publication
Hi SQL 2005 sp1 - merge replication - HTTPS. We have 2 publications for the database - one which has subscription.SyncType = SubscriptionSyncType.Automatic and another with SyncType = SubscriptionSyncType.None. The first publication is there so we can add new stored procs etc, the second contains the initial schema and the data. When we try to modify a proc which is in the publication with SyncType = Automatic, the query never returns. This is most urgent - thanks for your help. Bruce There are 2 subscriptions - one for each publication - but the proc is only in one publication ...Show All
SQL Server Initializing A Subscription From A Filegroup Backup - SQL Server 2005
One of the new features of SQL Server 2005 replication is the ability to initialize a Subscription from a backup instead of applying a snapshot. This is a welcome feature, but it also leads me to a question. Assume I have implemented a filegroup backup strategy. My Subscriber database has two filegroups: one contains tables that are replicated, the other contains tables that are NOT replicated. I shut down replication while I load a large data file. The load takes more than 24 hours. I now need to resynchronize my Subscriber. Would I be able to initialize my Subscription by restoring ...Show All
Windows Forms ComboBox
Hi, using the ComboBox with the normal style, that is, including the edit portion, is not very nice yet for power users of the application. Suppose that what you set out to do is add a browser address bar to your application, just like the one in Internet Explorer. I won't go into the lack-of-the-icon topic (which is bad enough), but most input cu ...Show All
Visual Studio 2008 (Pre-release) WCF distributed transactions without sessions?
Hi, All examples of distributed transactions in WCF use Session = true, and PerSession instance mode. Are sessions mandatory for distributed transaction support What's the exact relation Thanks. Hi, You don't need to work with sessions in order to enable transactions. I advise you to visit the PDC05 web site and download the Reliable Sessions and Transaction presentation by Shy Cohen. The presentation also includes some demos that helped me very much when got into WCF. Good Luck! Guy http://blogs.microsoft.co.il/blogs/bursteg/ ...Show All
Windows Forms Help -> Check for Updates
<rant>This isn't a feature request, or even a bug report, but I could think of no better place to put this rant. 1. Visual Studio was obviously built with the "intent" of providing updates, as per my topic subject. Everytime I run this command I always get the "No new Service Releases are available\n\nYour system is up-to-date." message&nbs ...Show All
Visual C++ Capturing /showIncludes output
Hi. I'm trying to capture the output of cl /showincludes . The docs say that this goes to stderr , but that seems not to be the case. In a 'normal' console window, the output goes to stdout and I can use cl -c -showIncludes f.cpp >includes When run from VisualC++ (visual c++ 2005 express edition), cl insists on sending its output to the Output window, and no amount of redirection seems to be able to pursuade it to do otherwise. Thanks, Bob. [ C:> cl -nologo -Bv Compiler Passes: C:\_1\VC\BIN\cl.exe: Version 14.00.50727.42 C: \_1 \VC\BIN\c1.dll: Version 14.00.50727.42 C: \_1 \VC\BIN\c1xx.dll: ...Show All
.NET Development Where did the GetXml method go?
I'm working on a webservice, that is supposed to return the content of a dataset. I've built a dataset (dsItem), but I can't seem to get any XML out of it. The GetXml() method simply isn't available... Could anybody tell me the simple reason that is so Here is my code: Public Function ItemRequest( ByVal strSearch As String ) As String Dim ds As New dsItem Dim dsArtistTable As New dsItem.ArtistDataTable Dim dsAlbumTable As New dsItem.AlbumDataTable Dim dsTrackTable As New dsItem.TrackDataTable Dim dsArtistAdapter As New dsItemTableAdapters.ArtistTableAdapter Dim dsAlbumAd ...Show All
Visual C++ cannot debug "Hello world!"
Hi, I created a win32 console application starting with an empty project using Visual Studio 2005. I then added a cpp file and typed in the following code: #include <iostream> using namespace std; int main() { cout << "Hello world!\n"; return 0; } When I try to run the program by pressing "Start Debugging" (F5), a console window appears then I get a popup saying : "There is no source code available for the current location." I then have an option to "Show Disassembly". I can see my output in the console window if I click "Start Without Debugging" (Ctrl ...Show All
