Andrew,
Hi.
Your problem might looks to me to be related to compilation or linking.
Specifically, most libraries under VC++ are threaded (as is the ER Mapper SDK,
which makes heavy use of threads). If you link any threaded library
against the non-threaded MFC C library (non-threaded is the default lib), your
application will crash. So I suggest:
1. Check to make sure you are linking against the threaded libraries
2. Make sure the examples provided with the ER Mapper SDK compile,
and compare the supplied makefiles/project files with your application,
to see what the difference is.
This should resolve the problems for you. In general, there should not be any
problems with ER Mapper running/not running regarding licensing (ER Mapper does
all this time when spawning printing or compression tasks as new programs).
Hmm. Another thought in addition to the above: Check your execution & lib search
paths (try using erm_run), and also check which library you are linking against.
Regards,
Stuart
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, 13 November 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: RE: C Code examples -VDS, example 5
Hi Mike,
I've just tried the code on the Newcastle_magnetics_virtual_dataset.ers and the same
hang problem occurs.
However in doing so I have also found out that the program only hangs if ermapper.exe
is running. If ermapper is not
running I enter the error handling code after mmopen and get displayed to screen the
message " Unable to open virtual
data: License server pid XXX has died"
I presume my license is AOk as ermmaper is running fine.
Cheers,
Andrew
Principal Geophysicist
Integrated G Solutions Pty Ltd
Phone +61 (0)8 9377 0543
Mobile +61 (0) 4199 22557
Time GMT+8
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Mike Dunne
Sent: Wednesday, 13 November 2002 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: C Code examples -VDS, example 5
Hi Andrew,
Can't see anything obviously wrong with the code (straight from the book) - what is
the input vds that you are trying to
open ?
Does it hang on one of the example vdss shipped with ER Mapper.
cheers
Mike
-----------------------------------------------------------
To make changes to your subscription, please visit our website,
http://www.ermapper.com/technicl/ermapperl/index.htm