Click here to Skip to main content
       

C#

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Who can help me to solve this problem ?mvpDave Kreskowiak19 Jan '13 - 15:47 
SO FREAKIN' WHAT?? Now ANYONE can impersonate you with malicious intent. Who cares if it's a "test" account. A guide to posting questions on CodeProject[^] Dave Kreskowiak
GeneralRe: Who can help me to solve this problem ?mvpRichard MacCutchan19 Jan '13 - 21:34 
Well now we have your username and password, and your email address we can cause any sort of trouble for you.
GeneralRe: Who can help me to solve this problem ?memberBobJanova21 Jan '13 - 5:47 
I voted to remove the post for the author's own good for that reason.
AnswerRe: Who can help me to solve this problem ?mvpEddy Vluggen20 Jan '13 - 2:24 
You're bypassing a captcha; meaning the site's owner has put in measures to prevent automated bots abusing his/her site. Whatever you're going to do, I doubt it complies with the TOS. Bastard Programmer from Hell If you can't read my code, try converting it here[^] They hate us for our...
GeneralRe: Who can help me to solve this problem ?mvpDave Kreskowiak20 Jan '13 - 6:12 
Just actually went to the URL?? I wasn't going to risk it because of recently exposed exploits. A guide to posting questions on CodeProject[^] Dave Kreskowiak
Questioncollections generic with wcfmemberyonim12319 Jan '13 - 12:33 
hi all   I want to pass generic collection, List with wcf   how to do that ?   i tried [datamember] but it's don't work
AnswerRe: collections generic with wcfmemberSledgeHammer0119 Jan '13 - 13:03 
Sure it works. I do it all the time. Post your code.
GeneralRe: collections generic with wcfmemberyonim12319 Jan '13 - 13:20 
using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization;   namespace BE { [DataContract] public class BusinessAccount : Account { private string companyNumber; private string companyName; private...
QuestionCannot Access the form _ Cross-thread operationmembermohammadkaab19 Jan '13 - 9:50 
hi guys , im using the zeromq dll , and most of you knows , that this dll is handling the socket programming job . okay , after that im define a dealer , i used the dealer.recived event is like dealer.OnReceived += delegate(byte[] bytes, bool multipart) { ...
AnswerRe: Cannot Access the form _ Cross-thread operationmemberjibesh19 Jan '13 - 21:29 
It applies the same here. OnReceived is gets called from a different thread and hence any operation on UI objects should route through InvokeRequired mechanism. Jibesh V P
AnswerRe: Cannot Access the form _ Cross-thread operationmemberpt140120 Jan '13 - 22:13 
I'm not sure you should be writing apps if Google is beyond you. People help those that try to help themselves...you don't seem to be trying very hard. http://lmgtfy.com/?q=Cross-thread+operation+not+valid[^]
GeneralRe: Cannot Access the form _ Cross-thread operationmembermohammadkaab21 Jan '13 - 20:26 
i've solved the problem , but ty
Questionwcf p2p file transfering over internetmembervab26108519 Jan '13 - 2:03 
i m developing the desktop application in c# dotnet for p2p file transffering..I am using wcf for this ..I have seen many articles over this ,they run smoothly on local computer as usually,but my application is p2p over internet and should not limited to LAN.I have found a article...
QuestionWorking with tab escape charectermemberMc_Topaz19 Jan '13 - 1:49 
I have problem making tab alignment in a text file. For example I have this simple code: long l1 = 500; long l2 = long.MaxValue; long l3 = 568678;   Console.WriteLine("Value1\tValue2"); Console.WriteLine("--------------"); Console.WriteLine("{0}\t{1}", l1,...
AnswerRe: Working with tab escape charectermvpAbhinav S19 Jan '13 - 2:38 
String.Format[^] has an alignment field. You can set this alignment number to the length of long.Maxvalue in terms of characters and then you can use this directly (even without using \t). E.g. Console.WriteLine("{0,10},11,13); Here[^] is an example.   String.PadLeft[^] could provide...
GeneralRe: Working with tab escape charectermemberMc_Topaz19 Jan '13 - 3:22 
Thanks very much!
QuestionDesign-Time Error in the Windows Forms Designer [modified]member_q12_18 Jan '13 - 4:25 
I have 1 Usercontrol. In it I load an image from code. But when I go to Form1 and put this control into form, I get an error that he can not find the image, but the image is there, and the root is correct from code. When I run the application, is working fine, loading the correct image. What...
AnswerRe: Design-Time Error in the Windows Forms DesignermvpEddy Vluggen18 Jan '13 - 5:02 
Instead of rethrowing the exception (which is a bit redundant - why catch it if you only throw it again), put up a messagebox or write the output (Debug.WriteLine); sounds like the designer is running it in a different path, and that's what you want to check.   Also, if it throws an...
AnswerRe: Design-Time Error in the Windows Forms DesignermemberAlan N18 Jan '13 - 5:42 
It's because the StartupPath is not what you think it is. Testing this on my system causes the designer view of the form to show an error message in HTML, helpfully rendered as one very long line. Carefully scrolling through it reveals that it looking for the image C:\Program Files\Microsoft...
QuestionParalel QuickSort with 2 threads running at the same spped [modified]memberGeorge Nistor18 Jan '13 - 0:51 
Hi,   I made a small program which sorts a Vector of 100000 ints. I use a quicksort , not the recursive one. With the single thread version I takes about 22s to complete.   -now the problem and the question: I have written a second version which 1. first make a partitioning 2....
AnswerRe: Paralel QuickSort with 2 threads running at the same sppedmvpDave Kreskowiak18 Jan '13 - 4:20 
22 seconds to sort 100,000 integers?? Are you running this on an Atari 800? That's horrible performance for a Quicksort.   I've got a Mergesort implementation in my toolbox that'll sort 10,000,000 integers in less than 12 seconds - single threaded.   Windows will not...
GeneralRe: Paralel QuickSort with 2 threads running at the same spped [modified]memberGeorge Nistor18 Jan '13 - 4:41 
Hi,   This quick sort couldn't be so bad. Ok, it is not an optimized QuickSort. I think it depends also on the input data you provide. I have used other sorting algorithms with these data set and I get comparative results.   But still I don't have any answer here.
GeneralRe: Paralel QuickSort with 2 threads running at the same sppedmvpDave Kreskowiak18 Jan '13 - 6:25 
George Nistor wrote:This quick sort couldn't be so bad   Oh yeah?? Quick sort normally has about 95% of the performance of Merge sort, given a proper implementation. Try recoding to use arrays only and skill all the stack collection garbage. A guide to posting questions on...
AnswerRe: Paralel QuickSort with 2 threads running at the same sppedmemberAlan Balkany18 Jan '13 - 5:12 
I think the stack operations are slowing your algorithm. Quicksort only needs a simple array.   The generic operations that are "array-like" will reallocate a NEW array and copy all the elements to this array when the old array isn't long enough to hold a new element. This gives O(n^2)...
GeneralRe: Paralel QuickSort with 2 threads running at the same sppedmemberGeorge Nistor18 Jan '13 - 5:31 
thanks Alan, I have realized after I looked on the Stack(Int32) Constructor.   I fixed the problem and now I was able to run it 2 times faster, in 9-10 seconds for the same dataset.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 18 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid