×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 1/27/2016 11:17 AM, Barbara Morris wrote:
On 1/26/2016 6:13 PM, Buck Calabro wrote:
On 1/26/2016 5:51 PM, Jon Paris wrote:
This is a situation that often occurs in debug when the dealing with
variables that are pointer based.
Strangely enough, SEP debug shows the contents just fine.
What I think is probably happening is that the dump is trying to show
all 32000 characters of cmd, but that it hits an offset error because
there isn't actually 32000 bytes worth of storage at the cmdPtr pointer.
Even more interesting! I made a tweak and set the lengths to the exact
size of the command I was testing and all of the variables show up in
the dump. I believe your hypothesis is correct.
It's sort of academic to me; I'm not going to raise a PMR over it. I
puzzled on it a while and can't see how to correct it. I can't really
change my code because I need to set aside the maximum amount of storage
possible for a command - 32000 bytes. Yet IBM i isn't necessarily going
to set that aside for me when it calls my program, so there's no real
way to reconcile the two; if the OS would return a VARCHAR we'd be all
set...
Thanks Barbara!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.