URL:
  <http://savannah.gnu.org/bugs/?32383>

                 Summary: NSClassFromString returns nil on MinGw if the
string class is in a shared library and hasn't yet been used
                 Project: GNUstep
            Submitted by: berwin
            Submitted on: Mon 07 Feb 2011 10:36:46 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This bug only manifests itself on a GNUstep MinGW windows installation.  I am
testing on a Windows 7 system, and I installed GNUstep MSYS System, GNUstep
Core, and GNUstep Devel from http://www.gnustep.org/experience/Windows.html.

Here's the problem:

NSClassFromString(@"RandomClass") returns nil if "RandomClass" resides in a
Dynamically Linked Library (DLL), AND "RandomClass" has not yet been used.  If
however I make a call like this:

Class foo = [RandomClass class];

right before I make my NSClassFromString(@"RandomClass") call then I no
longer notice the bug.  I have created a quick example code with a Makefile
that is attached, so just untar the code and try it out to verify this is not
working.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 07 Feb 2011 10:36:46 PM GMT  Name: nsclassfromstring.tar.gz  Size:
951B   By: berwin

<http://savannah.gnu.org/bugs/download.php?file_id=22619>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32383>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to