[futurebasic] Re: [FB] FB4.4 AE problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Steve <mactech@...>
Date: Fri, 10 Jun 2011 14:08:41 -0400
The workaround is fine.  I just am confused as to what was occurring but I think I have a grasp on it now.

I added this SendAppleEvent to my point-of-sale to support the integration of the credit card processing program that runs under FB5.

It worked like a charm, until I sent the 63rd AppleEvent to the other program !

On Jun 10, 2011, at 2:02 PM, Brian S wrote:

> This is a good workaround and thought by Bernie and avoids the issue.
> The name string is defined once outside the loop. In the original post the constant "TESTAE" was created 100 times ( or until the blow out ).
> Given FB4 has been unsupported for a while, I would go with the workaround Steve.
> 
> Brian S.
> 
> On Jun 10, 2011, at 10:48 AM, Steve wrote:
> 
>> THAT WORKS!!!
>> 
>> Please explain what is happening to the name STRING$!!!
>> 
>> thank you thank you a 1000 times.  
>> 
>> On Jun 10, 2011, at 1:43 PM, Bernie wrote:
>> 
>>> 
>>> Steve wrote:
>>> 
>>>> I have an old FB 4 project that uses SendAppleEvent.  It cannot be updated to FB5 and it needs to support AE sending and receiving.
>>>> 
>>>> this simple example below will crash after iterating 62 times in FB4 and works without issues in FB5
>>>> 
>>>> dim as str255 s
>>>> dim as long loop
>>>> 
>>>> for loop = 1 to 100
>>>> s = "test" + str$ ( loop )
>>>> SendAppleEvent _"Mccc", _"TEXT", @s + 1, len(s ), "TESTAE"
>>>> next
>>>> 
>>> 
>>> I know sod all about Apple Events but give this a try:
>>> 
>>> dim as str255 s, name
>>> dim as long loop
>>> 
>>> name = "TESTAE"
>>> for loop = 1 to 100
>>> s = "test" + str$( loop )
>>> SendAppleEvent _"Mccc", _"TEXT", @s + 1, len(s), name
>>> next
>>> 
>>> Bernie
>>> 
>>> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>