Hi All,
I saw my code jump out the function call directly without throw a
boundary error....
no boundary check ?
string[] str_member_id = new string[100];
str_member_id[id_count] = "sth"; // exit directly without throw a msg
when id_cound=101;
Best regards,
Boki. 3 1766
Boki <bo******@ms21. hinet.netwrote:
I saw my code jump out the function call directly without throw a
boundary error....
no boundary check ?
string[] str_member_id = new string[100];
str_member_id[id_count] = "sth"; // exit directly without throw a msg
when id_cound=101;
No, it will be throwing an IndexOutOfRange Exception. If you have some
reason to believe this isn't happening, please post some code which
demonstrates it.
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
On Jul 1, 6:23 am, Jon Skeet [C# MVP] <s...@pobox.com wrote:
Boki <bokit...@ms21. hinet.netwrote:
I saw my code jump out the function call directly without throw a
boundary error....
no boundary check ?
string[] str_member_id = new string[100];
str_member_id[id_count] = "sth"; // exit directly without throw a msg
when id_cound=101;
No, it will be throwing an IndexOutOfRange Exception. If you have some
reason to believe this isn't happening, please post some code which
demonstrates it.
--
Jon Skeet - <s...@pobox.com >http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
No, I didn't catch it. just assume code will stop and let me know it.
Thanks.
Boki.
Boki wrote:
>[...]
No, I didn't catch it. just assume code will stop and let me know it.
Thanks.
Perhaps you've run your application outside without your debugger or
started a release build ?
Boki.
Andre This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Daniele Varrazzo |
last post by:
Hi everybody,
i'm experiencing crashing of the apache process when a mod_python handler
access the properties "boundary" and "allowed_xmethods" of the request
argument. This prevents the use of some interactive remote debuggers (such
ActiveState's) that try to read the contents of the variables in the
namespace and graphically present them in tree form.
I reported the crash on win32 platform. I am using python 2.3.4, apache
2.0.47,...
|
by: Singleton |
last post by:
Can some one guide me what is word boundary?
google is no good for me for this
thanks in advance
|
by: Devrobcom |
last post by:
Hi
I have read somwhere that this problem is handled by the
Intel cpu's (firmware), but what will happen on other types of cpu's.
struct
{
char aa; // even boundary 0xaa00
char bb; // assume on odd boundary 0xaa01
} mstr;
|
by: Taran |
last post by:
Hi all,
I was wondering how does address alignment to x byte boundary is done.
For example, if I say "adjust the requested size to be on a 4-byte
boundary" or for that matter 8 byte boundary. How is this
adjustment/alignment done?
I goolged around alot and wans't able to find how is it done, all it
said was what is byte alignment and byte padding.
|
by: Nick Bishop |
last post by:
I have a problem where I call a method in a C++ class with a pointer
which is a static member in that class. When I use a debugger, I see
the pointer having a certain value, but when I step into the method
(F11), the pointer has a different value and is not pointing at
anything valid.
The small program (complete source below) demonstrates what I am
trying to achieve. The small program works perfectly, but when I
incorporate this logic...
| |
by: szabi |
last post by:
Hi!
I have seen in a couple of libraries that object are never passed
through dll boundary, instead the results are returned through an
output parameter reference like:
void f(std::string &s)
{
s = "foo";
}
|
by: jjouett |
last post by:
I'm trying to setup an ASPX web page to service requests from an
existing Java Client that posts multi-part data as a way to upload
files, and I can't find a straightforward way to process the request.
>From the HttpRequest, the Request.Form and Request.Files collections
are empty. The Request.ContentType states the following:
multipart/form-data, boundary=012AhbCfFg225929
and using the Request.InputStream to get the content results in...
|
by: K. Jennings |
last post by:
I would like to get the result of malloc() such that it is
aligned on a given boundary - 8, in this case. Assuming that sizeof(u64)
is 8, will
u64 *p = malloc(N) ;
do the trick in general?
Here N is a positive integer, and I am assuming that malloc()
succeeds in allocating the chunk of memory specified.
|
by: kgeorge2 |
last post by:
A library which i use, has an array class
class LibArray {
public:
LibArray():_array(NULL),_len(0);
LibArray(int n, float val):_array( new float),_len(n){}
/**
more complete definition omitted
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |