Author Topic: The DUH! factor ....  (Read 4118 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
The DUH! factor ....
« on: December 21, 2010, 10:15:41 PM »

Netloading a DLL and wondering why the most recent changes are not available ...

then realize your build was Debug but you're loading the last Release Build  :ugly:

DUH !!
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: The DUH! factor ....
« Reply #1 on: December 22, 2010, 08:22:32 AM »
HEY!!!!!!!!!!!!! I resemble that!  thanks for the laugh Kerry
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: The DUH! factor ....
« Reply #2 on: December 22, 2010, 10:12:58 AM »


Ooops, I'm in the poop again  :wink:
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Glenn R

  • Guest
Re: The DUH! factor ....
« Reply #3 on: December 22, 2010, 02:40:54 PM »
Then posting it on the forum...priceless!  :evil:

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: The DUH! factor ....
« Reply #4 on: December 22, 2010, 02:42:53 PM »
2 out of 5 of my favorite critics, where are the rest of the gents?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

mohnston

  • Bull Frog
  • Posts: 305
  • CAD Programmer
Re: The DUH! factor ....
« Reply #5 on: December 22, 2010, 04:59:54 PM »
Forgetting to set CopyLocal to True (or False) for the managed dlls.
It's amazing what you can do when you don't know what you can't do.
CAD Programming Solutions

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: The DUH! factor ....
« Reply #6 on: December 24, 2010, 02:29:07 PM »
Thanks for the heads up Mark, I will keep an eye out for that one.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: The DUH! factor ....
« Reply #7 on: December 25, 2010, 02:53:47 AM »


Just a reminder ....

If you try to run VLIDE (Visual Lisp Editor ) when there is a debug net DLL loaded you'll probably get a LoaderLock Error.

This error can be ignored by setting the Debug Exception Configuration in VisualStudio

Refer attachments :
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: The DUH! factor ....
« Reply #8 on: December 29, 2010, 03:16:51 AM »
Take a short walk outside ( or make another coffee) and change your hat   before changing languages ...
otherwise you may find yourself doing this in Vlisp

(while (   (strlen partline) != 0  )
< .. >

or this in C#

(if  (m_value == string.Empty) {
< .. >
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Jeff H

  • Needs a day job
  • Posts: 6144
Re: The DUH! factor ....
« Reply #9 on: December 29, 2010, 06:12:42 AM »
I do the same thing switching between Revit and Autocad
Once I finally quit doing AutoCAD commands in Revit, I will start doing Revit commands in AutoCAD when I switch back.

LE3

  • Guest
Re: The DUH! factor ....
« Reply #10 on: February 04, 2011, 02:53:01 PM »
Spend a whole day and a half trying to find a bug (MyObject was not selectable after loading the dbx file), even went recreate the project from scratch, and nothing, until a few minutes ago it was a simple bad return on one overrided function MyObject::subClose().... Miserable Acad::ErrorStatus....  Duh!!! :evil:  :-P

Jeff H

  • Needs a day job
  • Posts: 6144
Re: The DUH! factor ....
« Reply #11 on: February 06, 2011, 02:30:59 AM »
Looking at the AcDbMgd.dll and AcMgd.dll from the ObjectARX 2011 folder in Reflector and wondering why all methods are empty

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: The DUH! factor ....
« Reply #12 on: February 06, 2011, 03:25:59 AM »

OK, I'll play  ..... why are they empty for you ??
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Jeff H

  • Needs a day job
  • Posts: 6144
Re: The DUH! factor ....
« Reply #13 on: February 06, 2011, 04:20:56 AM »

OK, I'll play  ..... why are they empty for you ??

I thought just from looking at it from reflector that the AcDbMgd.dll and AcMgd.dll in the ObjectArx SDK folder was just the names of the classes and methods with all the logic stripped out.

Had to open dll's where acad.exe is located to try to make out any logic.

First pic of Line3d from installtion and second from Sdk


mohnston

  • Bull Frog
  • Posts: 305
  • CAD Programmer
Re: The DUH! factor ....
« Reply #14 on: March 02, 2011, 12:18:32 PM »
When I add and existing class to a project I just noticed the "Add as Link" option.
I have classes that I use in different projects (SelectionTools.cs, BlockTools.cs etc.).
If I add them as links then any features I add (or more likely bugs I fix) are there for all projects with that class.
Better than having various versions of the file floating around.

I read where C++ projects do this by default. Seems like a good idea.
It's amazing what you can do when you don't know what you can't do.
CAD Programming Solutions