C# - Stackoverflow .net Language Representation?

Jun 27, 2012

[URL]notice that the tag topic count for C# is in excess of 8900 while the vb.net tag topic count is sitting at 1019. Does this mean that there is a shift towards c# as a .net language of choice. the only reason I decided to build some applications for work using c# was that I like curly braces - after all vb has the same language support as c#, doesn't it so there should be no advantage to choosing one over the other; other than curly braces;)

View 7 Replies


ADVERTISEMENT

.net - StackOverflow In List (Of T)?

Aug 30, 2010

I have a program that uses Lucene.net in ASP.NET (VB.NET), when you search a term, results are stored in the Lucene.net data structure "hits".I want to read out the hits into an data structure and work with them, after that I display them in a DataGrid.By searching a term with a lot of results, often (but not always) there is an error by following code :

For i = 0 To results - 1 Step 1
Try
Dim tmpobj As New object_hit(( _
hits.Doc(i).Get("title") + _

[code]....

I checked the server; it's a dwh server and has no problems to execute the program.At first I used a ReDim Array, but now I use a List(Of T).

View 2 Replies

Localization - Menu Strip To Select An Other Language - Doesn't Change My Menustip Text To My Selected Language

Mar 29, 2010

In my winform app in VB.NET I want to use the localization option. But i have a few questions/problems. I'm using a menu strip to select an other language. But it seems that is doesn't change my menustip text to my selected language. It does change my labels, buttons, and textboxes but menu strips don't seem to change when I choose another language. Also is it possible to get those resx files such as MyForm.fr-FR.resx compiled so it isn't an external file outside my app? Or to get those files in an Language folder at the same location of my app, so i don't have all those fr-FR & nl-Nl folders in the same location as my program?

View 4 Replies

Getting Stackoverflow Exception In System.dll?

Jul 9, 2009

i have identified that the problem here is in the following line:

Tbl_POBindingSource.Filter = Tbl_POBindingSource.Filter & " AND " & Partfilter

Now here is my whole thread:

Do While _filter = 0
Try
Dim POFilters As String = ""

[code]....

View 9 Replies

StackOverflow In SQLite Query?

Apr 2, 2010

I have an StackOverflowException in one of my DB functions that I don't know how to deal with. I have a SQLite database with one table "tblEmployees" that holds records for each employees (several thousand posts) and usually this function runs without any problem.

But sometimes after the the function is called a thousand times it breaks with an StackOverflowException at the line "ReturnTable.Load(reader)" with the message: An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.SQLite.dll

If I restart the application it has no problem to continue with the exact same post it last crashed on. I can also make the exactly same DB-call from SQLite Admin at the crash time without no problems.

Here is the code:

[Code]...

When crashes, the reader has "Property evaluation failed." in all values.I assume there is some problem with allocated memory that isn't released correctly, but can't figure out what object it's all about. The DB-connection opens when the DB-class object is created and closes on main form Dispose.

Should I maybe dispose the mycommand object every time in a finally block? But wouldn't that result in a closed DB-connection?

View 1 Replies

VS 2008 - StackOverflow Tips

Nov 28, 2009

I need some advice to make a small application running, i need to calculate a integer prime and i use a recursive function inside a while true loop, first i get a random number with random class and then i call the recursive function that checks if it's prime, if it's prime it exits the while. Sometimes it works others throws the stack overflow exception, what i must do to get rid off this exception?

View 4 Replies

Asp.net - IHttpHandler For Images Producing A Stackoverflow In IE?

Jun 24, 2009

I have a directory of images that reside outside the context of my web application that I need to serve to the user. Currently I'm using an IHttpHandler to serve the images and using some javascript to navigate through a set of images (the navigation is primitive for now). I followed examples for using IHttpHandler to serve images closely but when I view the images in firefox the browser hangs and when I view in IE I get a "Stack overflow at line: 0".

Code for the IHttpHandler

Public Class ShowImage : Implements IHttpHandler
Public Sub ProcessRequest(ByVal context As HttpContext) _
Implements IHttpHandler.ProcessRequest

[code]....

View 2 Replies

Asp.net - Store OpenID Users Into DB Like Stackoverflow Does

Dec 19, 2011

I have made a login system using OpenID using the following code:

[Code]...

It takes the user to Google for authentication. I only want to store the user information like email, full name and sex in my DB. I have written the following code to retrive email from Google but nothing is returned:

[Code]...

View 1 Replies

Stackoverflow Error In BackgroundWorker ProgressChanged

Sep 27, 2011

I have a search function in my program that uses a background worker in order to get the results. The Progress changed event is used to update the listview with the new item.[code]

View 2 Replies

Xml - Another About Getting Entries From StackOverflow Atom Feed

Dec 18, 2009

I feel like an idiot for asking this question again, as I know it's been asked several times. I cannot for the life of me get this code working even with the answers that have already been provided, so I'm hoping that by offering my current code, someone can help me determine where I'm going wrong:

Dim RSSReader As New Xml.XmlTextReader("http://stackoverflow.com/feeds")
Dim RSSDoc As New Xml.XmlDocument()
Dim NSMgr As New Xml.XmlNamespaceManager(RSSDoc.NameTable)
NSMgr.AddNamespace("atom", "http://www.w3.org/2005/Atom")
RSSDoc.Load(RSSReader.GetRemainder())

[Code]...

View 1 Replies

Migrate From .net Specific Language To .net Framework Language?

Mar 11, 2010

What reasons are there to migrate from vb.net specific language to .net framework language?
Examples:

VB.net
ubound
msgBox
.Net Framework
array.getUpperBound(0)
messageBox

View 4 Replies

Function Calling Itself, Can't Dodge StackOverflow Error

Oct 7, 2011

I understand that this is bad programming practice and redundant coding but I am curios.

I am simply counting a number up to 9999999 in a while loop. The Add() function simply increases that number and prints it out.

Inside the Add() Function I call the Add() function.

My program successfully prints out 12000ish numbers before I get a StackOverflow Exception.

So my question = Is there any way to ignore this error and keep counting?

I have tried On Error Resume, Try/Catch, and throw

My code is as follows.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
While number1 < 9999999

[Code].....

View 4 Replies

Oop - .NET Class Properties Ends Up In Circular References And Through StackOverflow Exception?

Jan 9, 2012

I have 2 classess. Role and User like this

Role
Public Class Role
Public Property RoleID As Integer
Public Property CreatedBy As User

[code]....

The situation is like when we create roles, we will save who created this role. So i have a CreatedBy Property of type User. Similarly when we create a User, we will mention what role the new user belongs to .So i have a property called "Role" of type "Role". This circular reference giving me StackOverflow exception as its recursive when i create an object of User class.How do i handle this ? should i restucture my entties ? how ?

View 1 Replies

Stackoverflow Exception Thrown When Calling Me.close() On Main Form

Apr 3, 2009

I have done some reading and it seems that this error comes from recursive calls but I have not done anything in my form_closing handler except for call me.close, that's it.

So I don't understand how this exception has entered my project. All of my data and functionality is still working as I expect. It just seems to throw this exception when I try and exit my project.

what I could check to prevent something like this from happening?

View 3 Replies

An Object Representation Of System ?

Nov 6, 2009

is there an object representation of System that i can Extend upon such that the extended method becomes global.

<Runtime.CompilerServices.Extension()> Public sub globalprocedure(ByVal asystem As ?)

View 3 Replies

Enums - .NET Enumeration Representation?

Apr 16, 2010

Is it guaranteed that the numeric values for an Enum with only uninitialized values start at zero and increment by one in the order defined?

View 2 Replies

Graphical Representation Of Data?

Aug 15, 2009

I am totally new to the graphical representation of the data. I want to make a progress report of students, based on marks achieved each year.For example, in year 2005 marks were 750. in 2006 780 in 2007 800

View 15 Replies

Converting String To Its Single Representation?

Feb 15, 2010

I am trying to convert a string to a single. Ive tried csng() directcast() and single.parse. The first two methods crash. Single.parse says input string was in incorrect format. The number is 777.7932 so should convert fine. Ive tried it this way:

'x = single.parse(pts(0), globalization.NumberStyles.AllowDecimalPoint)

how can i convert a string representation of a single data type that is read from a text file into its single data type. I checked control panel and globalization settings are set to english.

View 6 Replies

Decoding File To Graphical Representation?

Aug 2, 2011

I have a file from the client which is a text file. I have to decode the file to a graphical representation. Is there any way I can do it?

View 16 Replies

Graphical Representation Of Array Sorting ?

Dec 30, 2009

I want program to do Graphical Representation of array Sorting in vb.net with bars/shapes.

View 1 Replies

IDE :: When Localizing A Form / Select Language In Form Properties But IDE Automatically Selects Different Language

Nov 29, 2010

I have multilingual application that was done in VB2005.We recently had a request to translate the application to Arabic (Egypt), so I have been happily running through all of the forms and changing the layout for Right to Left format.I have 2 forms that are problematic though.On one form, whenever I select Arabic (Egypt), it will automatically switch the selection to Arabic (Saudi Arabia) and try to add an ar-SA resx file.On the other problematic form, if I choose Arabic (Egypt), the IDE will automatically select Chinese (People's Republic of China), then copy the contents of my ar-EG resx file into the zh-CN file, overwriting all of our Chinese translations and layout changes with the Arabic ones.

View 1 Replies

Casting An Integer To A Single, Preserving Bit Representation?

Jun 24, 2011

Is there a fast way in VB.NET to take a 32-bit int and cast to a 32-bit float while preserving the underlying bit structure? BitConverter will do this, but I'd like to cast it directly without involving byte arrays.

View 1 Replies

Determine Local Representation Of A Specific GMT Datetime?

Nov 12, 2010

I want to get the date value for

Nov 1, 2010 00:00:00 GMT

expressed in my local time.What is the best way? Currently, I am doing this:

Dim NovGmt As Date = New Date(2010, 11, 1, 0, 0, 0)
Dim Nov1AsLocal As Date = GetGmtExpressedAsLocal(NovGmt)
Private Function GetGmtExpressedAsLocal(ByVal gmtDate As Date) As Date

[code].....

tell me difference between the Date and DateTime datatypes? Is DateTime newer than Date or is it just a synonym for Date? If the latter, why have both?

View 1 Replies

Handling Integer Representation Of True And False

Aug 6, 2009

While testing some code i found something strange how vb.net (2005) is handling integer representation of true and false (or yes and no). Or at least i dont understand the reason for this.Im used to C or Java where 0 is false and everything else is true. To get to the point, here is the code: [code] And the out put is:X: 1 Y: 2x is truey is truex and y is false.If x and y or both individually true, why does it return false when you evaluate x And y.However, change the values of x and y to 4 and 5 you get this:X: 4 Y: 5x is truey is truex and y is trueJust another example, which seems to work how it should to me:X: 4 Y: 0x is truey is falsex and y is false.

View 7 Replies

Hashtable - Get String Representation Of Object Reference

Jun 3, 2011

I want to make a hashtable of object references and I want a different object's reference to be the key. How can I do this in vb.net? In java (assuming I am using the default toString method and that add() takes a string as a key and an object ref as the value) this would be something like: hashtable.add(obj1.toString(), obj2)

I do not want to use a vb.net gethashcode() function because I want deep clones of objects to have different identifiers. A related question is what is the default toString in vb.net? How can I get a string that represents an object reference in vb.net?

View 3 Replies

Multiplying The String Representation Of REAL Numbers?

Jan 12, 2012

<edit> Now showing the difference as a DECIMAL. Result looks like zero every time. </edit>Disclaimer: This code is provided "as-is" and should be treated as Freeware.( However any donations would be welcome as I have a "so-so" part-time job ).Please note all real numbers to be used should be in this format
"0.000000000000"Do not use numbers in string format in scientific notation like "1.2345E -06"I was feeling bored and decided to add to the code from JohnWein in this thread where I have used a routine that will multiply the contents of two long strings together.>>[url]I have now added a bit of code so you can multiply two really long numbers with or without a decimal point as a full-stop ( period or dot, call it what you like ).

[code]...

View 5 Replies

VB 2008 Replacing Characters With No Visual Representation?

Jun 22, 2012

my OCR copy text to a TextBox with “” at end, “” acts like enter key. Is it possible to replace it to something or remove it? For example, I want to copy number “1000” to my text box with OCR but I get “1000”(it’s a little different boxes, I couldn’t copy exact ones here). And I can’t do

TextBox2.Text = TextBox2.Text.Replace("", "")
, because  is an "enter key" and what I get looks like that:

View 10 Replies

VS 2008 Convert Binary Representation To Integer

Apr 6, 2010

I am using this to convert a number to binary representation:

[Code]...

View 1 Replies

Direct Access To Full String Representation Of Object

Jan 23, 2012

I am trying to log the contents of an object to a text file. If I do a debug.print of the object itself in the immediate window, it prints all of the values of the object's properties:

?mDb.DatabaseOptions
{Microsoft.SqlServer.Management.Smo.DatabaseOptions}
AnsiNullDefault: False
...
UserData: Nothing


However, I can't seem to access this as a string in code due to a type mismatch. I assumed I could get this information using the .ToString method, but all that returns is the object description with none of the properties or values:

?mDb.DatabaseOptions.ToString
"Microsoft.SqlServer.Management.Smo.DatabaseOptions"

View 2 Replies

Join Elements Of An ArrayList Converting It To A String Representation?

Jan 14, 2011

I 've an ArrayList and to join all its elements with a separator in one string I m using...

Dim s As String = String.Join(",", TryCast(myArrayList.ToArray(GetType(String)), String()))

however, I would know if there is a smarter/shorter method to get the same result,or same code that looks better...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved