× 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.



If you're not using memcpy() or cpybwp then the pointers are not copied, but
rather are invalidated. Only certain instructions copy pointers. Also, a
user space with points that is saved and then restored will not have valid
pointers stored in it.

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] On
Behalf Of Peter Daransky
Sent: Monday, June 20, 2005 2:46 AM
To: MI Programming on the AS400 / iSeries
Subject: AW: [MI400] Write System Pointer to User Space

Hi Bob, 
I'm trying to write resolved system pointers of another user spaces to one, 
the idea should be, I write something as one "config" user space where are
stored some stuffs and system pointers to other user spaces ?! 
I'm writing the code in C, at begin I think there must be some bytes in the 
user space ... but it looks with dump as there is nothing? But when I do
MATPTRL it tells me that the pointer is there, and I hope that with SETSPFP
I can get it back?! 
It is a wrong plan? 


-----Ursprüngliche Nachricht-----
Von: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] Im
Auftrag von Bob Cozzi
Gesendet: Sonntag, 19. Juni 2005 05:59
An: 'MI Programming on the AS400 / iSeries'
Betreff: RE: [MI400] Write System Pointer to User Space

Certain instructions can't copy pointers and of course user spaces can't be
restored with pointers, or rather the pointer is invalidated. What are you
using to copy the C struct to the *USRSPC?

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti

-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] On
Behalf Of Peter Daransky
Sent: Friday, June 17, 2005 8:59 PM
To: c400@xxxxxxxxxxxx
Cc: mi400@xxxxxxxxxxxx
Subject: [MI400] Write System Pointer to User Space

Hi,
I try to write resolved system pointer of one object to user space ... 
But it doesn't work for me!? Better sayed i've a C structure with many
variables and my wish is write it complet as a block of data to user space,
so that i can later read it with the resolved pointer ... 
Do i need perform something special (API or MI instruction ...) ? 
Has someone done something similar ? 
A little example in C will be help :-) 
 
Thank you 
peter_

_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.




_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.


_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.