realbasic-plugins
[Top] [All Lists]

Re: REALstring problem

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: REALstring problem
From: Alexander Cohen <alex at toomuchspace dot com>
Date: Tue, 20 Jul 2004 10:57:01 -0400
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
List-help: <mailto:realbasic-plugins-request@lists.realsoftware.com?subject=help>
List-id: REALbasic Plugins <realbasic-plugins.lists.realsoftware.com>
List-post: <mailto:realbasic-plugins@lists.realsoftware.com>
References: <882288CA-DA54-11D8-AA3B-000A95B947DC at toomuchspace dot com> <a05300b1abd22d6d3a59f at [10 dot 10 dot 13 dot 3]>
I found my bug. In another routine, i was actually accessing the direct memory of the string and changing all ascii 32 to ascii 0. :)

thanks!

Alex

On Jul 20, 2004, at 10:05 AM, Joseph J. Strout wrote:

I'm not sure how this relates to the effect you're seeing, but I do see two errors in your function. First, you lock the string but never unlock it. (Easiest fix is to not lock the string; that's fine because you're not keeping a reference to it.) Second, you say the second parameter to REALDebugMsg is an int, presumable the length of the string, but you're passing in s[i] where I would expect you to pass a 2.

Best,
- Joe


--
35 years ago today, humanity first visited another world.
Happy Apollo Day!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>