Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > DEBUG ASSERT bug Owner: cpow New post
Page 1 of 1 Sort:  
DEBUG ASSERT bug Posted: 2014-09-15 04:04 Reply | Quote
cpow

Avatar

Member for: 3638 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);
[/quote]

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);
[/quote]

Posted: 2014-09-15 23:57  (Last Edited: 2014-09-15 23:57) Reply | Quote
jsr
Administrator

Avatar

Member for: 5925 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

Avatar

Member for: 3638 days
Location: Minneapolis, MN, USA
Status: Offline

#61946
No problem. No need to apologize!

Page 1 of 1 Sort: