473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Possible bug in VB.NET 2003 - 123+ bytes passed to a function

I seem to have a problem when passing more than 122 bytes to a function in
parameters.

Using the example below, when testa is entered the objDataRow object has
lost all data.

This seems to occur only when testb procedure has 123 or more bytes passed
to it, although code does not get to testb before testa is entered.

------------------------------------------

Public Class Form1

Inherits System.Windows.Forms.Form

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim objDataRow As DataRow

Dim objDataTable As New DataTable

objDataTable.Columns.Add("Test1")

objDataTable.Columns.Add("Test2")

objDataTable.Columns.Add("Test3")

objDataTable.Columns.Add("Test4")

objDataTable.Columns.Add("Test5")

objDataTable.Columns.Add("Test6")

objDataRow = objDataTable.NewRow()

objDataRow("test1") = 1

objDataRow("test2") = 1

objDataRow("test3") = 1

objDataRow("test4") = 1

objDataRow("test5") = 1

objDataRow("test6") = 1

testa(objDataRow)

End Sub

Public Function testa(ByVal objDataRow As DataRow) As Integer

testb(0, 0, 0, 0, 0, 0, 0, 0) ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)

End Function

Public Function testb( _

ByVal a As Decimal, _

ByVal b As Decimal, _

ByVal c As Decimal, _

ByVal d As Decimal, _

ByVal q As Decimal, _

ByVal r As Decimal, _

ByVal s As Decimal, _

ByVal t As Decimal) As Integer

'ByVal e As Decimal, _

'ByVal f As Decimal, _

'ByVal g As Decimal, _

'ByVal h As Decimal, _

'ByVal i As Decimal, _

'ByVal j As Decimal, _

'ByVal k As Decimal, _

'ByVal l As Decimal, _

'ByVal m As Decimal, _

'ByVal n As Decimal, _

'ByVal o As Decimal, _

'ByVal p As Decimal, _

End Function

End Class
Nov 20 '05 #1
0 843

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Lucas-Smith | last post by:
I am trying to take a string and split it into a filename and a number where the number is what follows the *last* instance of a comma in that string. Split and explode won't work because if the...
20
by: svend | last post by:
I'm messing with some code here... Lets say I have this array: a1 = ; And I apply slice(0) on it, to create a copy: a2 = a1.slice(0); But this isn't a true copy. If I go a1 = 42, and then...
3
by: JMCN | last post by:
How can I use FTP from Access 2003 with Windows 2003. Any suggestions? Thanks - jung
3
by: Krach | last post by:
Hi everybody! I'm decided to develop (at least try) a custom pop3 connector / mail downloader for Exchange 2003. The question is simple: How do I start? I use MS Visual Studio 2003 (VB .Net). I...
5
by: bluter | last post by:
We have server components which were created by a third party and compiled in VC++5 (sp3). They run fine on NT4 and 2000, however during testing of our migration to Server 2003, these components...
6
by: Wes | last post by:
I'm running FreeBSD 6.1 RELEASE #2. The program is writting in C++. The idea of the program is to open one file as input, read bytes from it, do some bitwise operations on the bytes, and then...
9
by: manstey | last post by:
Hi, My question probably reflects my misunderstanding of python objects, but I would still like to know the answer. The question is, is it possible for an instnace to have a value (say a...
25
by: cmdolcet69 | last post by:
Public Value As Integer = 4096 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim bytes As Byte() = BitConverter.GetBytes(Value) End...
6
by: avcitamer | last post by:
We upgraded our system and problem below occured, pleas help me... Windows 2003 server SP1 When I set a decimal DB field value to "123,32" (using ADODB.recordset ) updated value was ok (123.32)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.