|
No it's not
I need to catch the WM_KeyUp & I tried
PreProcessMessage
OnKeyUp
ProcessKeyMessage
ProcessCmdKey
even the WndProc
and many other but no use the WM_KEYUP isn't recieved
compubaby
|
|
|
|
|
I solved it
I found the ProcessKeyPreview is the only one that worked with me in recieving the WM_KEYUP
Thanks to all
compubaby
|
|
|
|
|
Hi,
I have one string like ParentInvids which contains ids
i.e string ParentInvids=1,2,3;
How can i display those values like ParentInventoryIds are 1,2,3
Is it possible to use stringbuilder
can anybody send tell
|
|
|
|
|
Hello, i am trying to write an application that saves about 11,520 images a minute a windows disk. The image size varies round the 8 to 20 kb. The application needs to run 24 / 7. At the moment i have a windows XP server service pack 2 and if i run the application after a 5 / 10 min the server crashes as the memory goes up and up. The commit charge rises all the time. I dont think i have a memory leak in the program but maybe the application is stressing the OS. Any raccomandations? any tuning i can do to the system. The application is written in c# .net v 2.0
Any help would be great as i have been banging my head on a wall now for some time
Thank in advance to any one that will take the time to read this
|
|
|
|
|
11520 a minute equates to 192 a second, sounds like alot of disk IO but maybe im wrong!
Are you sure you are disposing of objects correctly? Anything which implements IDisposable should have the Dispose() method called when you are done using it. If I remember correctly Image is IDisposable - could this be it?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Hello and thank you for your replay, I am callind Dispose() on any object that implements IDisposable!
I am really stuck, not sore what it could be
|
|
|
|
|
It could be that writing 192 images a second is too much for windows to handle, have you tried it on a smaller scale?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
If memory keeps going up and up, the system may be too busy to allow the garbage collector to continue collecting. You can force a garbage collection using GC.Collect() and GC.WaitForPendingFinalizers().
Also, after you dispose an image, make sure you call GC.SuppressFinalize(theImage) so that the GC knows the finalizer doesn't need to be called on the image.
Since you're doing so many images per second, every little bit counts. If you're still having trouble, try running your app under a memory profiler such as ANTS[^].
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Islamic Domination: Coming to a Jewish state near you!
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
thanks i will try this tonight and let you know
thanks again
|
|
|
|
|
Hi
Has someone any experience with such an upgrade?
I am going to do that with my C# windows based application.
Is it safe to install VS2005 with VS2003 already installed?
Is it fully compatibile?
I mean can I have installed simultanously both versions?
Any advice or warning?
Thanks
Ela
|
|
|
|
|
e_LA wrote: Has someone any experience with such an upgrade?
I am going to do that with my C# windows based application.
At home I've only tried opening very simple VS 2003 apps. in VS 2005. There were no problems. Might be a different with an industrial-strength app. that you might have at work. Where I work at the moment, a colleague will shortly be attempting to open one a VS 2003 web app. in VS 2005 and seeing whether everything workss.
e_LA wrote: Is it safe to install VS2005 with VS2003 already installed?
Is it fully compatibile?
I mean can I have installed simultanously both versions?
Yes to all. You shouldn't have any problems. VS 2005 will install side by side with VS 2003. Only issue might psossibly be the database, if you're also installing SQL Server 2005 alongside SQL Server 2000. For myself, I never had SQL Server 2000, but I did have MSDE 2000 and ran into some issues. But the upshot is that I still have MSDE 2000 installed as well as SQL Server 2005.
Kevin
|
|
|
|
|
Thanks for the answer. If you know more from you colleague please let me know.
Ela
|
|
|
|
|
You will certainly get quite a few warnings when you open VS 2003 projects. Some of these will be for obsolete method calls (the app. will still run, but they just suggest that you use a newer API). You'll also get warnings in HTML files because they're now tracking XHTML 1.0. But again they'll still run.
C++ code will definitely be something different though!
Kevin
|
|
|
|
|
|
Hi Kevin
Thanks for the link. I am upgrading windows application not web one.
However some issue will be usefull I supppose.
I have upgraded my aplication and everything was fine except code written in C++. There was a change in C++ compilator in VS2005 and I am struggling with that now
Ela
|
|
|
|
|
OK, yes you'll have fewer problems with windows forms than ASP.NET.
e_LA wrote: There was a change in C++ compilator in VS2005 and I am struggling with that now
Yes, I warned you that you might have problems with C++!
Try googling on "Breaking changes in Visual C++" or something like that. A lot of the problems are to do with MS making the compiler more conformant with the C++ standard.
Kevin
|
|
|
|
|
Kevin
I have been founding in google etc. and I did not found anything usefull.
However I am still looking for that.
I consider to translate the C++ code to C#. I was going to do that in the future but maybe I will have to do it now.
Ela
|
|
|
|
|
Yes, you can safely have them installed side by side.
š
Cheers,
Vikram.
I don't know and you don't either.
Militant Agnostic
|
|
|
|
|
Thanks for all answer. There were very usefull. I am going to do upgrade next week.
Ela
|
|
|
|
|
I am using a .NET dll component in VB6.0, i created TLB file and also able to access the functins of the DLL and execute also,now my problem is when i am taking an EXE of that VB application the part of .NET component is not working (i.e) it's not executing the functions of .NET DLL which i am calling in VB(.EXE), I appreciate for any Responses
THANKS IN ADVANCE
|
|
|
|
|
hi all,
TimeSpan saat = DateTime.Now.TimeOfDay;
lblLoginTime.Text = saat.ToString();
this gives me something like this > 15:03:12.1532500
i just need 15:03:12 i dont want fraction. how should i change my code ?
|
|
|
|
|
split(saat,".")
Phanindra...
|
|
|
|
|
TimeSpan saat = DateTime.Now.TimeOfDay;<br />
lblLoginTime.Text = saat.ToString();<br />
lblLoginTime.Text = lblLoginTime.Text.Substring(1, t.IndexOf(".") + 1);
|
|
|
|
|
lblLoginTime.Text = Convert.ToDateTime(DateTime.Now.TimeOfDay.ToString()).ToString("HH:mm:ss");
rahul
|
|
|
|
|
TimeSpan saat = DateTime.Now.TimeOfDay;<br />
lblLoginTime.Text = saat.ToString().Substring(1, t.IndexOf(".") + 1);<br />
|
|
|
|