Posts: 4
Registered: ‎09-27-2004
Message 1 of 2 (398 Views)

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

398 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


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



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










Posts: 43
Registered: ‎11-14-2007
Message 2 of 2 (344 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!


Release Program Manager

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community