bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #32383] NSClassFromString returns nil on MinGw if the string class


From: Brock Erwin
Subject: [bug #32383] NSClassFromString returns nil on MinGw if the string class is in a shared library and hasn't yet been used
Date: Mon, 07 Feb 2011 22:36:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]