Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding optional parameters to existing sub
Message
From
06/05/2007 13:50:33
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01222670
Message ID:
01222898
Views:
21
Hi Christof,

Thank you for the explanation.


>Hi Bruce,
>
>> Just would like to know why?
>
>When you call a method, the calling method puts all parameters on the stack where the called functions retrieves them. In other words, the method doesn't determine parameters by name but by position on the stack. In addition, there's no parameter that specifies how many values have been passed. If the CLR would allow your new code to run, your method would read more data from the stack than was made available end probably end up deleting the return address from the stack. As a result, your application would crash.
Previous
Reply
Map
View

Click here to load this message in the networking platform