Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2170
| From | Deanna Earley <dee.earley@icode.co.uk> |
|---|---|
| Newsgroups | microsoft.public.vb.general.discussion, comp.lang.basic.visual.misc |
| Subject | Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error |
| Date | 2014-10-23 11:46 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <m2amal$ij4$1@speranza.aioe.org> (permalink) |
| References | <m2aelp$t5s$1@speranza.aioe.org> <20141023103947.00003561@eternal-september.org> |
Cross-posted to 2 groups.
On 23/10/2014 09:39, Arne Saknussemm wrote: > On Thu, 23 Oct 2014 09:35:40 +0100 > "Deanna Earley" wrote in > microsoft.public.vb.general.discussion,comp.lang.basic.visual.misc > <m2aelp$t5s$1@speranza.aioe.org>: > >> Data = GetData() >> Result = StrConv(Data, vbUnicode) >> >> This works most of the time, but in the last month, I've now seen it >> raising error 7, Out of memory when the input byte array is empty (0 >> length, 0 to -1) > > What do you mean with that "0 to -1" ? If that's the upper bound of the > array, I wonder if the strconv considers it "unsigned" so trying to > deal with an array whose upper bound is "ffff" (or something like that) A 0 length array has bounds of 0 to -1 (as 0 to 0 is 1 item). You can easily create a 0 length byte array by assigning an empty string to it. That is a possibility though, but begs the question of has this changed? I still swear this used to work... -- Deanna Earley (dee.earley@icode.co.uk) iCatcher Development Team http://www.icode.co.uk/icatcher/ iCode Systems (Replies direct to my email address will be printed, shredded then fed to the rats. Please reply to the group.)
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-23 09:35 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Arne Saknussemm <motz001.20.wannabet@spamgourmet.com> - 2014-10-23 10:39 +0200
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-23 11:46 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Arne Saknussemm <es215.10.wannabet@spamgourmet.com> - 2014-10-23 15:09 +0200
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-23 14:28 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error "Farnsworth" <nospam@nospam.com> - 2014-10-23 08:04 -0400
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error "Farnsworth" <nospam@nospam.com> - 2014-10-23 08:35 -0400
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error "Farnsworth" <nospam@nospam.com> - 2014-10-23 11:48 -0400
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-24 09:47 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-24 14:47 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Arne Saknussemm <es215.10.wannabet@spamgourmet.com> - 2014-10-27 12:32 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-27 12:14 +0000
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Arne Saknussemm <motz001.20.wannabet@spamgourmet.com> - 2014-10-28 11:22 +0100
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error "Blue Planet" <sorry@nospamme.org> - 2014-10-27 12:11 -0400
Re: StrConv(ByteArray, vbUnicode) raising an "Out of memory" error Deanna Earley <dee.earley@icode.co.uk> - 2014-10-27 16:26 +0000
csiph-web