|
Hi,
I just completed two articles on Silverlight. The first is real basic 1.0 stuff. The second is 2.0 and more architechuraly involved but geard toward developers. I would like some community feed back and any performance results you find while testing the code. I am working on an older Pentuim 4 willimina with low memory. I'm getting bad performance results, I'd like to know what beefier systems report.
Thanks,
~TheArch
XAML Graphics Series - Part 2 Silverlight 2.0 Desktop Art Animation[^]
|
|
|
|
|
|
Hi,
the error message "not all code paths return a value" is clear: there is at least one way of traversing your method without encountering either a "return value;" statement or an abnormal exit (an Exception being thrown).
PS: showing your code in PRE tags would improve readability and make it easier to spot the problem.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
please don't delete messages, it is considered rude and makes for a messy forum, leaving part of a thread.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
hello
What are the common issues when you try to port your application to run on 64 bit windows? Is this pretty the only/first issue you'd run into?
<br />
Solution<br />
> Configuration<br />
> Configuration Manager<br />
> Platform<br />
> select "New"<br />
> You can then choose x86 (32 bit) or x64 (64 bit)<br />
Thanks
dev
|
|
|
|
|
I found that marking my app as being 32 bit forced compatibility mode in 64 bit, which was all I ever needed to do ( of course, this means it runs as 32 bit ).
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
anyone who can give me one simple but good example to demonstrate that application domain has to be used.
because I found most examples for application domain can not demonstrate clearly that the necessity of application domain.
thanks.
|
|
|
|
|
This [^]might be an answer to your question.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
thanks.
but I still can not find some concret examples. It seems to me most people did not use it often.
this may be the reason that it is hard to find some good practical examples.
|
|
|
|
|
I use an App Domain to load config files into a process and associate it with a DLL. I blogged about a variant of my code here[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Every .NET application will have an application domain associated with it and it will be created automatically. Creating your own application domains helps you when you are dealing with plugin kind of architecture. Each plugin can be loaded on a new application domain and it can work isolated.
If you are familiar with NUnit, they use a new application domain to load the assemblies specified by the user. This will help them to isolate user code execution and proper resource and memory cleanups. When an application domain is unloaded, all the memory associated with it will be cleared.
Hope that makes it clear
|
|
|
|
|
how to implement the nested string case?
such as
string str="MessageBox.Show("hello")";
above code has compiled error anyway.
but how to do then?
thanks.
|
|
|
|
|
"MessageBox.Show(\"hello\")";
|
|
|
|
|
string str = "hello";
messagebox.show(str);
|
|
|
|
|
char quote = '"';
string str = "MessageBox.Show(" + quote + "hello" + quote + ")";
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
I'm getting the following error when i unlock my machine after few minutes. i have run my application before lock the machine.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.SafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)
at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
at SampleApplication.FormExportData.toolStripNewExport_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
I don't know the reason for this error. Any knows the reason?
Thanks in advance 
|
|
|
|
|
Hello Guys,
I have an issue with Deserialization. I have 2 Projects and I want to extport data to a binary file (serialize) in the first Project, and i want to read that date using the second application Deserialize.
The first Aplication will be given to hte end user, and will generate a Binary file that i want to read using the Admin application (the second one).
When i try to deserialize i receive this error:
"Unable to find assembly 'Application Timing', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."
I think i know the cause of the issue. The binary formatter puts the Application name,version and info in the file when it serilizes it, but i don't know how to bypass this.
Any suggestions?
Kind regards,
Alex
“Be the change you want to see in the world.”
|
|
|
|
|
There are two options:
1. Put the class definition in a separate assembly and deploy it in both applications
2. Use SerializationBinder. Here is an example: Draw with Mouse[^]
|
|
|
|
|
Hi all,
Using C#, is it possible to handshake a certain remote port using only the first two steps (SYN -> SYN-ACK), and then cut-off the connection without the final third step (ACK)?
The requirement is NOT to send the ACK, and as far as I understand, the Connect method of the Socket, handles all the 3 steps handshake automaticaly.
So is there a way to, somehow, stop after the first two steps?
Thanks in advance,
Danny
|
|
|
|
|
Hi
I have a WebBrowser control in my form and I would like it not to show/download images, because I want to stop wasting bandwidth.
Thanks.
|
|
|
|
|
I guess following code would work for you:
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
for (int i = 0; i < this.webBrowser1.Document.Images.Count; i++)
{
this.webBrowser1.Document.Images[i].Style = "display:none;";
}
}
|
|
|
|
|
Can someone explain how to develop a program that capture keystrokes and write them to a log file or text file? Like a keystroke monitor program.
Dushan Perera
|
|
|
|
|
|
You're making a key-logger, therefore you're unlikely to get any help here.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Do you know it is illegal to use a key logger to monitor another persons activity on a computer?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|