Author Topic: error: null interface pointer ..  (Read 11066 times)

0 Members and 1 Guest are viewing this topic.

Sdoman

  • Guest
Re: error: null interface pointer ..
« Reply #15 on: November 02, 2005, 11:00:42 PM »
This exact situation is one of the reasons why I attempt to use unique names for any global variables I use.
All it takes is for code in a VLX or FAS that the user has no control over to use code as demonstrated with the same variable names as you and the whole lot falls down.


Agreed.  That's why I try to use unique names.  You never now when some (bozo) user might run some poorly written code that he/she downloaded from some forum some where. :)

LE

  • Guest
Re: error: null interface pointer ..
« Reply #16 on: November 02, 2005, 11:02:34 PM »
How about using a protected namespace VLX.... there we don't have any problema.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: error: null interface pointer ..
« Reply #17 on: November 02, 2005, 11:03:45 PM »
There is only few cases when a release is needed on visual lisp code.

Agreed Luis. When referencing objects other than from the AutoCAD Object Model primarily.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

MP

  • Seagull
  • Posts: 17662
  • Have thousands of dwgs to process? Contact me.
Re: error: null interface pointer ..
« Reply #18 on: November 02, 2005, 11:04:06 PM »
There is only few cases when a release is needed on visual lisp code.

Yep, like when you use vla-GetInterfaceObject, vlax-get-object, vlax-create-object ...

(ot: good idea to obscure your team support control).

<nodding.gif>
Engineering Technologist CAD Specialist Programmer Analyst
Design Drafting Document Control Automation.
cadanalyst@fastmail.com https://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: error: null interface pointer ..
« Reply #19 on: November 02, 2005, 11:04:45 PM »
How about using a protected namespace VLX.... there we don't have any problema.

Yep, just need to make sure the correct Document is referenced :)



Quote
(ot: good idea to obscure your team support control).
Yes, I noticed that too

Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

MP

  • Seagull
  • Posts: 17662
  • Have thousands of dwgs to process? Contact me.
Re: error: null interface pointer ..
« Reply #20 on: November 02, 2005, 11:05:13 PM »
Cool timing.

 :kewl:
Engineering Technologist CAD Specialist Programmer Analyst
Design Drafting Document Control Automation.
cadanalyst@fastmail.com https://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

Sdoman

  • Guest
Re: error: null interface pointer ..
« Reply #21 on: November 02, 2005, 11:07:56 PM »
How about using a protected namespace VLX.... there we don't have any problema.

I never learned how to do the protected namespace thing.  But it's time I learned.  What's the best way to get started?  I read the help files and they just made my eyes glaze over.

LE

  • Guest
Re: error: null interface pointer ..
« Reply #22 on: November 02, 2005, 11:13:16 PM »

(ot: good idea to obscure your team support control).

<nodding.gif>

Did not want it to show my bad manners....  :kewl:

LE

  • Guest
Re: error: null interface pointer ..
« Reply #23 on: November 02, 2005, 11:15:08 PM »
I never learned how to do the protected namespace thing. But it's time I learned. What's the best way to get started? I read the help files and they just made my eyes glaze over.

If you need help on that... let me know Steve.

I got the impression that ALL the help stuff from adesk was very clear......   :evil: [ahaaaaa]

Sdoman

  • Guest
Re: error: null interface pointer ..
« Reply #24 on: November 02, 2005, 11:19:07 PM »

If you need help on that... let me know Steve.

I got the impression that ALL the help stuff from adesk was very clear......   :evil: [ahaaaaa]


HELP!
 

LE

  • Guest
Re: error: null interface pointer ..
« Reply #25 on: November 02, 2005, 11:24:24 PM »
Don't know if can be good idea to post code about that here... or it will be better to send you a code sample via PM... or.....

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: error: null interface pointer ..
« Reply #26 on: November 02, 2005, 11:26:51 PM »
Perhaps use a new topic in   Show your stuff Luis.
That way access is restricted to logged in members.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

CAB

  • Global Moderator
  • Seagull
  • Posts: 10388
Re: error: null interface pointer ..
« Reply #27 on: November 02, 2005, 11:28:16 PM »
As far as release is concerned, is it only when you create an object or also when you do this?
Code: [Select]
(setq obj (vlax-ename->vla-object ename))that you need to release the object.

I gather that this code need no release?
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Sdoman

  • Guest
Re: error: null interface pointer ..
« Reply #28 on: November 02, 2005, 11:28:27 PM »
Luis,

Thanks for the help.  Maybe we should start a new topic.  I'm sure others would be interested in knowing how to make protected name space files.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: error: null interface pointer ..
« Reply #29 on: November 02, 2005, 11:28:54 PM »
BTW. Thanks for the input guys. This turned into a really interesting thread.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--