23rd August 2008 - There was an issue with our name caching server at around 08:00AM GMT. It has been fixed.

ehHaChgPicture Problem?

Post here with problems - issues.

ehHaChgPicture Problem?

Postby TonyNo on Sun May 11, 2008 9:23 pm

Could this be from that?

=== 5/11/2008 4:16:02 PM ====================
--Desc: Type mismatch
--Line: 1070
--Src: eHomeScrnEditor.clsCtrls.ExternalControlFromEH

ehHaChgPicture "imgDoor","C:\eHome\Client-Server\Graphics\Screen Designer\red-20.png"

It looks like all of my ehHaChgPicture's are not working.
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby JakeBullet on Mon May 12, 2008 4:28 am

Yep, thats would be an error for the changepic.
Its working here. Did you change anything?
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby TonyNo on Mon May 12, 2008 10:19 am

Not that I know of. :(
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby JakeBullet on Mon May 12, 2008 10:36 am

OK - let me dig a little... :o
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby JakeBullet on Mon May 12, 2008 11:50 am

TonyNo wrote:Could this be from that?

=== 5/11/2008 4:16:02 PM ====================
--Desc: Type mismatch
--Line: 1070
--Src: eHomeScrnEditor.clsCtrls.ExternalControlFromEH

ehHaChgPicture "imgDoor","C:\eHome\Client-Server\Graphics\Screen Designer\red-20.png"

It looks like all of my ehHaChgPicture's are not working.


hhhhmmmm. Here is the code.

Code: Select all
   
         Case "PIC_SET"
1030             Set vVar = GetVarDictByCtrlType(ePICTURE)
1035             Set oPic = GetControlInst(vVar, sControl, ePICTURE)
1040             If oPic Is Nothing Then Exit Sub
1045             Dim bIsNet As Boolean
1050             sParam = m_oCtrlsX.ParseFileOrWeb(sParam, bIsNet)
1055             If sParam <> "" Then
1060                oPic.LoadImage_FromFile sParam
1065             End If
1070             If bIsNet Then SafeKill sParam


How line 1070 comes up with that error I have no clue. (but I have been known to be pretty clueless in the past) :shock:
Only thing I can think of is that 'sParam' is coming up blank but even then...

Verify that C:\eHome\Client-Server\Graphics\Screen Designer\red-20.png exists.
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby TonyNo on Mon May 12, 2008 5:55 pm

Thanks for checking. That PNG does exist. When I get home, I'll check my setup and see if anything jumps out, based on seeing the code you posted.
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby TonyNo on Tue May 13, 2008 3:11 am

Grr. It all checks out. PNG there, path valid. Must be something else hosing it.

OMG! I just found out that if you click on a lamp graphic in my floorplan view, the light is controlled! :lol:
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby JakeBullet on Tue May 13, 2008 6:57 am

TonyNo wrote:OMG! I just found out that if you click on a lamp graphic in my floorplan view, the light is controlled! :lol:


LOL!!!!! Even Decky knew that... hehehe :P

What version are you running? 5.14 or the beta of 5.15?
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby JakeBullet on Tue May 13, 2008 7:59 am

I just looked again at this.

I created a pic named 'test'
added a button and then added this script:

Code: Select all
g_oGbl.EH_HA_Control "test", "PIC_SET" ,"C:\eHome\Client-Server\Graphics\Screen Designer\cam2.png" 


and then tried

Code: Select all
ehHaChgPicture "test","C:\eHome\Client-Server\Graphics\Screen Designer\cam2.png"


Both work fine here.
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby TonyNo on Tue May 13, 2008 11:38 am

Dunno. :lol:
The client is 1.00.0579, server is 1.0.0.142.

Looks like 5.15 beta 3?
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby JakeBullet on Tue May 13, 2008 11:53 am

I tested against 5.15 beta 3 here. Well, I guess its not really beta 3 anymore as I will release today or tomorrow. At the moment I have giving up on the new controls for the screen designer. Fighting memory leaks for the last 2-3 weeks. (the kind that take 4 or 5 days to notice) Lots of good stuff in 5.15 and I just don't want to hold it up anymore.

Try changing the graphic being loaded and see what happens.

At least the weather is working... :roll:
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby TonyNo on Sat May 17, 2008 1:23 pm

Hmm. This is happening with all of my ehHaChgPicture calls.
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby JakeBullet on Sat May 17, 2008 1:35 pm

TonyNo wrote:Hmm. This is happening with all of my ehHaChgPicture calls.

Crap!

Let me toss some extra debug code in there and we will chase it down
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Re: ehHaChgPicture Problem?

Postby TonyNo on Sat May 17, 2008 3:28 pm

Thanks.

This on top of my PH/Winamp connection being down is a real bummer!
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Re: ehHaChgPicture Problem?

Postby JakeBullet on Sun May 18, 2008 5:10 am

Check your email - debug code is on the way!
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest



FREE FORUM Hosting by AtFreeForum. Create your Free WEB FORUM Hosting now!
GROUP DISCUSSION Features - Free FORUM HOSTING Directory Listing - DISCUSSION FORUM Terms of Service - FREE PHPBB Hosting Privacy
- FASHION ACCESSORIES