RWFromMem bug + fix

View: New views
2 Messages — Rating Filter:   Alert me  

RWFromMem bug + fix

by Paul V :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found a problem with SDL_RWFromMem in SVN, so I took the liberty to fix it.

On my platform (.net2.0 WinXP) SDL_RWFromMem was failing taking a
byte[] as mem. Updated to an IntPtr, it works. I also wrapped the
IntPtr function with a byte[] function, to prevent any existing code
from breaking and make it easier on the users.

Attached is my diff. It would be appreciated if it was tested on mono
and integrated with SVN.


Thanks,
Paul


_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list

RWFromMemFix.diff (1K) Download Attachment

Re: RWFromMem bug + fix

by David_Hudson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the patch! I have applied it to SVN. Note that this email list
is not used very much anymore. You should use the http://taoframework.com
forums instead.

Thanks
Dave
                                                                           
  David Hudson | The Capital Group Companies | Location: BRO | Extension:  
                                   51887                                    
             Outside: 714-672-1887 | E-mail: dyyh@...              
      [ Mailing: 135 S State College Blvd.  Brea, CA 92821-5704 USA ]      
                                                                           




tao-list-bounces@... wrote on 09/13/2006 06:16:46 AM:

> I found a problem with SDL_RWFromMem in SVN, so I took the liberty to fix
it.

>
> On my platform (.net2.0 WinXP) SDL_RWFromMem was failing taking a
> byte[] as mem. Updated to an IntPtr, it works. I also wrapped the
> IntPtr function with a byte[] function, to prevent any existing code
> from breaking and make it easier on the users.
>
> Attached is my diff. It would be appreciated if it was tested on mono
> and integrated with SVN.
>
>
> Thanks,
> Paul
> [attachment "RWFromMemFix.diff" deleted by David
> Hudson/INV/CG/CAPITAL] _______________________________________________
> Tao-list mailing list
> Tao-list@...
> http://galactus.ximian.com/mailman/listinfo/tao-list

_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list