|
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 />
|
|
|
|
|
DateTime.Now.ToShortTimeString()
|
|
|
|
|
hi, i don't know another way to do it. but you can try doing an substring to the string, in this way works to me jeje... hope you find it usefull
TimeSpan saat = DateTime.Now.TimeOfDay;
lblLoginTime.Text = saat.ToString().Substring(0,8);
|
|
|
|
|
i fill 1 data table from database . i have 1 datagrid on the form that i fill it manually. can i add one of the columns of the data table to my datagrid?
thank you
|
|
|
|
|
To read database name from App Config File and Compare this database name with database name in the database.
Please reply ASAP
|
|
|
|
|
u can try
System.Configuration.ConfigurationSettings.AppSettings[key]
where key is string associated with key tag in app.config file
the second question is not clear try to explain it more
rahul
|
|
|
|
|
You forgot to ask a question!
Reading from the app config can be as simple as
System.Configuration.ConfigurationSettings.AppSettings["YourKey"]
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|