Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: 1 [2]
  Reply  |  Print  
Author Topic: FORMS statement error number -6208  (Read 42685 times)
Mark W.
Posts: 17


« Reply #15 on: November 08, 2013, 01:05:07 pm »

>>Hi Rene, that didn't work.  Can I mail the source to you privately?  I don't want to post it on a public forum.

That's the idea.
Rene
OK, I'm a new to this forum.  Where do I get your email address?
Reuben B.
Four Js
Posts: 1126


« Reply #16 on: November 09, 2013, 05:52:52 am »

I've seen this error with FourGen style code where you have the same .4gl in two different directories.

Look at the value of $FGLLDPATH and check in each of these directories (and the current directory) for another instance of U_security.42m

If my hunch is right, if you have FGLLDPATH=/some_other_directory:dcs/UTIL.4gm you will find in some_other_directory another U_security.42m

Reuben


Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Mark W.
Posts: 17


« Reply #17 on: November 11, 2013, 06:16:02 am »

I've seen this error with FourGen style code where you have the same .4gl in two different directories.

Look at the value of $FGLLDPATH and check in each of these directories (and the current directory) for another instance of U_security.42m

If my hunch is right, if you have FGLLDPATH=/some_other_directory:dcs/UTIL.4gm you will find in some_other_directory another U_security.42m

Reuben


Thanks for your reply.  There is only one instance of this module in the FGLLDPATH directories.
Mark W.
Posts: 17


« Reply #18 on: November 11, 2013, 08:05:52 am »

OK, I've found out what the problem was: the new module was not, for some reason, deployed to the modules directory, so the program was trying to run the old version.  I still have a question, however: should the error message not have been something along the lines of "Cannot find function xyz" instead of the cryptic message that "the module is already loaded."?
Rene S.
Four Js
Posts: 112


« Reply #19 on: November 12, 2013, 08:33:25 am »

Hello,
your problem des not exist in recent versions of Genero.

This is the output of a simple test, covering your problem: the runtime calls f1() and loads m2. When calling f2() the runtime tries to load m2 again.
Code
  1. sh test.sh
  2. + fglrun -V
  3. fglrun 2.02.20 build-966.107
  4. Built Nov 12 2013 08:11:39
  5. (c) 1989-2009 Four J's Development Tools
  6. + fglcomp m1
  7. + cp m2a.4gl m2.4gl
  8. + fglcomp m2
  9. + fglrun -l m1.42m m2.42m
  10. + fglrun m1
  11. here: f1
  12. here: f2
  13. + cp m2b.4gl m2.4gl
  14. + fglcomp m2
  15. + fglrun m1
  16. here: f1
  17. FORMS statement error number -6208.
  18. Module 'm2': already loaded.
  19.  

Now the same test with a recent version:
Code
  1. sh test.sh
  2. + fglrun -V
  3. fglrun 2.50.00 build-2201
  4. Genero virtual machine
  5. Target linux
  6.  
  7. Four Js*
  8. Licensed Materials - Property of Four Js
  9. (c) Copyright Four Js 1995, 2012. All Rights Reserved.
  10. * Trademark of Four Js Development Tools Europe Ltd
  11.  in the United States and elsewhere
  12. + fglcomp m1
  13. + cp m2a.4gl m2.4gl
  14. + fglcomp m2
  15. + fglrun -l m1.42m m2.42m
  16. + fglrun m1
  17. here: f1
  18. here: f2
  19. + cp m2b.4gl m2.4gl
  20. + fglcomp m2
  21. + fglrun m1
  22. here: f1
  23. Program stopped at 'm1.4gl', line number 3.
  24. FORMS statement error number -1338.
  25. The function 'f2' has not been defined in any module in the program.
  26.  

The error message should be enhanced anyway. The runtime should uses the (already existing) error 6207: The dynamic loaded module '%s' does not contain the function '%s'.

Rene

* test_6208.tgz (0.46 KB - downloaded 1269 times.)
Mark W.
Posts: 17


« Reply #20 on: November 12, 2013, 08:36:06 am »

Thanks Rene...
Pages: 1 [2]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines