Anyone know why this works fine on a PC but causes directorto crash on the Macintosh side?

Kristafer Vale kristafer at comcast.net
Tue Apr 13 17:24:11 CDT 2004


Hi Ruslan,

After following your advice I have been able to capture the error number
just before it crashes Director in OSX. The error codes is 363 but I can't
find a reference to it in any of the Valentina PDF's. It happens after the
line:

Set mySlidesCursor = new(xtra "VCursor", getRef(gMyLessonDB), query, 2, 3,
2)

I still can't figure out why this only happens in the MacOSX version of my
application the very same code works fine on the PC.

Any insight into what error code 363 is? Or any other thing that might help
me out?

Thx in advance.

Kristafer S. Vale
VK-iNTERACTiVE
6011 Medici CT #301
Sarasota, FL 34243
407-924-3025


-----Original Message-----
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net] On Behalf Of Ruslan Zasukhin
Sent: Tuesday, April 13, 2004 4:18 PM
To: valentina at lists.macserve.net
Subject: Re: Anyone know why this works fine on a PC but causes directorto
crash on the Macintosh side?

On 4/13/04 11:06 PM, "Kristafer Vale" <kristafer at comcast.net> wrote:

Hi Kristafer,

> Here's a function that utilizes Valentina in Director MX 2004 that on the
PC
> this works no problem but on the mac it crashes not only the script but
> Director itself. Debbuging I've been able to narrow it down to right when
> the RecCount is about to be set, but it crashes before I can see what is
> going on. Anyone see anything with this function that would be harmful to
> macintoshes?
> 
> on reOrderTheSlides
> global gMyLessonDB, gCurrentSlideShowID
> set query = "select SlideOrder from slides WHERE slideShowID like
> '\A"&gCurrentSlideShowID&"\Z' order by SlideOrder"
> set mySlidesCursor = new(xtra "VCursor", getRef(gMyLessonDB), query,
2,3,2)

> set RecCount = GetRecordCount(mySlidesCursor)

I think that if you set break point and stop just before GetRecordCount()
Then you will see that mySlidesCursor contains not normal value.
E.g. Some big negative integer value.

This means that cursor was not created.
You should always check Valentina Error after cursor creation.

I think you will find some error code that Valentina have return you.


> set FieldCount = getFieldCount(mySlidesCursor)
> FirstRecord(mySlidesCursor)
> repeat with i = 1 to RecCount
>  newSlideOrder = i
>    if newSlideOrder <> 0 then
>     if newSlideOrder <= 9 then
>       newSlideOrder = "00"&string(integer(newSlideOrder))
>     else if newSlideOrder <=99 then
>       newSlideOrder = "0"&string(integer(newSlideOrder))
>     else
>       newSlideOrder = string(integer(newSlideOrder))
>     end if
>   else
>     newSlideOrder = "001"
>   end if
>   put "Formatted NewSlideOrder is:"&&newSlideOrder
>   UpdateRecord(mySlidesCursor, [#SlideOrder:newSlideOrder])
>   nextRecord(mySlidesCursor)
> end repeat
> mySlidesCursor = []
> end

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------

_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list