Answer Questions
Marcus Garcia MVP Fatal Flaw in the Large Object Heap?
Hi All, After playing with the GC I find the following interesting. The problem domain I typically work in requires the allocation of very large arrays for image processing. We have discovered some issues when our processes are long running. We run out of memory and can not reclaim it. Our only recouse is to restart our processes. In an effort to discover why I uncovered the following: The LOH (Large Object Heap) is never compacted. I think this is a fatal flaw in the GC. I understand MS stated reason for this, but shouldn't there be someway to compact the LOH if necessary, at least a method call that forces the issue Does anyone know of anything that can be done Any workaround is better than killing the process... Here is a demo ...Show All
ceebee Accessing the web service
guys - this problem has been discussed a lot over the web, but I am yet to find the apt solution. I have this simple web service (ASP.NET 2.0) that I am trying to access from my client code (windows app) in a different machine. My client IE settings have the proxy set to http://autoproxy:port . Now when I try to access the service, I get the 403 forbidden request error. One solution I ran into was to clear off the proxy settings (i.e uncheck all the boxes in IE Lan Settings..uncheck "automatically detect settings", uncheck "Use Automatic Configuration Script" and uncheck "Use a proxy server".which in turn will modify the registry settings & will be picked by the .net framework). This worked absolutely fine ...Show All
nub340 Page Load Firing Twice
I converted to 2.0 and now hte page load fires twice on my web sites. I understand there may be a place where the converted inserted code that loads the page twice, but I can't find it in the code behind. I'm using vb. Thanks. The page_load even somehow looked like... Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, Me.Load <=== notice the extra me.load rather than Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load I don't know when or how it got in there, but I"m sorry I bothered everyone about such a silly thing. I hope anyone who has this happen to them can find this useful. ...Show All
mNilysg Access and Sql Connectivity for Software
Hi, I have vreated a SQL- based project but now for few of my clients , i need that my project should work on Microsoft Access database , For this purpose :- Do I need to change all the queries of my project to work comatible to Access or Is there any other option for this How to create a database in Access , Is it similar as we do normally in SQL( like copying the .mdf and .ldf files onto Data directory), Is there any other option to create a database in Access by just copying some contents. Problem:- I want when somebody installs my software , it should ask for database like (Access or SQL) and creates a basic database with tables and data required for software in the selected server, Please let me know. Rega ...Show All
Minotaur How can i get data from sql database-tables for console-output
hi everybody! I need your help!! I can not find any example for my problem: i wanna be able to output data of items of a given sql database-table (e.g. Id, Weight, Length of table Products) on the console, having a ProductsDataSet.xsd-file. What specific code for the SQL query do i need Thanks a lot! bg If you need only output to console then you might consider issuing a simple SQL statement and using a DataReader to loop through all the results. Otherwise you would need a DataAdapter to fill the dataset and then simply loop through all the rows of a given table. Hay, You can fill a Dataset using a SqlDataAdapter. Then Loop through the DataSet and write the output in a console wind ...Show All
Learning VB Date Format
Dear all, How can I format a Chinese date format to a English(United States) date format(01-Mar-06), It means how can I make a date format regardless of Computer's Regional setting Thanks you Hmm, no, that's not redundant in the format the OP wants it. Specifying the culture is essential to get the correct 3-letter month abbreviation correct. "December" in German is "Dez" for one, wonder what it is in Swahili. For the record: I'm not German. Like this ( ): DateTime yourDate = new DateTime(year, month, day); Can you be more specific about what you want exactly with maybe some lines of code. Try something like this: string s = DateTime.Now.ToStri ...Show All
Vaish How do I insert a datetimepicker1 text into sql table in datetime datatype
If I try to insert a valve of datetimepicker text into SQL table in which datetime is datatype. It taken default value as 01/01/1900 For more plz see below code Dim sa As String sa = "insert into SOFTWAREREQUISITION values(" & st & "," & si & "," & TextBox2.Text & "," & DateTimePicker1.Text & "," & DateTimePicker2.Text & "," & pi & "," & DateTimePicker3.Text & "," & ei & ")" Please help in this regard, Regards, Sreecharan Dear friends, First of all thanks for reply I still not able to insert th ...Show All
accident DS HELP
I currently have this error when I delete a record and then save it. My code is at the bottom of this post, im a newb to this though wish to learn. Though i've tryed to google this many a times and still come up blank with out knowing how to fix this problem. Can anyone help much thanks and please keep the answer with simple instructions. --------------------------------------------------------------------- ERROR: Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. {"Update requires a valid DeleteCommand when passed DataRow collection with deleted rows."} System.InvalidOperationException was unhandled Message="Update requires a valid DeleteCommand when passed DataRow col ...Show All
CalinMac DynamicILInfo.GetTokenFor
Just want to make sure I understand for what things I need to get tokens and insert them into the byte code stream I am generating. I believe it is anything that is referenced in the byte code stream that would have a metadata token associated with it. Working from the overloads for the GetTokenFor method documented in msdn, that would then be any: byte array, other dynamic method being invoked, field being accessed, assembly-based method being invoked, type, string method on a generic type Before submitting a custom-generated byte code sequence I would want to resolve the metadata tokens for any of these items. And so if I keep my generated byte code along with a record of those offsets that need to be resolved and ...Show All
Jaime Stuardo Deciding minimum value based on type
Hi, Is there a way I can find what is the minimum value of a type using reflection e.g. If the type is int, it should be 0, if its string, it should be string.Empty. if its datetime, it should be minimum date time etc and if its object, it should be null. I have to achieve this using reflection and need to compare these values as well, e.g. if two values are equal or one of the value is minimum value for that type. Any standard way of doing this Or I would have to write code for it \ Please advice. Thanks, Hiten Thanks a ton... i think I will go with the activator suggestion Umm, yeah, default(T) works only with type parameters, not the Type variable. ...Show All
Eljdee1 Arraylist of an Arraylist
… public static ArrayList pathDirs = new ArrayList (); public static ArrayList [] allPathDirs = new ArrayList [10]; … for ( int p = 0; p < 10; p++) { //Changes to pathDirs allPathDirs[p] = pathDirs; //Replace by extra foreach p++; } foreach ( int path in allPathDirs[0]) { MessageBox .Show(path.ToString()); } … I always get the result if int i was 10(messagebox.show output). If I replaced allPathDirs[0] by allPathDirs[5] or any other number, it wouldn’t make a difference. I would like to get the value of allPathDirs[0]. To make the code sample short, I deleted the things that make pathdirs change of value. Don’t worry about it, I went over the ...Show All
cbueno UPnP NAT Traversal using .Net
Hi, Can anyone guide me to a tutorial which explains how to implement UPnP NAT Traversal using the .Net framework Thanks, phertel ...Show All
A.Momtahan deattach from data base
HI all we used this statement in vb.net to attach to the data base conn.ConnectionString = "Data Source=.;AttachDbFilename = " & str_data & ";Integrated Security=True;" if we want to deattach from database what i have to write in my code in vb.net thanks in advance i think its conn.close() ...Show All
detzX problem with XmlWriter
Hi everyone, When I use XmlWriter to write XML file, I've encountered a problem: what I need to write is something like: <MyNS:MyControl>bluabluablua</MyNS:MyControl> I've tried to use XmlWriter.WriteStartElement method to accomplish this, but I'll get a runtime exception said: "Invalid name character in 'MyNS:MyControl'. The ':' character, hexadecimal value 0x3A, cannot be included in a name." So I could use the overloaded with namespace one WriteStartElement("MyControl", "MyNS"), but only got: <MyControl xmlns="MyControl">bluabluablua</MyControl> this is definitely not what I want! If I can't do this with XmlWriter, does anyone know another way ...Show All
anisxahmed xml file for dataset
Hi, I want to read data from xml file into Dataset. So if i have 2 tables in dataset, then how to list data for both tables in one xml file Is this possible I listed data in single file like <tables> <ATable> <Table1> one row <all columns data for table1> </Table1> <Table1> one row <all columns data for table1> </Table1> </ATable> <BTable> <Table2> one row data </Table2> <Table2> one row data </Table2> </BTable> </tables> But it is not loading data in second grid. Please help as early as possible. Thanks Vrushali <data> <table1> <row col1="blah" col2="blah"/> <row col1="blah2" col2="blah" ...Show All
