Darwinbots Forum

Code center => Bugs and fixes => Bug reports => Topic started by: Testlund on October 04, 2007, 01:53:20 PM

Title: I dared! OPEN
Post by: Testlund on October 04, 2007, 01:53:20 PM
...click on your new smiley button.

It caused a crash displaying 'Error. Invalid procedure call or argument. Saving sim as error.sim.'
Title: I dared! OPEN
Post by: EricL on October 04, 2007, 01:55:13 PM
Sigh.  Can you post the sim for me?  Thanks.
Title: I dared! OPEN
Post by: Testlund on October 04, 2007, 02:21:49 PM
Here:
Title: I dared! OPEN
Post by: shvarz on October 05, 2007, 11:37:51 AM
I am getting the same error, btw.
Title: I dared! OPEN
Post by: EricL on October 05, 2007, 12:13:00 PM
I'm on it.  It has to do with the totally F***ed up way the VB PaintPicture() method works.  I'm goign to have to switch over to calling Windows BitBlt() directly.  Stay tuned.  It's some work, but the end result shoudl be faster...  Hopefully you guys can at least catch a glimpse of this before it crashes (try it when zoomed in or on a small, fast runnign sim with a small number of bots on a small field...
Title: I dared! OPEN
Post by: Testlund on October 05, 2007, 02:27:47 PM
Ok, I followed your suggestion by zooming in first, and it works. It only crashes if clicking the button when zoomed out. But I don't like it turning into ants and vegetables though. Maybe later you can change them into more realistic looking cells instead.