ADSM-L

[no subject]

1994-10-11 04:55:21
From: Hans Kilian <dkatplzx AT IBMMAIL DOT COM>
Date: Tue, 11 Oct 1994 04:55:21 EDT
Hi.

I'm trying to write an utility to rename some of the files in ADSM's
database using version 1.1.0 of the ADSM toolkit for OS/2 and IBM's
C/C++-compiler. I'm having some problems though. I've changed the
definitions in the DSMAPIFP.H-file so the functions are declared as
_Far16 _Cdecl, and I've put in a _Seg16-directive whereever a
pointer is passed to ADSM (I've also put the _Seg16-directive in
the DSMAPITD.H-file.

I've then made a small program that does a dsmInit call, a
dsmQuerySessInfo call and a dsmTerminate-call. The program compiles
OK and I can also link it without errors. When I run it, it works
sometimes. The following is an example of what I get when I run it:

---- cut ----
[0 ? D:\PROGRAM\adsmapi\hkk]test1
[0 ? D:\PROGRAM\adsmapi\hkk]test1
This program is compiled with version 1.1.0 of the ADSM SDK.
Config file used is D:\PROGRAM\ADSMAPI\DSM.OPT.
Server:  - Type: MVS - Level: 1.1.0.9
Nodetype: HKK-APPL - FS delimiter: : - HL/LL delimiter: \
ID: HKK-TEST - Owner:  - Config-file: D:\PROGRAM\ADSMAPI\DSM.OPT

[0 ? D:\PROGRAM\adsmapi\hkk]test1
This program is compiled with version 1.1.0 of the ADSM SDK.
Config file used is D:\PROGRAM\ADSMAPI\DSM.OPT.
Exception = c0000005 occurred at EIP = 12af72eb.
SYS1811:

Processen er afbrudt. Fejlkode:  000D.
---- cut ----
I haven't edited this in _any_ way (sorry about the danish error
I haven't edited this in _any_ way (sorry about the danish error
message :)). I can't predict when the program will work or when
it'll abend. The additional info I get is this:

SYS3175: A program has generated an access violation at 12ae72b1.
ADSMOS2.DLL   0007:023e66b0

so I assume that the problem is with the toolkit.

I would like some info on how to use the toolkit with the IBM C/C++-
compiler if you have any (like what compiler options to specify). I
would also like to know if the toolkit has been updated since
version 1.1.0 and where I can obtain a copy.

Regards,
Hans Kilian, ATP Denmark
<Prev in Thread] Current Thread [Next in Thread>
  • [no subject], Hans Kilian <=