PDA

View Full Version : Error determening object type


fsadario
11-22-2006, 06:21 PM
Hi everybody...
I have a problem with my MP3 Player...
When i click in a part of the soft, shows the error: "Error determening object type" ...
Can anybody help me?
Thanks.

Intrigued
11-22-2006, 07:00 PM
We would need to see the code area in question.

If you can post such it would help to quicken a possible solution for you.

fsadario
11-22-2006, 08:02 PM
Ok.. Here's my project:
DOWNLOAD (http://d.turboupload.com/de/1242060/gxt5grts7a.html)
Thanks you, Intrigued

Intrigued
11-22-2006, 08:40 PM
Try this code:

On Mouse Button
if e_Type == 1 or e_Type == 2 or e_Type == 3 then
if (e_Type == 0) then
if (hitTest("Volume")) then
Page.StartTimer(10);
setVolume = true;
elseif (hitTest("wmove")) then
Page.StartTimer(10);
wndmove = true;
xdist = e_X;
ydist = e_Y;
end
elseif (e_Type == 1) then
setVolume = false;
wndmove = false;
elseif (e_Type == 3) then
if (hitTest("FList") == true) then
Application.ShowPopupMenu(e_X, e_Y, FListMenu, TPM_LEFTALIGN, TPM_TOPALIGN, false, true);
end
end
end

fsadario
11-22-2006, 10:07 PM
If It work, but I have another problem. When position a reproduction list and I select a song, the program becomes unstable and is labeled. What can be? Thanks.
(Sorry, Traslated by Google.com :lol )

Intrigued
11-22-2006, 10:11 PM
If It work, but I have another problem. When position a reproduction list and I select a song, the program becomes unstable and is labeled. What can be? Thanks.
(Sorry, Traslated by Google.com :lol )

I am unable to understand that Google translation.

Here's what I believe I understand from such:

When you reposition (change the size?) the playlist and then select a song?

The program becomes unstable and (is labeled?)?

fsadario
11-22-2006, 10:48 PM
The program is unestable when i load a playlist, a directory or a song.
I cant close or minimize it.
But isnt by my PC, because thats success on my other PC too (with 3.0 Ghz of Pros.).
I dont know why... meaby by the code:huh
Sorry for my english:rolleyes

Intrigued
11-22-2006, 11:36 PM
This is the point in your program that will take some time, hours and maybe days to fix. I would hazard a guess that most of us that have been programming (any platform) for a while have ran into this situation more than once and it takes patience and determination to work out the bug(s).

Hang in there. Use logic to fix your code. If the Listbox freezes up when you double-click on it (a choice) then you may want to check that object's code under the respected Event. Also, if you have On Timer (tab) code you may want to check that as well. There can be several other reasons as well. Just think it through and work step-by-step (take notes if you need to in order to see what steps you took to finally fix such. Then you will know next time how to fix such).

Best of luck, I know you will get it.

:yes

fsadario
11-23-2006, 07:39 AM
Thanks you Intrigued...
Im working to fix the bug now.

fsadario
11-23-2006, 04:58 PM
I've fixed the bug! Is just a error in a code "On Preload".
Thanks for your help, Intrigued.

Intrigued
11-23-2006, 06:45 PM
No problem. I know it seems "harsh" at times, but not offering assitance everytime forces a end-developer (us) to be pressured into finding a solution. In the end this usually helps build our programming knowledge and helps us to become better programmers because we realize we have to "take a deep breath" and then be patient, maticulous to find the solution. This is paramount when coding, in my opinion.