Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: [Not a Bug] Unhandled Memory Exception Error on new cTV_3DVECTOR  (Read 1142 times)
sybixsus
Customers
Community Member
*****
Posts: 1339


WWW
« on: January 19, 2010, 03:40:38 PM »

I'm getting random Unhandled Memory Exceptions which are all thrown by creating a new cTV_3DVECTOR. Initially, I suspected that it was something happening in another thread or in a destructor causing the debugger to have problems, but this does not appear to be the case. It happens at any one of several very different parts of the program, and it always falls on a new cTV_3DVECTOR call. I can't think of anything which would explain that, and there's nothing in the debug log.

Any ideas what could cause this behaviour?

There's not much debugging I can do from my side when it crashes creating a new instance of cTV_3DVECTOR.
« Last Edit: January 20, 2010, 03:45:53 PM by sybixsus » Logged
jviper
Community Member
*
Posts: 2127

Discipline in training


« Reply #1 on: January 19, 2010, 04:15:57 PM »

Sounds like a dev liscense issue.
Logged

JAbstract.....Don't just imagine, make it happen!
sybixsus
Customers
Community Member
*****
Posts: 1339


WWW
« Reply #2 on: January 19, 2010, 07:08:46 PM »

Nope. I've already wiped the developer and application licenses and I'm running with the watermark.

Furthermore, the error is random and rare. It occurs in code which runs perfectly 100's of times per frame.
Logged
Hypnotron
Customers
Community Member
*****
Posts: 1043


« Reply #3 on: January 19, 2010, 08:01:08 PM »


Maybe try running a release build directly from the exe if you haven't already and see if it crashes and if so, then debug the exception and see whether it's near a line that is actually closer to the truth.  Obviously this error has little to do with instantiating a vector.  Somehow you need to find a way to narrow down the problem.

Logged
sybixsus
Customers
Community Member
*****
Posts: 1339


WWW
« Reply #4 on: January 19, 2010, 08:15:29 PM »

I've tried running a release build separate from the IDE, and it does crash. I don't know of any way to debug it in that context though.

I actually think it is related to creating a new cTV_3DVECTOR actually. I've debugged many random bugs over the years and they simply never occur on the same precise operation over several completely different parts of the program. The odds of that happening are just enormous.

I think either the programming language or TV3D are throwing an exception in the constructor. It's a memory exception, which would make most sense for a constructor. So I'm just curious what there might be about the constructor for cTV_3DVECTOR which might throw such an exception. I can only investigate what I have, and what I have does not point any more or any less to the programming language or TV3D, so I'm investigating both. If Sylvain can give me some idea of what might throw a memory exception in the cTV_3DVECTOR constructor, maybe it'll give me somewhere to start looking.
Logged
sybixsus
Customers
Community Member
*****
Posts: 1339


WWW
« Reply #5 on: January 20, 2010, 03:45:39 PM »

I've spent hours removing a lot of the dynamic object creation and destruction to see if I can narrow things down any further. I've now for the first time managed to make it crash on the constructor of a non-TV3D object. Thus it looks as though this problem is probably not related to TV3D.
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4944


WWW
« Reply #6 on: January 21, 2010, 06:47:42 AM »

Well the cTV_3DVECTOR constructor doesn't do anything really. Just setting the values to 0,0,0 by default if I remember well.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks