I created a plugin to import models and it works just fine. But I've run into a small problem. After successfully importing a model, I can't create new items from the "item creation" panel. I'm getting "Access violation at address 004F27BB in module 'deled.exe'. Read of address 00000008."

If no uv's are assigned, DeleD can't render things properly which can cause an access voilation. I can imagine that the Open command makes DeleD create its own uv list (all set to 0,0) while plugins really need to provide uv's on their own, but I'm not sure of that. You give it a try.

Btw, what happens if you go into wireframe mode, or solid mode?_________________Check out Figuro, our online 3D app! More powerful 3D tools for free.

Hmm... it's weird. I tried loading that DXS just now and it loads perfectly. So the problem is sending that same data through the plugin interface.

I'm rusty where plugin code is concerned (it's been a while since I looked at it ). Are you filling in everything that's needed? Are you actually sending uv's?

Also, first go to wireframe, then load the dxs and see what happens?

If you're in texturemode first, then load and then switch to wireframe, and there actually are no uv's, DeleD will produce that error (or at least, that's what I'm thinking right now)._________________Check out Figuro, our online 3D app! More powerful 3D tools for free.

No, the problem persists... I did exactly what you said, and yes, I'm sending uvs now. Not completely sure about that "everything that's needed" though, but I tried to mimic the layout of DeleD's dxs files.

Did you try loading with DeleDImportPlugin? After that creating a cube for example causes that error.

I too think that the dxs is missing something relevant, I just need to figure out what...

This DXS replaces the default System material which is the selected material by default, too. Replacing it will cause DeleD to not have a selected material anymore. Adding a new primitive while not having a material selected will cause the AV.

Quick solution: run the importer, then select a material, then add new primitives etc.

Robust solution: DeleD should make sure a material is selected no matter what. This is something to take care of within DeleD itself, of course._________________Check out Figuro, our online 3D app! More powerful 3D tools for free.