Article # 660, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Does register DS point dgroup in GOC methods?
Q. When a method written in GOC is called, does the system set the DS register to point at the dgroup of the geode owning the code resource? Or does the method have to take explicit steps to set ds=dgroup before acessing global vars, as exported library routines do? A. Depends if your method is being called by a library or not. If so, the answer is yes, you have to setup DS. If you give a library a callback function, DS will be equal to the DS of the library when the function is called. So you have to setup the DS in callback functions just like a library must do.