Hi
I have some cobol applications compiled by Net Express 5.1 and runnig in my network. Some notebook/dektops cannot run this apps because it starts, and then close immediately. No message is displayed, nothing. In another device this same app runs. How to identify what is causing this problem ?
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
Hi Fabio...
What version of Net Express is this?
What OS are you trying to run under?
Is this running under Server for COBOL or under the Net Express development product?
Is this a console application or a GUI one?
How are you starting the application?
You might try starting it from a Net Express command prompt if there is one available as an error message might be displayed there. You could try a standard Windows command prompt, if the Net Express one is not available.
If your version of Net Express is 4.0 or higher then you could run your application with a CTF trace on which might capture the error.
You could also check the Windows Event log for a possible error
If none of these things help you might try creating a simple hello world console program and seeing if that will run or perhaps display an error.
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
Hi Fabio...
What version of Net Express is this?
What OS are you trying to run under?
Is this running under Server for COBOL or under the Net Express development product?
Is this a console application or a GUI one?
How are you starting the application?
You might try starting it from a Net Express command prompt if there is one available as an error message might be displayed there. You could try a standard Windows command prompt, if the Net Express one is not available.
If your version of Net Express is 4.0 or higher then you could run your application with a CTF trace on which might capture the error.
You could also check the Windows Event log for a possible error
If none of these things help you might try creating a simple hello world console program and seeing if that will run or perhaps display an error.
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
Net Express 5.1 (Windows 7). The applications are compiled and we copy it to a network share and run in Windows 11 desktops, under "server for Cobol 5.1".
GUI: Yes. Dialog System. This app starts by a Delphi app launcher using CreateProcess (win api). In some desktop works fine, in another one, no. Windows process shows this cobol app starting, but nothis is displayed and it close.
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
Net Express 5.1 (Windows 7). The applications are compiled and we copy it to a network share and run in Windows 11 desktops, under "server for Cobol 5.1".
GUI: Yes. Dialog System. This app starts by a Delphi app launcher using CreateProcess (win api). In some desktop works fine, in another one, no. Windows process shows this cobol app starting, but nothis is displayed and it close.
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
If you are running from a network share then it might be a licensing issue.
Are you setting the ASLMFNET environment variable to point to the license database on the server? Do the machines where it fails have access to the license share?
Can you try starting the COBOL program from a command prompt without the Delphi front end just to see if it starts or displays an error message?
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
If you are running from a network share then it might be a licensing issue.
Are you setting the ASLMFNET environment variable to point to the license database on the server? Do the machines where it fails have access to the license share?
Can you try starting the COBOL program from a command prompt without the Delphi front end just to see if it starts or displays an error message?
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
> If you are running from a network share then it might be a licensing issue.
This app launcher set enviroment variables before call the app. PATH and ASLMFNET are set.
> Can you try starting the COBOL program from a command prompt
Yes i can. It was done and the app closes too.
I don't know how to identify what is causing this behavior.
Thanks for try
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
> If you are running from a network share then it might be a licensing issue.
This app launcher set enviroment variables before call the app. PATH and ASLMFNET are set.
> Can you try starting the COBOL program from a command prompt
Yes i can. It was done and the app closes too.
I don't know how to identify what is causing this behavior.
Thanks for try
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
There are 5 files in ASLMFNET direcory.
apptrack.exe
aslmodf
mfasdb
prodfile
semfile
How can i recreate db license ? is there a way to do it ? - I don't believe in licesing problem, but i must try it.
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
There are 5 files in ASLMFNET direcory.
apptrack.exe
aslmodf
mfasdb
prodfile
semfile
How can i recreate db license ? is there a way to do it ? - I don't believe in licesing problem, but i must try it.
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
Can you create a hello world test program and try that?
If others are running from the same network using the same license database then it wouldnt be a problem with the actual licensing.
Do you know how to create a ctf trace file?
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
Can you create a hello world test program and try that?
If others are running from the same network using the same license database then it wouldnt be a problem with the actual licensing.
Do you know how to create a ctf trace file?
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
I will try. There are no more Cobol developers in company. We don't use Cobol anymore.
> Do you know how to create a ctf trace file?
I don't know, but i can try. Any clue ?
Thanks !!!
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
I will try. There are no more Cobol developers in company. We don't use Cobol anymore.
> Do you know how to create a ctf trace file?
I don't know, but i can try. Any clue ?
Thanks !!!
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------
for a ctf trace follow these instructions:
From a net express command prompt or Windows command prompt create a folder, i.e. c:\\ctftraces
Using notepad or another text editor, create a CTF config file called ctf.cfg and place it in c:\\ctftraces.
Set the following environment variable like:
set MFTRACE_CONFIG=c:\\ctftraces\\ctf.cfg
Run your COBOL program from the command prompt without the Delphi front end
This should generate one or more files with the extension .ctb
Please attach these to your post.
ctf.cfg should contain the following:
mftrace.level=debug
mftrace.dest=BINFILE
mftrace.emitter.binfile#location=c:\\ctftraces
mftrace.comp.mf.rts#all=true
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
for a ctf trace follow these instructions:
From a net express command prompt or Windows command prompt create a folder, i.e. c:\\ctftraces
Using notepad or another text editor, create a CTF config file called ctf.cfg and place it in c:\\ctftraces.
Set the following environment variable like:
set MFTRACE_CONFIG=c:\\ctftraces\\ctf.cfg
Run your COBOL program from the command prompt without the Delphi front end
This should generate one or more files with the extension .ctb
Please attach these to your post.
ctf.cfg should contain the following:
mftrace.level=debug
mftrace.dest=BINFILE
mftrace.emitter.binfile#location=c:\\ctftraces
mftrace.comp.mf.rts#all=true
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
Solved !!! Thanks for everyone.
The problem: ODBC setup to oracle database in 32 bits (System DSN), and not 64.
------------------------------
Fabio Bomfim Nunes
Gerente de TI
Companhia De Seguros Aliança Da Bahia
Salvador BR
------------------------------