Re: [ADVANCED-DOTNET] Who calls the async socket callback

2006-02-16 Thread Eric Means
The callbacks are on completion port threads. You can verify this by checking the number of available/total Threadpool and IOCP threads from such a callback. On 2/16/06, Tony Hal <[EMAIL PROTECTED]> wrote: > > Hi all, > > Which thread calls the callback passed to Socket.BeginReceive/BeginSend. >

[ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Vitor Dantas de Andrade
i´m sorry but i changed the code to avoid the error, it´s not happening any more, i can´t do more tests ... This is a project that i have to deliver :) -Mensagem original- De: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Em nome de Simeon Pilgrim Enviada em: quinta-feira,

[ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Vitor Dantas de Andrade
No, its not a winforms ... And theres no other threads changing the value .. -Mensagem original- De: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Em nome de Aranki, Tim Enviada em: quinta-feira, 16 de fevereiro de 2006 19:52 Para: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Assun

Re: [ADVANCED-DOTNET] Dynamically Displaying WinForms.

2006-02-16 Thread Marc Brooks
>public static T CreateObjectFromString(string typeName, Type[] > types, string[] paramValues) Why not the more generic object[] for paramValues? > parameters[i] = Convert.ChangeType(paramValues[i], You could use something like the ChangeType helper from WilsonORMapper's QueryHelper to

[ADVANCED-DOTNET] Who calls the async socket callback

2006-02-16 Thread Tony Hal
Hi all, Which thread calls the callback passed to Socket.BeginReceive/BeginSend. Is it the worker thread pool or completion port thread ? === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://disc

Re: [ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Aranki, Tim
Just a thought, but is this a WinForms app? Is it possible that there is another thread that is updating that value? /tim -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Russ Alan Sent: Thursday, February 16, 2006 3:07 PM To: ADVANCED

Re: [ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Russ Alan
If it's not a pdb out of sync issue, it's probably a side-effect. I've seen "crazy" stuff when I had unexpected side effects. For instance, what is in your watch window? Sometimes a property displayed in the watch window has side-effects that change what is happening in the normal flow of control

Re: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Simeon Pilgrim
So what happens if you change the flow of your code to look more like this (as Peter Suter suggested). I'm not a VB'er so syntax could be wrong. Dim sDir As String = "" Dim val As Integer = FaixasInferior.Count If val = 0 then FaixasCarrega(.) <...> Then put a break point on the FaixasCar

[ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Vitor Dantas de Andrade
Hi, Yes i know, i not a novice, and spent hours on this problem, check the screenshot ... -Mensagem original- De: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Em nome de Steve Welborn Enviada em: segunda-feira, 13 de fevereiro de 2006 11:33 Para: ADVANCED-DOTNET@DISCUSS.

[ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Vitor Dantas de Andrade
Yes,sure, I restarted the Vstudio, deleted the .pdb ... And so on ... i´m certified in .Net development, and have 15 years experience in programming ... i´m not a novice ... Bye Vitor -Mensagem original- De: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Em nome de Steve

[ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Vitor Dantas de Andrade
Mayba cause i´m in Brazil, Greenwich time -3 -Mensagem original- De: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Em nome de Ryan Heath Enviada em: segunda-feira, 13 de fevereiro de 2006 11:22 Para: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Assunto: Re: [ADVANCED-DOTNET] .NET I

[ADVANCED-DOTNET] RES: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-16 Thread Vitor Dantas de Andrade
I´m sorry guys, I only check this list from time to time ... Here´s the link to the screenshot... http://201.17.129.58/publico/code.jpg The tooltip shows the value of Count, but the yellow line shows that the code did what it should´nt ... Vitor -Mensagem original- De: Discussion of

[ADVANCED-DOTNET] osql.exe problems...

2006-02-16 Thread Mike Andrews
Guys, I need some help with the osql.exe sql server 2000 command line utility. For the most part everything works fine except... I have really large SQL files to execute. These files are automatically generated and FTP'd to a directory. There is a Windows Service that runs on that machine and

Re: [ADVANCED-DOTNET] StrongNameIdentityPermissionAttribute

2006-02-16 Thread Mike Woodring
> I may not have been clear; but, I'm not saying all > strong-named assemblies > are "granted" FullTrust I'm saying (when they don't refuse it > or use APTC) > the implicit LinkDemand for FullTrust means their code can't > run without > it. The implicit demand on a strongly named assembly (A, for

Re: [ADVANCED-DOTNET] StrongNameIdentityPermissionAttribute

2006-02-16 Thread Peter Ritchie
I think we're getting stuck on semantics and side-tracked on explicit FullTrust assignment. On Thu, 16 Feb 2006 10:03:41 -0700, Mike Woodring <[EMAIL PROTECTED]> wrote: >Huh? Have you tried that? A fully trusted exe, for example, running off >the hard drive and with full trust, can indeed load s

Re: [ADVANCED-DOTNET] Dynamically Displaying WinForms.

2006-02-16 Thread Gregory Miley
I wrote a class that is basically a wrapper for creating dynamic objects based on their assembly and type name (as string). I use: Type.GetType(TypeNameAndAssemblyString).GetContructor(ParamTypes[]).Invo ke(ParamValueObjects[]); I have that wrapped in a generic method that: return T returnObj

Re: [ADVANCED-DOTNET] Determing Executable Preferred BaseAddress

2006-02-16 Thread Vince P
I have absolutely no idea if this will help but this is a article about examining the PE http://www.codeproject.com/dotnet/dotnetformat.asp -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Keith Hill Sent: Thursday, February 16, 2006 11

[ADVANCED-DOTNET] Graphics::CopyFromScreen

2006-02-16 Thread John Davis
The CopyPixelOperation values don't work if the destination is a graphics object backed by an in memory bitmap. However, it does work if the Graphics object is from a Control (ie backed with video memory). Is there a way in .Net to allocate a Bitmap which is allocated from video memory? ===

Re: [ADVANCED-DOTNET] StrongNameIdentityPermissionAttribute

2006-02-16 Thread Mike Woodring
> >"By default, strongly named, **fully trusted** assemblies > are given an > >implicit LinkDemand for FullTrust on every public and > protected method of > >every publicly visible class." > > You can't explicitly grant full-trust to an assembly, you can > grant full- > trust to a zone where an ass

[ADVANCED-DOTNET] Determing Executable Preferred BaseAddress

2006-02-16 Thread Keith Hill
Does anybody know how to determine an executable's preferred base address (image base) from managed code? I know how to use dumpbin /headers to get this information (image base) but I was hoping there was perhaps a more direct route. System.Diagnostics.ProcessModule.BaseAddress gives you the b

Re: [ADVANCED-DOTNET] StrongNameIdentityPermissionAttribute

2006-02-16 Thread Mike Woodring
> That's not what I've observed. I tried just that, running an > strong-named > assembly locally and from the Internet. Adding FullTrust for > the assembly > by publickey and name (no version) still caused it to be > denied when run > from the Internet. Sounds to me like you've got a configurati

Re: [ADVANCED-DOTNET] Dynamically Displaying WinForms.

2006-02-16 Thread Ryan Heath
> Thanks for responding, but I need to soft code the form names because I do > not know what are called at design time. > When I read your question, AppDomain.CreateInstanceAndUnwrap did cross my mind, but I skipped it as soon as I read you had done similar stuff in VB6 several years ago... ;) Ca