|
My crystal ball is telling me:
Deadlocks due to smaller scheduling quanta in the new kernel. Probably because some yahoo is playing around with sleep(stupidly small number).
Whooooo, spooky!
|
|
|
|
|
That is worthy of a and a 5, hear you go
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I use a crystal turd to divine what these idiots want.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
I have a page with a private variable that I use to store a list of items to be displayed in a GridView connected to an ObjectDatasource. By the time the ObjectDataSource.Selecting is called this variable is null. I have put breakpoints on the assignments, changed the name, protected it in a property etc, etc. I can see nowhere where the variable is nulled, yet it is null.
I thought the private variable would remain alive until the page is disposed of. Any ideas on why this variable is being nulled out? What don't I understand about the page life cycle?
|
|
|
|
|
Can you provide the necessary source code?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I'll work up a bare bones example.
|
|
|
|
|
You should just post your code that is causing the problem. Do check the scope of the variable in question. Is it global or local?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
<br />
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>]]><br />
<br />
<br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<br />
<asp:gridview id="GridView1" runat="server" datasourceid="ObjectDataSource1" xmlns:asp="#unknown"><br />
</asp:gridview><br />
<asp:objectdatasource id="ObjectDataSource1" runat="server" xmlns:asp="#unknown"><br />
onselecting="ObjectDataSource1_Selecting" SelectMethod="getItemList" <br />
TypeName="WebApplication1._Default"><br />
<selectparameters><br />
<asp:parameter name="SortExpression" type="String" /><br />
</selectparameters><br />
</asp:objectdatasource><br />
<br />
</div><br />
</form><br />
</body><br />
</html><br />
<br />
<br />
using System;<br />
using System.Collections;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Linq;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.HtmlControls;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Xml.Linq;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
<br />
namespace WebApplication1<br />
{<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
private int __x = 1;<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
__x = 2;<br />
}<br />
<br />
protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)<br />
{<br />
<br />
}<br />
<br />
<br />
[DataObjectMethod(DataObjectMethodType.Select, true)]<br />
public List<int> getItemList(string SortExpression)<br />
{<br />
if (__x != 2)<br />
{<br />
throw new DataException("__x is < 1");<br />
}<br />
<br />
List<int> rc = new List<int>();<br />
rc.Add(1);<br />
rc.Add(2);<br />
return rc;<br />
}<br />
<br />
}<br />
}<br />
</int></int></int>
Throws the data exception because __x is 1, not 2.
|
|
|
|
|
I see List got clobbered during the post. It should be List<int>
|
|
|
|
|
Not sure what is going on, because I am unable to replicate it. I see __x being set to 2, and the exception not getting thrown.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Something in the config then?
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
|
|
|
|
|
Doesn't look like anything out of the ordinary in the file.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Could you maybe zip up your project and send it to me?
|
|
|
|
|
Greetings,
In ASP.NET each time you make a postback the page is recreated, you deal with the page at each postback as a new page and as its for the first time, be aware that ASP.NET is stateless which means it doesn't maintain the state of its objects at each postback, so you have to maintain the state in ASP.NET application, read more about Maintaining State in ASP.NET Applications, either using Sessions or Viewstate and pick the best you want, there are tons of articles about this subject.
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
If you look at the code, this is within one cycle.
|
|
|
|
|
Your comment did trigger something though. I created a default constructor for the page. For any one page cycle it gets constructed twice. The first is as expected. The second is after the ObjectDataSource1_Selecting. Looks like the framework is creating the page in order to call the DataObjectMethod getItemList rather than using the one that exists.
Now to figure out why this is happening in my environment but not others??????
|
|
|
|
|
Okay, I find that if I return this from the ObjectCreating method of the datasource, it then works correctly. Still doesn't explain why it works for Paul but not me.
protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = this;
}
Thanks for the pokes guys. It pointed me in the direction of the solution.
|
|
|
|
|
Hi All
I am trying to strong name kcommon.dll which is 52kb in size . After strong naming through sn.exe , i am in trouble . The asssembly is now 42kb in size and some of the overridden methods are lost amd i m also !
Can any one please help about what is going wrong.
rinkurathor
|
|
|
|
|
Hi, is it possible in .NET to write applications with Visual Studio style components such as tabbed MDI windows and the interface for docking toolbars etc.?
I've seen some 3rd party libraries for this sort of thing but are 3rd party libraries the only way to do this? It's not something I'm willing to pay for so if need be I'd have to do similar from scratch.
I've not really done much with Windows Forms but I used to use Win32 API and MFC a little so apologies if this is something .NET supports easily straight out the box but if it is I'm not sure where!
Are there any examples on this sort of thing to get me started? I've not managed to find anything by searching.
Thanks!
|
|
|
|
|
Yes it's possible.
You basically have 2 choices.
1) Write it yourself.
2) Find 3rd party controls.
If you choose to write it yourself, the best way to go about it will probably be creating some kind of custom control. You'll have to write all the docking and drawing logic your self. This would be quite complex, and probably fairly tricky.
If you choose to find 3rd party controls you can either find free/open source ones, or you can pay for them. There are open source controls around, which you could either just use, or use as base for your own. There's several on CP: http://www.codeproject.com/KB/miscctrl/magicdocking.aspx[^]
Simon
|
|
|
|
|
|
Nifty. I never knew about that.
Simon
|
|
|
|
|
Hey everyone,
Question... is anyone aware of an SDK or a library that will do audio/acoustic fingerprinting? If not; is anyone willing to help write one? *grin*
In case you're not aware of what I'm talking about - it's the same technology that you see nowadays in the iPhone or what have you ... you hold your phone up to the TV or radio while you listen to a tune that you like; but you're not sure who the song is by... give your phone about 30 seconds, and it returns back to you the name of the song and the artist.
Is there any open source library or SDK that anyone is aware of that could get us coders started on some projects? I'm not interested in creating another "what song was that?" recognition application; but rather something different. Anyways, having such a library would be awesome.
Or, if anyone is willing; could someone give me a few pointers on what it would take to write such a library? I'd imagine there is some sort of hard math involved to figure out patters and peaks; etc to a song. Does anyone know of the research that it would take to make it happen?
Thanks for reading -
Brandon.
|
|
|
|
|
My business partner implemented one to sort identify duplicates and classify images/music. The main issue you will face is that this area, practically, has the hell patented out of it. So don't expect to be making a commercial release
As for open source... the Neuros digital audio computer had an Hear It Save It feature, similar to the iPhone (but this was around 10 years ago), and open source firmware (not sure if this algorithm was a binary blob or not). You might want to look there.
Yes, the math is hard. You will be needing a good understanding of audio transforms, some black magic in recording energy transistions and compressing this all down into a shortish key you can easily index while still doing partial matches.
The iPhone (like the Neuros) will probably use a third party service. I imagine they will make the client fingerprinting libraries avaliable for little cost, and charge a small amount per lookup.
|
|
|
|
|