| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | REXX & SysLoadFuncs |
On the 03-18-95, George Moralez was chatting with All:
GM>Had a strange problem occur recently and don't quite understand it,
GM>thought someone might have some insight.
GM>
GM>I was developing an application using VX-REXX and things were running
GM>fine until one day I got an error #43 'Routine not found' on a call to
GM>SysLoadFuncs. I had the following code;
GM>
GM> call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
GM> call SysLoadFuncs
GM>
GM>This same error also occurred in a CMD file I created to test my procedures.
GM>I did not copy it from my VX-REXX stuff, so typos are not the problem in the
GM>CMD file. I do believe I had a typo in the VX-REXX version of RxFuncAdd, I
GM>had 'SysLoad Funcs'.
It would suffer the same problem because subsequent registrations of the
functions do nothing if the function is still registered, they just return,
so the faulty registration of SysLoadFuncs remained, this fault occurred
the first time round otherwise it wouldn't have bothered you. (read on).
GM>I solved the problem by adding;
GM> call RxFuncDrop SysLoadFuncs
GM>in front of the other calls. Both programs ( VX-REXX & CMD ) ran fine.
The SysLoadFuncs name was registered but it pointed to a DLL entry point
which did not exist, namely 'SysLoad Funcs', thus the initial RxFuncAdd
failed (but you didn't check the return so didn't know it, hence when
you went to call SysLoadFuncs you got #43.
Doing the Drop removed the faulty (incomplete) registration and put
things straight.
GM>I then removed the RxDropFuncs call from both programs and
GM>again both ran fine.
GM>
GM>I then duplicated my typo in VX-REXX and both still ran fine.
Subsequent/re-registration doesn't do anything as expected.
GM>The problem is solved for now but still has me perplexed. I am unable to
GM>duplicate it by retracing my development steps as I remember them.
GM>
GM>Just thought, maybe, someone knows what I did.
Cheers, Ian.
Internet:itimms{at}ariel.ucs.unimelb.edu.au CIS:100236,1404 [Team OS/2]
___
* MR/2 2.1 #141 * Please Captain, Not in front of the Klingons.
--- Maximus/2 2.02
* Origin: Bunyip's Cave BBS - +61-3-859-8194 (3:633/379)SEEN-BY: 620/243 624/50 632/103 301 341 348 363 633/379 635/503 640/820 SEEN-BY: 690/660 711/409 410 413 430 807 808 809 934 949 955 712/515 713/888 SEEN-BY: 800/1 7877/2809 @PATH: 633/379 632/348 711/409 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.