DWF

Reply
Member
jdmanjon
Posts: 4
Registered: ‎09-27-2004
Message 1 of 2 (401 Views)

Where is the place to report DWF Toolkit small source code bugs?

401 Views, 1 Replies
08-31-2010 03:40 AM

In case of here, I have found this deadlock defect at DWFToolkit-7.6. Example::

 

 

using namespace DWFCore;

int main()
{
    DWFString testString( L"\\\\FoundMe\\BlockHere" );
    DWFString toFindString( L"\\\\FoundMe" );

    //Looking for FindLast equivalent
    off_t index;  
    index = DWFString::Find( testString, toFindString, 0, true );

    return 0;
}

 

The problem comes from DWFString::Find and the reverse lookup based on last parameter.

 

To fix it only change the line 2846/47 of DWFToolkit-7.6\develop\global\src\dwfcore\ansi\String.cpp

From:

    for (;iFound != -1;
          iFound = DWFString::Find(zString, zFind[0], iFound+1, bReverse))

 

To:

    for (;iFound != -1;
        iFound = Find(zString, zFind[0], ( bReverse ? (off_t)nStringCharLen - iFound : iFound+1 ), bReverse))

 

 

 

 

 

 

Regards

Juande

 

Employee
susan.scott
Posts: 43
Registered: ‎11-14-2007
Message 2 of 2 (347 Views)

Re: Where is the place to report DWF Toolkit small source code bugs?

09-08-2010 05:41 AM in reply to: jdmanjon

Thank you for letting us know about this defect.  Reporting it as you did here in the Discussion Group is the perfect place to report it because the DWF team monitors this Discussion Group.  That, plus the fact that you also published a solution to the defect, helps us fix it in the code, plus it helps other users correct it in their own copy.

 

Thank You!

-Sue

Release Program Manager
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.