Home
Screenshots
Downloads
Links
Forum
Wiki
Login:
Username:
Password:
Auto Login
Login >>
Register
Menu:
New post
Forum Index
Members
Members Online
Search
View Unanswered Posts
Register
Post:
Author:
FamiTracker
>
General
>
Bug Reports & Feature Requests
>
DEBUG ASSERT bug
Owner:
cpow
New post
Page 1 of 1
Sort:
Oldest
Newest
DEBUG ASSERT bug
Posted:
2014-09-15 04:04
Reply
|
Quote
cpow
Member for: 5047 days
Location: Minneapolis, MN, USA
Status: Offline
#61896
While running Qt FamiTracker 0.4.4 in DEBUG mode, the following ASSERT trips, and there appears to be no way for the ASSERT not to trip:
Quote:
DSound.cpp:
void CDSample::Allocate(unsigned int iSize, const char *pData)
{
ASSERT(pData != NULL);
The assert trips because the pData parameter defaults to NULL if nothing is passed in, and the call that trips the assert is this one:
Quote:
FamiTrackerDoc.cpp:
bool CFamiTrackerDoc::ReadBlock_DSamples(CDocumentFile *pDocFile)
{
...
pSample->Allocate(Size);
Posted:
2014-09-15 23:57
(Last Edited:
2014-09-15 23:57
)
Reply
|
Quote
jsr
Administrator
Member for: 7333 days
Location: Sweden
Status: Offline
#61919
It's safe to remove that assert, it's misplaced and I didn't discover that before releasing the sources. Sorry!
_______________________
Programmer and developer
Posted:
2014-09-17 15:14
Reply
|
Quote
cpow
Member for: 5047 days
Location: Minneapolis, MN, USA
Status: Offline
#61946
No problem. No need to apologize!
Page 1 of 1
Sort:
Oldest
Newest
Powered By: ©
Forum Senaculum
v0.6.5