Author Topic: Unable to save .tmd when using Example plugin DLLs  (Read 5489 times)

0 Members and 1 Guest are viewing this topic.

howardzzh

  • WM Pro Beta Tester
  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
    • Terrain Synthesis
Unable to save .tmd when using Example plugin DLLs
« on: May 29, 2007, 11:03:25 PM »
I was modifying the PDK examples for some plugins I am writing when I first noticed that the plugin DLLs would cause an exception if we try to save the device in a .tmd file. I am currently developing on visual studio 2005, so it is very likely to be a compatibility issue. Don't know if it helps or not, I do notice that the exceptions always occur near the vfptr (virtual function pointer). I wonder if anyone has encountered similar issues before? I'd really appreciate any help. Thanks!
Howard

takashi

  • WM Pro Beta Tester
  • Community Member
  • **
  • Posts: 6
    • View Profile
    • http://www.natural-design.net
Re: Unable to save .tmd when using Example plugin DLLs
« Reply #1 on: May 30, 2007, 02:32:33 AM »
After some tries, it seems that a saved ".tmd" file with plugin devices inside can not be loaded.
I think this issue is linked with the "save" one.
However, I never noted an exception during the save process.

World Machine says :
Quote
The world file cannot be fully loaded (perhaps due to not having one or more used plugins used to create it). Some devices may be missing.

I have made my tries with the PDK examples and I have compiled the example with Visual Studio 2005 Express Edition.
As soon as I can, I would carry out some tests.

EDIT :
Same problem as howardzzh with a personnal plugin compiled with VS2005 Express.
« Last Edit: May 30, 2007, 02:55:54 AM by takashi »
Takashi

Remnant

  • Author
  • World Machine Guru
  • *****
  • Posts: 2311
    • View Profile
    • http://www.world-machine.com/
Re: Unable to save .tmd when using Example plugin DLLs
« Reply #2 on: May 30, 2007, 01:21:35 PM »
My hunch is that it has something to do with a change in the C++ stream libraries between MSVC7(2002) and 2005 -- I know microsoft made alot of changes to the standard libraries, and that would account for it happening on device load/save.

Looking into it.
-- Stephen Schmitt
- Creator of World Machine