Getting an Error I've Never Seen Before (; error: bad argument value: non-negative: -1)

Getting an Error I've Never Seen Before (; error: bad argument value: non-negative: -1)

mgorecki
Collaborator Collaborator
797 Views
3 Replies
Message 1 of 4

Getting an Error I've Never Seen Before (; error: bad argument value: non-negative: -1)

mgorecki
Collaborator
Collaborator

Ok, my program has been working just fine.  I added some "improvements" including graphics to the DCL files (there are 4 dcl files).  When I test I have a line like this:

(setq dcl_id (load_dialog "C:\\My Programs\\My NewProgram\\MyNewProgramDialog1.dcl")) ;use when testing

The next line is commented until I want to "Make an Application", make it a .VLX and release it.
;(setq dcl_id (load_dialog "MyNewProgramDialog1.dcl")) ;use when creating a VLX

 

I don't know if this has anything to do with the error, but when I try to make the .VLX, I get this error:

; error: bad argument value: non-negative: -1

 

Can anyone tell me what to look for to fix this?

0 Likes
Accepted solutions (1)
798 Views
3 Replies
Replies (3)
Message 2 of 4

mgorecki
Collaborator
Collaborator

Ok, I've narrowed it down to one of the DCL files.  but I can't figure out why.  When I try to create the .VLX and I pick just that one DCL file, it crashes immediately.

Message 3 of 4

mgorecki
Collaborator
Collaborator
Accepted solution

Ok, this sounds stupid, but I changed the name of the offending .DCL (shortened it) and now it seems to work again.  (Heavy sigh)

0 Likes
Message 4 of 4

mgorecki
Collaborator
Collaborator

Just something to note, avoid filenames with more than 24 characters.

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compilation-error-error-bad-argument...

0 Likes