crash in mac ppc dwgdirect (tiger only)
crash in mac ppc dwgdirect (tiger only)
folks,
i am seeing a crash in the mac ppc version of the dwgdirect lib on tiger. this crash does not happen on any of our other configs (ppc/leopard, intel/tiger or leopard).
the crash occurs when reading a file using oddbhostappservices::readfile(), in odstring::formatv(), specifically in getmaxformatstrlen() when it calls wcslen(). odstring::formatv() is called from our code, when it is trying to format an error message "code page conversion is impossible because conversion table for %ls is missing." couple of things i don't understand:
1. why are codepages being used on the mac at all?
2. in the original readfile() call, i set allowcpconvertion to false, why the code page error?
3. is this a known bug in the dwgdirect libs, or am i causing this problem?
offending file is attached.
thanks!!
- dave.
attached files
hello dave,
1. dwg and dxf files before version r21 (acad2007) was non unicode and it has codepage. dwgdirect is unicode start version 2.0. so all texts are converted in unicode.
2. parameter allowcpconvertion is obsolete (see item 1). possible it will be removed in next version.
3. it is strange appearance this error message for your attached file. its code page is ansi 1252. most table conversion (except asian) is included into dwgdirect. what version dwgdirect do you use?
best regards,
sergey z.
re: crash in mac ppc dwgdriect.
hi sergey,
it looks like we are using the version from may of 2007. i see that this is about a year old - there is a newer version available as of june 2008. i can try installing the newer version and see if that makes the problem go away. is there a piece of api in dwgdirect i can use to fetch the exact version number?
thanks for the explanation!
- dave.
dwgdirect version #
hi sergey,
we are using version 2.4.2 of dwgdirect (from ddversion.h).
thanks -
dave
the latest dwgdirect version is 2.06.03, posted 9/22/2008
quote:
originally posted by
dvicknair@google.com
is there a piece of api in dwgdirect i can use to fetch the exact version number?
dave
hello dave,
oddbhostappservices class has next methods:
virtual const odstring releasemajorminorstring();
virtual int releasemajorversion();
virtual int releaseminorversion();
virtual const odstring versionstring();
best regards,
sergey z.