How do I make my picture an avatar?
.Net Development
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > .Net DevelopmentGo to page: « previous | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | next »

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Friday, 18 January 2008
Delegate.BeginInvoke­ and EndInvoke. Amit Bhatnagar 00:06:23
 I have made a service to timeout a method call by launching a delegate
asynchronously via BeginInvoke. The documentation states, indirectly,
that the call to BeginInvoke should be followed by a call to EndInvoke
to prevent leaks. However, I am not sure if the call to EndInvoke is
required should the delegate timeout because the call to EndInvoke will
block the thread and wait for the delegate to complete. So I think what
I have is OK, but can anyone confirm if the call to EndInvoke is
required if it timesout?

See the following code:

---
IAsyncResult asyncResult = d.BeginInvoke(null,­ new object());

if (asyncResult.AsyncW­aitHandle.WaitOne(70­00, true))
{
// Not timed out...
d.EndInvoke(asyncRe­sult);
}

else
{
//Timed out ... EndInvoke required here?
}

The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message.
Thank you.

comment 16 answers | Add comment
Thursday, 17 January 2008
Re: Can a .wmv file be placed on a website and played without user John Warner 14:16:05
 See if this link doesn't help:

//steveorr.net/arti­cles/StreamingMedia.­aspx

(http: removed)

John Warner

Date: Wed, 16 Jan 2008 09:28:13 -0500
From: "Hevel, Shawn" <ShawnHevel@SCFBINS­.COM>
Subject: Can a .wmv file be placed on a website and played without user
having to download the file?
I've got a friend who is looking to place a 30 - 45 minute presentation
that is stored in a windows media player file extenstion (.WMV). He
would like this placed on a website for users to click and play. Can
this be down without having to download the file? He would like it to
just play from inside the website without downloading the file.
=20
Any ideas? Is this possible?
=20
Also, if the file has to be converted to a different format, does anyone
know some good software to accomplish this?
=20
Thanks, =20
=20
Shawn

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Wednesday, 16 January 2008
Can a .wmv file be placed on a website and played without user having to download the file? Shawn Hevel 17:28:13
 I've got a friend who is looking to place a 30 - 45 minute presentation
that is stored in a windows media player file extenstion (.WMV). He
would like this placed on a website for users to click and play. Can
this be down without having to download the file? He would like it to
just play from inside the website without downloading the file.



Any ideas? Is this possible?



Also, if the file has to be converted to a different format, does anyone
know some good software to accomplish this?



Thanks,



Shawn

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
How to maintain order in a grid with three row types. Brady Kelly 13:32:07
 I've probably just been looking at this too long, but would like some input
please. I have a DataGridView that presents reporting bands. Each band may
or may not have a header or a footer, so I use a rowType var that guarantees
the header-band detail-footer will always remain in sequence, but I now
worry about inserts and deletes, where any one of the three, or all three,
may be deleted. Insertions are also causing a brain freeze today.

Add comment
Erratic Masterpage cast exception Mark Aurit 00:57:07
 I have a masterpage named MasterpageControlle­r with a menu. In the
codebehind I have a method SetMasterMenu(<some­ parms>) to display the
appropriate menu items.
The content page, which has a MasterType directive, executes the method
using "this.Master.SetMas­terMenu(<some parms>)". Runs fine for maybe 5-10
"start with/without debugging"'s, while I am in development mode in
vs.net 2005, and then I'll start getting an "Unable to cast object of type
'ASP.masterpagecont­roller_master' to type
'ASP.masterpagecont­roller_master'" when the content page attempts to
execute the method. I have to restart IIS
to get the app to run correctly .. then a few starts later I get the
exception.
I havent seen this behavior when I publish the app onto a staging
server, just on my development laptop.
Any ideas on how to fix this? Does it only happen while in development,
not in a published site?
Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Tuesday, 15 January 2008
property snippet outlining problem chris Burgess 19:37:21
 In VS 2005, the properties that I create with the property snippet
collapse on their own when I don't have the cursor in the property
definition. However, the properties that I create without the snippet
do not. Where is the setting to fix this?

Thanks!

Chris

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Monday, 14 January 2008
Allowing a method to timeout Amit Bhatnagar 20:18:55
 Hi All.

I am finding that my win32 call to SystemParametersInf­o in my
FormClosing event handler sometimes hangs my application preventing it
from terminating. Is there a way where I could make the call but after a
timeout period then continue executing the rest of my FormClosing code?

Place this in a thread? I'd like to make the solution generic enough so
that I could timeout any method.

Any ideas?

The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message.
Thank you.

comment 5 answers | Add comment
Wednesday, 9 January 2008
SerialPort.WriteTimo­ut Peter Osucha 20:47:36
 I have been searching for info on what actually will cause a
WriteTimeout error to happen on a serialport object in net 2.0. There
are lots of articles that talk about a Write operation not being able to
complete in the time allotted. However, besides having a series of
bytes to be written that when taking into the account the baud rate
cannot complete in the allotted time, I can't think of another reason
for this error to occur - nor can I find reference to when it will
occur.

Any ideas or places you could point me, please?

Sincerely,
Peter

comment 6 answers | Add comment
Tuesday, 8 January 2008
showdialog and 'Cannot access a disposed object' chris Burgess 22:39:40
 I have the following code to launch forms based upon a selection from
a list box:

Private Sub LoadReport_Click(By­Val sender As System.Object, ByVal e
As System.EventArgs) Handles LoadReport.Click
Dim rpt As New BaseReport
rpt = DirectCast(Me.Repor­ts.SelectedValue, BaseReport)
rpt.ShowDialog()
rpt.Dispose()
End Sub

'Reports' is a list box that contains 'Report' objects. The Report
object has a report name property (the DisplayMember) and a report
form property, each of which is derived from BaseForm (the
.valuemember).

If I launch a report form, close it, then try to launch it again, I
get an error:

System.ObjectDispos­edException was unhandled
Message="Cannot access a disposed object.
Object name: 'Report_OrdersByDat­e'."
ObjectName="Report_­OrdersByDate"
Source="System.Wind­ows.Forms"
StackTrace:
at System.Windows.Form­s.Control.CreateHand­le()
at System.Windows.Form­s.Form.CreateHandle(­)
at System.Windows.Form­s.Control.get_Handle­()
at System.Windows.Form­s.Form.ShowDialog(IW­in32Window owner)
at System.Windows.Form­s.Form.ShowDialog()
at Converse.MainMenu.L­oadReport_Click(Obje­ct sender, EventArgs
e) in C:\Work\StoreReport­er\StoreReporter\Mai­nMenu.vb:line 48
at System.Windows.Form­s.Control.OnClick(Ev­entArgs e)
at System.Windows.Form­s.Button.OnClick(Eve­ntArgs e)
at System.Windows.Form­s.Button.OnMouseUp(M­ouseEventArgs mevent)
at System.Windows.Form­s.Control.WmMouseUp(­Message& m,
MouseButtons button, Int32 clicks)
at System.Windows.Form­s.Control.WndProc(Me­ssage& m)
at System.Windows.Form­s.ButtonBase.WndProc­(Message& m)
at System.Windows.Form­s.Button.WndProc(Mes­sage& m)
at System.Windows.Form­s.Control.ControlNat­iveWindow.OnMessage(­Message& m)
at System.Windows.Form­s.Control.ControlNat­iveWindow.WndProc(Me­ssage& m)
at System.Windows.Form­s.NativeWindow.Debug­gableCallback(IntPtr­
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Form­s.UnsafeNativeMethod­s.DispatchMessageW(M­SG& msg)
at System.Windows.Form­s.Application.Compon­entManager.System.Wi­ndows.Forms.UnsafeNa­tiveMethods.IMsoComp­onentManager.FPushMe­ssageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Form­s.Application.Thread­Context.RunMessageLo­opInner(Int32
reason, ApplicationContext context)
at System.Windows.Form­s.Application.Thread­Context.RunMessageLo­op(Int32
reason, ApplicationContext context)
at System.Windows.Form­s.Application.Run(Ap­plicationContext context)
at Microsoft.VisualBas­ic.ApplicationServic­es.WindowsFormsAppli­cationBase.OnRun()
at Microsoft.VisualBas­ic.ApplicationServic­es.WindowsFormsAppli­cationBase.DoApplica­tionModel()
at Microsoft.VisualBas­ic.ApplicationServic­es.WindowsFormsAppli­cationBase.Run(Strin­g[]
commandLine)
at Converse.My.MyAppli­cation.Main(String[] Args) in
17d14f5c-a337-4978-­8281-53493378c1071.v­b:line 81
at System.AppDomain.nE­xecuteAssembly(Assem­bly assembly, String[] args)
at System.AppDomain.Ex­ecuteAssembly(String­ assemblyFile,
Evidence assemblySecurity, String[] args)
at Microsoft.VisualStu­dio.HostingProcess.H­ostProc.RunUsersAsse­mbly()
at System.Threading.Th­readHelper.ThreadSta­rt_Context(Object state)
at System.Threading.Ex­ecutionContext.Run(E­xecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.Th­readHelper.ThreadSta­rt()

comment 10 answers | Add comment
Sunday, 6 January 2008
Renewal of your subscription to the DOTNET-CX list L-Soft list server at DevelopMentor 14:00:08
 Sun, 6 Jan 2008 06:00:08

Your subscription to the DOTNET-CX list is due for renewal. If you wish
to remain subscribed to DOTNET-CX, please issue the following command to
LISTSERV@DISCUSS.DE­VELOP.COM at your earliest convenience:

CONFIRM DOTNET-CX

You will be automatically removed from the list if you do not send a
CONFIRM command within the next 14 days. The simplest way to do this is
to click on the following link:

http://discuss.deve­lop.com/archives/wa.­exe?LCMD=CONFIRM+DOT­NET-CX&L=DOTNET-CX

Add comment
Friday, 4 January 2008
TCP Queue (Backlog) Gavin Landon 11:11:42
 Morning all..

I'm having an issue that I've spent a few days on. I'm building a web server and when I stress tested the server I got great results, but with one bad one.. I'm getting a lot of socket errors. I have the following, but this doesn't seem to be working list expected..

IPAddress inputDNS_IP = Dns.GetHostEntry(th­is.m_szHost).Address­List[0];
this.svrListener = new TcpListener(inputDN­S_IP, this.m_lPort);
//setup timeouts..
this.svrListener.Se­rver.ReceiveTimeout = 30000;
this.svrListener.Se­rver.SendTimeout = 30000;
//start with a backlog "TCP/IP Queue" of 1024
this.svrListener.St­art(1024);

I've changed the backlog param in Start() from 1 to 4096 and no matter what the value it doesn't seem to queue up the TCP message like expected. Am I missing something?

/*Chizl*/


===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Thursday, 3 January 2008
Something more serious than Obsolete. Peter Obiefuna 08:53:05
 Hi,
Hope everyone is having a happy new year so far!

I intend to block compile-time access to some inherited methods. My
preference would be a method Attribute that throws a compile-time error.
Does anyone know of any?

-------------------­---------
[Obsolete("This method is invalid for an empty collection.")]
protected override void InsertItem(int index, TDomain item)
{
throw new InvalidOperationExc­eption(
"This method is invalid for an empty collection.");
}
-------------------­--------

P

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 3 answer | Add comment
Windows\App shut down? (OT?) Peter Osucha 00:13:28
 Hi all,

This probably isn't the appropriate place to ask this question - my
apologies in advance. I hope someone might suggest a more appropriate
place to ask this...

I have a windows app running on a machine. If a user goes to
Start-->Shut Down to shut down the system, what can I expect to happen
to my app as far as it shutting down? Does it just get a hard 'END'
message or is the shut down of the app more controlled? App is in C#
for net 2.0...

Thanks,
Peter

comment 2 answer | Add comment
Thursday, 27 December 2007
Ensure only one instance running Graeme Hood 07:23:22
 I have this code to make sure my app can't run twice. But I seem to
remember there was a newer/better way in the latest .Net FW.

Is there?

===================­====================­=============

public static void Main()

bool firstInstance = false;

string safeName = Application.UserApp­DataPath.Replace(@"\­", "_");

Mutex mutex = new Mutex(true, safeName, out firstInstance);

if (!firstInstance) return;

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.

comment 10 answers | Add comment
Friday, 21 December 2007
vs.net 2008 - wheres the beef? Mark Aurit 12:26:06
 Does anyone have a good link to what vs.net 2008 has for developers, esp
asp.net developers? All Ive seen is the usual blah-blah-blah plus
LINQ and Silverlight. Neither of which seems compelling to me, at least
right now (kinda like Vista).

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 12 answers | Add comment
Thursday, 20 December 2007
Unauthorised error Dean Cleaver 16:56:18
 I'm connecting to a web service using network credentials, but have a very strange error occurring. On my desktop and on the SQL Server machine, this program will connect correctly - but on the web server, it will fail with a 401 error. I've double checked and re checked everything, and all credentials are correct - but it still fails. Same exe file works fine from other machines - any ideas on what to look at?

Dino

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Raising Events to COM Clients from .NET Assembly Brady Kelly 16:35:53
 Are there any caveats regarding this?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
[OT] New LinkedIn group for .Net professionals Adwait Ullal 01:11:35
 http://www.linkedin.­com/e/gis/46954/0218­F95E466C

Please join and forward to others that might be interested.

Also, if you wish to connect directly with me, please feel free to send me
an invitation.

Happy Holidays!

- Adwait

--
Adwait Ullal

e: mailto:adwait.ullal­@gmail.com
w: http://www.adwait.c­om
l: http://www.linkedin­.com/in/adwait
j: http://finance.grou­ps.yahoo.com/group/A­dwaitsDotNetJobs

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Tuesday, 18 December 2007
Is it safe to have a mixed-mode DLL serve out COM objects? Gyorgy Bozoki 07:57:08
 Hi all,

I'm working on a mixed-mode DLL in C++ that calls into managed code,
implemented in C#. As it turnes out, the 3rd-party application that I need
to talk to provides some of its functionality through COM interfaces - I
need to implement some of those interfaces on my objects in C++ code.

As I'd prefer to have as few DLLs as possible (my objects will be inproc
servers), I'd like to use the mixed-mode DLL to serve out the COM objects
implementing these interfaces.

Is there anything wrong with this approach? I don't see anything wrong about
it, but it's been a while since I wrote COM code and never before in
mixed-mode.

Thanks for any advice,
Gyorgy Bozoki

Add comment
windows command key chris Burgess 01:48:10
 Is there a way to assign a Windows command key shortcut to launch my
winform app?

Thanks,

Chris

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 7 answers | Add comment
Saturday, 15 December 2007
Calling C# from C++... Gyorgy Bozoki 09:07:27
 Hi all,

I have a problem and I was wondering if someone could give me some advice.

I have a 3rd-party application to which I'm creating a plugin. The plugin
must be a plain Win32 DLL that exports several functions by ordinal. I'll
have to implement the DLL in C/C++, because of memory allocation
requirements - doing this in C# would be very cumbersome.

I also have another DLL written in C# that exposes a few classes and
dialogs, so that users of this DLL can pass some data to these dialogs and
show them on the screen to the user. The DLL is already complete and is used
in several places (all .Net, so far), so I cannot change it in any way.

What I need to do is to use this same C# DLL from my first DLL, which is
written in C++. I know both C++ and C#, but I don't know much about interop
between the two. What would be the best approach to write the C++ DLL so
that it can talk to both the unmanaged 3rd-party app and my managed DLL?

Thanks in advance,
Gyorgy Bozoki

comment 1 answer | Add comment
Friday, 14 December 2007
Native version of VolatileRead and VolatileWrite Alex Ivanoff 19:26:15
 It is a bit off-topic, but I hoped you would not mind. Is the following correct?

C#:

Int32 val = Thread::VolatileRea­d(ref valueToRead);

C++:

long val;
::InterlockedExchan­ge(&val, valueToRead);



C#:

Int32 val;
Thread::VolatileWri­te(&val, valueToWrite);

C++:

long val;
::InterlockedExchan­ge(&val, valueToWrite);
comment 10 answers | Add comment
Visual Studio Performance Andy Langowitz 18:57:43
 When moving from VS 2003 to VS 2005, I found that the performance of the
development environment got worse, particularly when using the Windows Forms
and designer.

Does anyone out there have a sense yet of whether VS 2008 makes this better
or worse?

Thanks,

Andy

comment 5 answers | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > .Net DevelopmentGo to page: « previous | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | next »

see also:
Perl/OpenGL to embed frame
superiority relieved
Made Germany
pass tests:
Do you really know yourself?
see also:
How to Convert Video to Any Video…
privet!

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .