writing lines to the driver

-= JB =- sundown at pacifier.com
Sat Dec 6 14:32:15 EST 2008


I solved the problem and it was a minor change I made to my code that
caused it.

I was doing some testing with reading the port and how to determine the
end and then forgot I changed it.  This is based on Sarah's readPort and
I originally used until recEOL but changed it to EOF (end of file) to  
test &
my change caused the problems.

read from driver thePort until recEOL
     --read from driver thePort until EOF

-=>JB<=-



On Dec 6, 2008, at 11:15 AM, -= JB =- wrote:

> Something really strange is happening.
>
> The driver I was writing to mentioned below is the internal modem  
> on a Mac G4 AGP.
> You use the AT commands to control the modem.
>
> I used to be able to enter AT&V and then it would put the  
> configuration into a field.
> The configuration consists of a number of lines of text but not  
> extremely large.
>
> Now when I enter the AT&V command it puts about nine lines of text  
> into the field
> and then Rev crashes.  If I use this program on another machine I  
> have and enter
> the AT&V command it puts the configuration into the field like the  
> first Mac used
> to do.  But when I copy the text in the field it was put in Rev  
> crashes.
>
> This looks to me like some memory/buffer management problems with  
> Rev to me
> but I really don't know what it is.  Why did the first Mac used to  
> list the configuration
> without any problem and now only list part of it then crashes Rev?   
> I have not made
> any changes to my knowledge that would cause this.  And why can't  
> the other Mac
> copy a small amount of text after writing the AT&V command to the  
> driver?
>
> -=>JB<=-
>
>
>
> On Dec 5, 2008, at 11:29 AM, -= JB =- wrote:
>
>> When I open a driver port I am able to write to the driver and  
>> close the port without any problems.
>> I can open the driver port and write to the driver 9 times writing  
>> one line at a time no problems.
>> After I write the 10th line to the driver Rev crashes.
>> If I close the port after writing line 9 to the driver I can write  
>> to the driver 9 more times.
>>
>> The line can have a few chars or a large line of text and the  
>> crash still comes after writing to the
>> driver 9 times.
>>
>> How can I clear any buffer or whatever is doing the counting  
>> without closing the port and the
>> needing to reopen the port to keep writing lines to the driver?
>>
>> -=>JB<=-
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list