|
Thanks - they both sound like good alternatives... I'll have to do a bit of research.
At the moment I am just doing it very simply where I write an event to a table from the web site then a timer in the app checks the table for any new entries every minute... seems to work well for what I need so far.
|
|
|
|
|
It's very irritating.
I compile the project, go to browser and do the refresh. Server (localhost) takes a long time to respond and sometimes throws a debug window to choose the debugging IDE so I must refresh again, and sometimes it works like nothing happened.
It just happened with no reason.
Everything was OK, and suddenly when I compile it and refreshed it, I get the error.
With almost every compile, I get debbuging windows that tells me to choose the IDE for debug.
Event Viewer logged this:
EventType clr20r3, P1 aspnet_wp.exe, P2 2.0.50727.42, P3 4333aece, P4 eposlovi, P5 1.0.0.0, P6 46d30c6c, P7 a, P8 6, P9 system.nullreferenceexception, P10 NIL.
aspnet_wp.exe (PID: 4456) was recycled because it failed to respond to ping message.
aspnet_wp.exe (PID: 1120) stopped unexpectedly.
An unhandled exception ('System.NullReferenceException') occurred in process #5852. Just-In-Time debugging this exception failed with the following error: The process ID is invalid.
How can I fix this irritating problem?
Thanks a lot.
|
|
|
|
|
I've solved this...
The problem is in destructor in which I closes the DB connection...
When I am done reading, I close the DB conn, and when that conn class disposes, I close the DB in destructor again and that what causes the error...
|
|
|
|
|
i want to make a schedule for distributing employees over a month ,using genetic algorithm & C#
can anyone tell me plz how to proceed ?
|
|
|
|
|
Don't cross post. See the reply in the other forum.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I had wrote a program in vs 2005(c#). I want to use this program as CD autorun so this program should be executed without installation. as you now such this programs can not be executed without .net framwork but this program should be able of executing without .net framwork.
is there any solution to solve my problem?
GoOd LuCk
|
|
|
|
|
amin_joon wrote: this program should be able of executing without .net framwork
Then you should have thought of that before committing yourself to a dependency on the .NET framework.
amin_joon wrote: is there any solution to solve my problem?
There are expensive solutions to allow this, but I don't know of any off the top of my head. You might want to try google.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
I heared that there is some SDK's that install on vs and can compile codes for every platform like win98 win XP etc.
is it right?
|
|
|
|
|
No. It's called Visual C++.
|
|
|
|
|
Realistically, the only way a .NET application can run is if the correct version of the .NET Framewowrk is installed on the target computer. You can still run a .NET application as part of a CD's autorun, but it will still depend on having the .NET Framwork already installed (or you will need to install it yourself before your application runs).
|
|
|
|
|
|
plz can someone help me to get a FREE version of infragistics NetAdbantage for .Net from onother source of "www.infragistics.com" ?
|
|
|
|
|
So, what made you SPAM the forums with 7 copies of this question? It's considered very rude to do so and make collaboration on an answer pretty much impossible.
This[^] is the only place you're going to get the trial version.
|
|
|
|
|
Especially when it seems like he is spamming for a free pirated version...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Yeah, he posted another question, and the spamming continues. Some people just never listen, not even to the answers you give them.
|
|
|
|
|
Dave Kreskowiak wrote: Some people just never listen, not even to the answers you give them.
Either they are really dense or just a stupid bot.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Paul Conrad wrote: they are really dense or just a stupid bot.
Adamant attitude. They feel that repeated pings should convince at least some one to succumb to thier 'Mission Piracy '.
|
|
|
|
|
Vasudevan Deepak Kumar wrote: 'Mission Piracy'
Could always be that.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
how do you add a custom component to the toolbox?
I have created a custom control in .net 3.0 and i
can't add it to the toolbox.
thank you...
-- modified at 17:38 Sunday 26th August, 2007
It Is Not That I'm Different!
... I'm Only Making The Difference!
|
|
|
|
|
ferdna wrote: can't added i to the toolbox
What is the error? Shouldn't be any different than anything else being added to the toolbox.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i don't get an error at all... VS crashes when i drop the component into the form..
thank you
It Is Not That I'm Different!
... I'm Only Making The Difference!
|
|
|
|
|
ferdna wrote: VS crashes when i drop the component into the form..
Hmmm, that's odd.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hello,
I posted the following in the C++/CLI forum, because the application I was writing when I noticed the problem is written in C++/CLI. However, the thought occured to me that maybe this is something .NET developers in C# or VB.NET have also experienced. Please take a read through and let me know what you think. Thanks!
Yesterday I tried an experiment.... I took a C++/CLI application of mine and disabled my menu-disabling code so that my full menu system (with fly-outs) would work even when no application data was open. Using Task Manager to monitor my memory use, I noticed that every time I expanded a top-level menu or moused over a sub-menu that triggered a fly-out, more memory was used. No shock there. BUT, when I click back in the main window area to make all the fly-outs disappear, the memory use does NOT decrease! In fact, I sat there for 10 minutes waiting for Task Manager to show some drop in memory use, but it never did. Meanwhile, when I triggered the same fly-out again, even MORE memory was used.
I noticed the same behavior when I triggered the Open File Dialog (.NET out of the box -- no overrides or anthing weird).
The application I am writing is very dialog-intensive. The base application uses about 64MB. But at the consumption rates I'm seeing, I could very well imagine that after an hour or so I'd be up to 512MB from invoking dialogs and the GC failing to reclaim memory.
What the heck is going on? Is my Garbage Collector broken? Should I somehow manually invoke garbage collection to clear some memory? Does anyone know if the GC works on a time interval or a certain percentage of consumed memory, or what?
Thanks for your help.
|
|
|
|
|
Hi,
you may not have a problem at all.
when you instantiate some class, an array, a dialog, whatever, you would need more
memory; either your Operating System allows you that, or your gc will try and free
up some of the memory that is already yours. There is nothing periodic about it,
it's on a need-to-run base.
So if your app is allowed 100MB, it will grow until it starts to reach such numbers,
only then will gc run, and you may fall back to as low as a few MB. Who cares ?
If the number it falls back to keeps growing, then there is a potential problem,
since that indicates more and more objects don't get freed, either because you
really need more and more objects, or because you have a memory leak.
If you are not using unmanaged code, the typical way to get memory leaks is by
forgetting to call Dispose() for objects instantiated from a class that has such
method. There are many, one that people often seem to forget is Form (and hence
also OpenFileDialog). For dialogs, you should create and show them, then
collect the results and dispose.
Hope this helps.
BTW: there are lots of articles on memory, dispose and the like, here on CP and
elsewhere.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|