开发者

TTRequestLoader always raises "TTDASSERT failed: _cacheKey == request.cacheKey"

开发者 https://www.devze.com 2022-12-28 06:49 出处:网络
I run the TTCatalog application from the Three20 library and encountered this error when click on the \"Photo Thumbnails\" of the \"Three20 Catalog\":

I run the TTCatalog application from the Three20 library and encountered this error when click on the "Photo Thumbnails" of the "Three20 Catalog":

TTDASSERT failed: _cacheKey == request.cacheKey  

I look at the breakpoint and see that it is on line 119开发者_如何学编程 of TTRequestLoader.m of the method addRequest.

I know that it failed to do the assertion of the cacheKey, but why this error appears even on the sample application, does anyone encounter the same error? What is the workaround of this?

Thanks,

P/S: I downloaded the Three20 from the git directory just yesterday. So I assume this be the newest one.


You can safely comment out those assertions. The next push will remove the assertions entirely.

They were added with the intention of flagging a strange design decision with TTURLRequestLoader, but turned out that it's actually a fairly prevalent assertion in practice.

0

精彩评论

暂无评论...
验证码 换一张
取 消