dbTalk Databases Forums  

Flash compile programs

comp.databases.pick comp.databases.pick


Discuss Flash compile programs in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Flash compile programs - 02-12-2007 , 05:27 PM






Greeting group.

I recently flash compiled all of my programs. I used a program to compile
and capture the return message. Any program that did not compile correctly
was logged into a file. Fortunately there were only a few.

Now my challenge is figuring out why they did not compile. Here is an
example. The message does not tell me where the problem lies. Can anyone
shed some light on this?

:COMPILE SOURCE-DA REPORT.DA.INV.NONMOVE (OK
REPORT.DA.INV.NONMOVE
...................................
[820] Creating FlashBASIC Object ( Level 0 ) ...
[821] FlashBASIC Compilation Error: Phase 1, Code 255
[B100]*Line 0: Compilation aborted; no object code produced.


Some of my other programs are not behaving properly. One program compiled as
the 1995 version rather than the current version. I re-compiled it
individually and it now works as it should.

Thank you,
Jeff
--
Jeffrey Kaufman
Key Data Systems Group
www.keydata.us
1111 Grizzly Peak Blvd.
Berkeley, CA 94708
510-486-9015 office
510-486-9016 fax
559-432-3832 cell




Reply With Quote
  #2  
Old   
Dale
 
Posts: n/a

Default Re: Flash compile programs - 02-12-2007 , 06:14 PM






On Feb 12, 3:27 pm, "Jeffrey Kaufman" <jkauf... (AT) keydata (DOT) us> wrote:
Quote:
Greeting group.

I recently flash compiled all of my programs. I used a program to compile
and capture the return message. Any program that did not compile correctly
was logged into a file. Fortunately there were only a few.

Now my challenge is figuring out why they did not compile. Here is an
example. The message does not tell me where the problem lies. Can anyone
shed some light on this?

:COMPILE SOURCE-DA REPORT.DA.INV.NONMOVE (OK
REPORT.DA.INV.NONMOVE
..................................
[820] Creating FlashBASIC Object ( Level 0 ) ...
[821] FlashBASIC Compilation Error: Phase 1, Code 255
[B100]*Line 0: Compilation aborted; no object code produced.

Some of my other programs are not behaving properly. One program compiled as
the 1995 version rather than the current version. I re-compiled it
individually and it now works as it should.

Thank you,
Jeff
--
Jeffrey Kaufman
Key Data Systems Groupwww.keydata.us
1111 Grizzly Peak Blvd.
Berkeley, CA 94708
510-486-9015 office
510-486-9016 fax
559-432-3832 cell
For the compilation error 'phase 1'.... try looking at the passed
parameters. I got a like error when the program defines a MAT VAR as
a passed parameter, but VAR is not dimensioned inside the subroutine.
Or something very close to that.

As for the 1995 version of the program problem, if the source code was
not available, then the flash compile will only work with the object
code. So I'd be suspicious and look at other such possibilities.

One question here.... Why are you using the 'K' option for all your
programs? It is my understanding that you should only used the K
option on subroutines that are called often, like a central data input
and validation routine. Maybe my understanding is wrong!?!?!?

Regards,

Dale



Reply With Quote
  #3  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: Flash compile programs - 02-12-2007 , 07:31 PM



"Dale" wrote:
Quote:
One question here.... Why are you using the 'K' option for all your
programs? It is my understanding that you should only used the K
option on subroutines that are called often, like a central data input
and validation routine. Maybe my understanding is wrong!?!?!?
Dale is right. The K is for core-locking frequently used object code
rather than releasing allocated memory when all users have exited.
('K' = 'keep' in memory?) This should be used for specific programs,
not all, if used at all.

I don't recall the specific error or release but somewhere in D3NT 7.4
I noticed the K option wasn't working properly. Of course I found
this (and reported it) after I suggested to BlueFinity that it would
be efficient to use the K option on mv.NET programs. Uh Oh... I
think the rule of thumb should be to not use the K option unless RD
can verify that there are no known issues - and if you do find issues,
report them.

T


Reply With Quote
  #4  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Flash compile programs - 02-15-2007 , 10:50 AM



I find nothing wrong with this program. I tried to flash compile without the
K option and got the same results.

:COMPILE SOURCE-DA REPORT.DA.INV.NONMOVE (O
REPORT.DA.INV.NONMOVE
...................................
[820] Creating FlashBASIC Object ( Level 0 ) ...
[821] FlashBASIC Compilation Error: Phase 1, Code 255
[B100]*Line 0: Compilation aborted; no object code produced.
:

This is why I have hesitated flash compiling my programs all these years.

"Tony Gravagno" <g6q3x9lu53001 (AT) sneakemail (DOT) com.invalid> wrote

Quote:
"Dale" wrote:
One question here.... Why are you using the 'K' option for all your
programs? It is my understanding that you should only used the K
option on subroutines that are called often, like a central data input
and validation routine. Maybe my understanding is wrong!?!?!?

Dale is right. The K is for core-locking frequently used object code
rather than releasing allocated memory when all users have exited.
('K' = 'keep' in memory?) This should be used for specific programs,
not all, if used at all.

I don't recall the specific error or release but somewhere in D3NT 7.4
I noticed the K option wasn't working properly. Of course I found
this (and reported it) after I suggested to BlueFinity that it would
be efficient to use the K option on mv.NET programs. Uh Oh... I
think the rule of thumb should be to not use the K option unless RD
can verify that there are no known issues - and if you do find issues,
report them.

T




Reply With Quote
  #5  
Old   
Ross Ferris
 
Posts: n/a

Default Re: Flash compile programs - 02-15-2007 , 12:56 PM



On Feb 16, 3:50 am, "Jeffrey Kaufman" <jkauf... (AT) keydata (DOT) us> wrote:

dumb question ... there IS plenty of fee space on the Linux partition?
(had a similar error yesterday, and this was the culprit)

I assume the site has maintenance (?), so what did RD say (once more,
we have found RD/TData to be VERY HELPFUL, and they have been m ore
than willing to connect to client sites to investigate/resolve issues
for us)



Reply With Quote
  #6  
Old   
Dale
 
Posts: n/a

Default Re: Flash compile programs - 02-15-2007 , 02:38 PM



On Feb 15, 8:50 am, "Jeffrey Kaufman" <jkauf... (AT) keydata (DOT) us> wrote:
Quote:
I find nothing wrong with this program. I tried to flash compile without the
K option and got the same results.

:COMPILE SOURCE-DA REPORT.DA.INV.NONMOVE (O
REPORT.DA.INV.NONMOVE
..................................
[820] Creating FlashBASIC Object ( Level 0 ) ...
[821] FlashBASIC Compilation Error: Phase 1, Code 255
[B100]*Line 0: Compilation aborted; no object code produced.
:

This is why I have hesitated flash compiling my programs all these years.

"Tony Gravagno" <g6q3x9lu53... (AT) sneakemail (DOT) com.invalid> wrote in message

news:eg42t2570cfok5gsndebg3op7cu1ngjnii (AT) 4ax (DOT) com...



"Dale" wrote:
One question here.... Why are you using the 'K' option for all your
programs? It is my understanding that you should only used the K
option on subroutines that are called often, like a central data input
and validation routine. Maybe my understanding is wrong!?!?!?

Dale is right. The K is for core-locking frequently used object code
rather than releasing allocated memory when all users have exited.
('K' = 'keep' in memory?) This should be used for specific programs,
not all, if used at all.

I don't recall the specific error or release but somewhere in D3NT 7.4
I noticed the K option wasn't working properly. Of course I found
this (and reported it) after I suggested to BlueFinity that it would
be efficient to use the K option on mv.NET programs. Uh Oh... I
think the rule of thumb should be to not use the K option unless RD
can verify that there are no known issues - and if you do find issues,
report them.

T- Hide quoted text -

- Show quoted text -

Again... The problem that the code won't Flash-compile has nothing to
do with the 'K' option.

Recheck carefully the first line of the subroutine and the
dimensioning of the variables that are accepting the data past.

Another problem with Flash-compile is that the P-code compiler, as I
call it, will allow the parameter list to also be on the second line.
The flash-compile chokes on this.

I've beat my head against many wall dealing with these flash-compile
errors, and 90% of the time it has to do with parameter passing.

Regards,

Dale




Reply With Quote
  #7  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Flash compile programs - 02-15-2007 , 03:09 PM



You nailed it Dale. A subroutine call was split onto two lines. Thanks for
your input. Too bad there was no indication in the error message that
pointed to the problem.

Jeff

"Dale" <dale_benedict (AT) flightcraft (DOT) ca> wrote

Quote:
On Feb 15, 8:50 am, "Jeffrey Kaufman" <jkauf... (AT) keydata (DOT) us> wrote:
I find nothing wrong with this program. I tried to flash compile without
the
K option and got the same results.

:COMPILE SOURCE-DA REPORT.DA.INV.NONMOVE (O
REPORT.DA.INV.NONMOVE
..................................
[820] Creating FlashBASIC Object ( Level 0 ) ...
[821] FlashBASIC Compilation Error: Phase 1, Code 255
[B100]*Line 0: Compilation aborted; no object code produced.
:

This is why I have hesitated flash compiling my programs all these years.

"Tony Gravagno" <g6q3x9lu53... (AT) sneakemail (DOT) com.invalid> wrote in message

news:eg42t2570cfok5gsndebg3op7cu1ngjnii (AT) 4ax (DOT) com...



"Dale" wrote:
One question here.... Why are you using the 'K' option for all your
programs? It is my understanding that you should only used the K
option on subroutines that are called often, like a central data input
and validation routine. Maybe my understanding is wrong!?!?!?

Dale is right. The K is for core-locking frequently used object code
rather than releasing allocated memory when all users have exited.
('K' = 'keep' in memory?) This should be used for specific programs,
not all, if used at all.

I don't recall the specific error or release but somewhere in D3NT 7.4
I noticed the K option wasn't working properly. Of course I found
this (and reported it) after I suggested to BlueFinity that it would
be efficient to use the K option on mv.NET programs. Uh Oh... I
think the rule of thumb should be to not use the K option unless RD
can verify that there are no known issues - and if you do find issues,
report them.

T- Hide quoted text -

- Show quoted text -


Again... The problem that the code won't Flash-compile has nothing to
do with the 'K' option.

Recheck carefully the first line of the subroutine and the
dimensioning of the variables that are accepting the data past.

Another problem with Flash-compile is that the P-code compiler, as I
call it, will allow the parameter list to also be on the second line.
The flash-compile chokes on this.

I've beat my head against many wall dealing with these flash-compile
errors, and 90% of the time it has to do with parameter passing.

Regards,

Dale





Reply With Quote
  #8  
Old   
Mark Brown
 
Posts: n/a

Default Re: Flash compile programs - 02-16-2007 , 01:23 AM



How can the compiler know what's valid to pass and what's not?

The only problem with passing a parameter that's also common is garbage
collect tries to give up the space used by the subroutine, so when it gives
up the passed parameter, it also throws away your common variable and puts a
hole in the descriptor table.

But the compiler is totally issolated from data issues and could care less.

For example, the following compiles just fine in flash or standard basic,
and barfs big time (if I tried to run it):

common a,b,c
call testit(a,b,c)
stop


Mark


"Dale" <dale_benedict (AT) flightcraft (DOT) ca> wrote

Quote:
I've beat my head against many wall dealing with these flash-compile
errors, and 90% of the time it has to do with parameter passing.

Regards,

Dale





Reply With Quote
  #9  
Old   
Dale
 
Posts: n/a

Default Re: Flash compile programs - 02-16-2007 , 10:11 AM



Mark,

The compile error that Jeff is getting is caused by the first two
lines of the subroutine.

eg.

001 subroutine mysub( a, b, c
002 d,e,f)

The regular p-code compile handles this find, but the flash-compile
chokes.

I haven't tried to first compile to p-code using the 'C' option to
suppress the eol markers and the flash-compile the object only. I
suspect this may work, but like most others I prefer to be able to
drop into debug and look at where the program is if there is an error.

By the way, this problem has been reported to RD.

Regards,

Dale


On Feb 15, 11:23 pm, "Mark Brown" <mbr... (AT) drexelmgt (DOT) com> wrote:
Quote:
How can the compiler know what's valid to pass and what's not?

The only problem with passing a parameter that's also common is garbage
collect tries to give up the space used by the subroutine, so when it gives
up the passed parameter, it also throws away your common variable and puts a
hole in the descriptor table.

But the compiler is totally issolated from data issues and could care less.

For example, the following compiles just fine in flash or standard basic,
and barfs big time (if I tried to run it):

common a,b,c
call testit(a,b,c)
stop

Mark

"Dale" <dale_bened... (AT) flightcraft (DOT) ca> wrote in message

news:1171571918.436619.103240 (AT) k78g2000cwa (DOT) googlegroups.com...





I've beat my head against many wall dealing with these flash-compile
errors, and 90% of the time it has to do with parameter passing.

Regards,

Dale- Hide quoted text -

- Show quoted text -



Reply With Quote
  #10  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Flash compile programs - 02-16-2007 , 10:45 AM



The actual problem was more like this:

112 *
113 CALL PROGRAM.NAME (VAR1, VAR2, VAR3,
114 VAR4, VAR5)
115 *

It compiled with the p-compiler, but choked as Dale said it would with the
flash compiler.

112 *
113 CALL PROGRAM.NAME (VAR1, VAR2, VAR3,
VAR4, VAR5)
114 *

This code compiles both ways.

BTW, the first code snip was done accidentally when pasting code from
another program. The code wrapped to a second line. It would have been nice
if the flash compiler could have reported the line number with the problem.
It would have save me a lot of debugging.

Thanks again for your input Dale and Mark.

"Dale" <dale_benedict (AT) flightcraft (DOT) ca> wrote

Quote:
Mark,

The compile error that Jeff is getting is caused by the first two
lines of the subroutine.

eg.

001 subroutine mysub( a, b, c
002 d,e,f)

The regular p-code compile handles this find, but the flash-compile
chokes.

I haven't tried to first compile to p-code using the 'C' option to
suppress the eol markers and the flash-compile the object only. I
suspect this may work, but like most others I prefer to be able to
drop into debug and look at where the program is if there is an error.

By the way, this problem has been reported to RD.

Regards,

Dale


On Feb 15, 11:23 pm, "Mark Brown" <mbr... (AT) drexelmgt (DOT) com> wrote:
How can the compiler know what's valid to pass and what's not?

The only problem with passing a parameter that's also common is garbage
collect tries to give up the space used by the subroutine, so when it
gives
up the passed parameter, it also throws away your common variable and
puts a
hole in the descriptor table.

But the compiler is totally issolated from data issues and could care
less.

For example, the following compiles just fine in flash or standard basic,
and barfs big time (if I tried to run it):

common a,b,c
call testit(a,b,c)
stop

Mark

"Dale" <dale_bened... (AT) flightcraft (DOT) ca> wrote in message

news:1171571918.436619.103240 (AT) k78g2000cwa (DOT) googlegroups.com...





I've beat my head against many wall dealing with these flash-compile
errors, and 90% of the time it has to do with parameter passing.

Regards,

Dale- Hide quoted text -

- Show quoted text -





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.