Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrEdit
Plugin: IrrEditServices Deleted Before Destructor?

jwm
Registered User
Quote
2008-06-25 20:32:30

I am writing an irrEdit plugin, and have been encountering a crash when running a debug-build of my DLL, compiled with Visual Studio Express 2008.

In the exampleGamePlugin irrEditServices is dropped in the destructor, but I have found that if I do the same in my DLL a crash occurs whenever I close irrEdit.  My guess is that the irrEditServices is destructed before the destructor of the plugin is called.

Is this a bug in irrEdit, or should I not be attempting to drop() the services when my plugin is destructed?


niko
Moderator
Quote
2008-07-01 17:07:39

it will crash if you haven't grabbed that interface before. Don't drop it if you are not grabbing it.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact