aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1486

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1486  Vizibasic and generate source - then use piaf

le 20/11/2006 @ 00:19
par John-R

Anonyme



I like the new release of Vizibasic.

In Vizibasic I can generate source and compile, and use my prc and all operate fine.

My issue is when I use Scredit and or Piaf, strange things happen.

1- In Scredit, if i edit the file at the top of the source code then some of the source is lost later on in the code. I then compile and get syntax error.

If i correct the missing code, i get to compiled state BUT Then strange errors during execution.

2- in Piaf, for some reason I can not see all the code, the scroll bar shows I have text beyond the screen, but I can not see the text.

I am using a Tungsten E2, with a sd card, but all files mentioned are on the PDA.

Any Thoughts?

Thanks Much!
John-R
Ecrire à John-R   Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 20/11/2006 @ 00:50
par aldweb

Anonyme

visiteur
Hello John-R,

It might be an issue in the way SrcEdit and Piaf read the DOC file generated by ViziBasic.

My guess is that your DOC file is more than 4KB big. Am I right?

A DOC file is nothing more than a header record and then a series of records made of up to 4KB blocks of text (underlined text is important!).

I could already check in the past that Piaf requires full 4KB blocks of text to work properly (the last one being of course <4KB), when it should be able to cope with blocks of up to 4KB.
I never found the time to patch Piaf to have it behave correctly.
Whenever this happened to me, I used another 3rd party DOC writer that would read the DOC file and which was nice enough to somehow "optimize" it, in the background, to records of exactly 4KB. Was it CardTXT or SiED? I just don't remember... Maybe worth trying with both of them...

I don't know how this is in SrcEdit, I will ask its developer.

So, maybe do the following (sorry, my device is already at sleep!) to check if my hypothesis is the right one:
1. have ViziBasic generate the source
2. check with Bird that the records >#0 in the DOC file are <4KB (that is less than 4096 bytes)
3. open the source in SiED (or CardTXT), add and then remove one char anywhere to get the file updated
4. force a save in SiED (or CardTXT)
5. check with Bird that the records are now =4KB
6. check if you face the same issues once going into Piaf and SrcEdit with the "optimized" source

Cheers,


@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 20/11/2006 @ 03:19
par John-R

Anonyme

visiteur
My guess is that your DOC file is more than 4KB big. Am I right?

Yes its 5653

I have cardTXT , but for some reason it only reads from my card, and not machine memory

(I can not remember if cardtxt is freee or shareware)

vizibasic saves as myfile.ibas.pdb
with ext of TEXt creator REAd

And on my card cardtxt only sees .txt extensions

Thanks For the help!

John-R

  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 20/11/2006 @ 03:38
par John-R

Anonyme

visiteur
Append to last comment

in rsrcedit
rec 0 is 16
rec 1 is 4042
rec 3 is 1491
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 20/11/2006 @ 03:56
par John-R

Anonyme

visiteur
Ok, one work around

While in scredit, i ran the compiler.
it has a syntax error

in rsrcedit i find the same spot and i find a char . (i do not think it is a period)
I change the . tp a 1 then in scredit, i remove the 1 (whic reveals 4 or so hidden chars)

I then compile from scredit and all ssems fine.

Does this help find the problem?

John-R
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 20/11/2006 @ 03:59
par John-R

Anonyme

visiteur
now rsrcedit

reports

rec0 as 16
rec1 as 4096
rec2 as 1437

(sorry for the amends)
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6
--------
le 22/11/2006 @ 14:06
par aldweb

Anonyme

visiteur
Hello John-R,

Good job, this is exactly what I believed the issue was.

On my side, I did further checks and:
1. SiED, SrcEdit and Piaf don't deal well with DOC files with < 4KB blocks (this is why you got some strange characters at some point in your test with SrcEdit).
2. CardTXT is the tool to use (CardTXT it is freeware).

In the latest CardTXT version (0.70) which I use, there is an option to open files in the external card or in the internal memory.
You have to choose internal, then open the file, insert once character anywhere (so at the top, it' fine), remove it, save back. Then you will "automagically" get a [rec0/16, rec1/4096, rec2/1437] file from an original [rec0/16, rec1/4042, rec2/1491] file.

And that's all folks

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^