Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #791: Particle System Memory Crash
Product:
TV3D SDK 6.5
Language:
Visual Basic.NET
Current State:
Waiting on User
Resolution:
Unconfirmed
Created On:
October 18th, 2007
Last Modified:
October 19th, 2007
Reported By:
Makubab
Hello, with the newest version of MTV3d65, the particle system crashes when used (via any functions, such as CreateEmitter, GetEmitterCount, and the like). Everything is declared properly, everything is like it was before I updated except now I get this error 90% of the time (not always):

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Comments:

Posted by SylvainTV on October 19th, 2007 at 11:58 PM
Please post a simple code that i can add in C# template to reproduce the problem. Thanks ;) So many things to do.
Posted by Makubab on October 20th, 2007 at 12:45 AM
This is what is needed to produce the effect...

1. Create a Module and a Class
2. Add this code to the module:

Module Module1
Public TVEngine As MTV3D65.TVEngine
Public TVScene As MTV3D65.TVScene
Public TVParticles As MTV3D65.TVParticleSystem

Public Sub Main()
TVEngine = New MTV3D65.TVEngine
TVScene = New MTV3D65.TVScene
TVParticles = New MTV3D65.TVParticleSystem
TVParticles = TVScene.CreateParticleSystem
End Sub
End Module




3. Add this to the class:

Public Class Engine
Inherits MTV3D65.TVEngine

Public Sub New()
MyBase.New()
Me.Init3DWindowed(Form1.Handle)
End Sub
End Class

Public Class Scene
Inherits MTV3D65.TVScene

Public Sub New()
MyBase.New()
End Sub
End Class

Public Class Particles
Inherits MTV3D65.TVParticleSystem

Public Sub New()
TVScene.CreateParticleSystem()
Me.CreateEmitter()
End Sub
End Class
Posted by Makubab on October 20th, 2007 at 1:15 AM
On a side note, I was not able to reproduce the error using only a form... that might help.