Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Kingware, AndrewAMD, AemStones, RealSerious3D, degenerate_762), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[A6.40SDK]unhandled exception: User breakpoint #81291
07/13/06 21:47
07/13/06 21:47
Joined: May 2005
Posts: 338
Brasil
Filipe Offline OP
Senior Member
Filipe  Offline OP
Senior Member

Joined: May 2005
Posts: 338
Brasil
Hello,

i asked this at the higher languages forum, but got no responses...

i'm making my game as a dll with the A6.31.4 plugin sdk and it's working well. but when i try to update to the new A6.40 plugin SDK i get a strange break when running with the VisualStudio2003 debugger:
"unhandled exception: User breakpoint"

note that it compiles and links without any problems and with the A6.31.4 SDK it runs perfectly well.
this happens when i use media_ functions to play video. after the video is finished (maybe when unloading the media player libraries?), i get this break.
i made a test with the engine SDK as well, that's only:

(...)
engine_open(NULL);
engine_frame();
media_play("video.avi", NULL, _VAR(100));
while(engine_frame());
engine_close();

the video plays correctly, but I still get the same break.

also, when the break happens the output window in visual studio, with this test above and with my game, accuses:
"first-chance exception at 0x... in test.exe : 0xC0000005 Access violation writing location 0x000000".

i need to use the updated version of the engine because of the improvements in the c_move function, but i need to know what is this problem and if it can be fixed.

thanks for your help,
Filipe

Note: when i run the same test directly from the .exe file, outside of the debugger, it doens't give any errors, but i need to know if this could be a symptom of a bigger problem.


Re: [A6.40SDK]unhandled exception: User breakpoint [Re: Filipe] #81292
07/14/06 07:22
07/14/06 07:22
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
User breakpoint exception means that a conditional breakpoint was hit. If you are not aware of having intentionally set a breakpointn, you're most likely using the debug version of DirectX, with some active break conditions. Check the DirectX Debug settings.

Re: [A6.40SDK]unhandled exception: User breakpoint [Re: jcl] #81293
07/14/06 13:07
07/14/06 13:07
Joined: May 2005
Posts: 338
Brasil
Filipe Offline OP
Senior Member
Filipe  Offline OP
Senior Member

Joined: May 2005
Posts: 338
Brasil
Hello,

i don't think i could be using a debug version of DirectX, because i never had the DirectX SDK in this computer...
i'm not sure how to check the directX debug settings...
i checked the directX diag tool, the directX version sais DirectX 9.0c (4.09.0000.0904), all the directx files say 'commercial' under attributes, and all the directX tests pass (direct3D, directDraw, directSound and DirectMusic).

what worries me the most is the message on the output window that sais
"Access violation writing location 0x000000".
This happens with the test code above, so the problem can't be in my code, right?
could it be something wrong with my directX installation that the diag tool didn't catch? or with my Media Player installation?

Thanks for your help,
Filipe

Re: [A6.40SDK]unhandled exception: User breakpoint [Re: Filipe] #81294
07/14/06 14:55
07/14/06 14:55
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The code is certainly ok and works well. Also, the dependence on 6.31 or 6.40 is probably just chance. Theoretically, the CODEC could cause the problem. Check wether you're getting the same message when using a movie file in a different format.

Re: [A6.40SDK]unhandled exception: User breakpoint [Re: jcl] #81295
07/14/06 16:00
07/14/06 16:00
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Or try an uncompressed AVI. This frees up the use of codecs, but the file size gets much bigger. I have some samples you could try to see if it's the codec (free download). This is one of them (note: double-zipped AVI - unzip twice).

As to checking the DirectX debug thing, try running system information:

start > programs > accessories > system tools > system information

Try searching there or go to the tools menu to check the DirectX stuff.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: [A6.40SDK]unhandled exception: User breakpoint [Re: ulillillia] #81296
07/14/06 17:26
07/14/06 17:26
Joined: May 2005
Posts: 338
Brasil
Filipe Offline OP
Senior Member
Filipe  Offline OP
Senior Member

Joined: May 2005
Posts: 338
Brasil
Hello again,

i thought it could be the CODEC, because i was using a free Xvid codec, so i tried several other formats and codecs, like Microsoft MPEG4, wmv, DivX, and even an uncompressed AVI (not ulillillia's, i couldn't download that). all of them caused the same problem.
there's no problem with music files (ogg and mp3)....

i really have no idea what's going on...


Thanks again,
Filipe

Re: [A6.40SDK]unhandled exception: User breakpoint [Re: Filipe] #81297
07/17/06 16:50
07/17/06 16:50
Joined: May 2005
Posts: 338
Brasil
Filipe Offline OP
Senior Member
Filipe  Offline OP
Senior Member

Joined: May 2005
Posts: 338
Brasil
Hello,

do you have any other suggestions as to what could be causing this?
like i said, this is only noticed when running in the debugger, but an "acces violation writing at location 0x0000" is something that worries me.

thanks,
Filipe

Re: [A6.40SDK]unhandled exception: User breakpoint [Re: ulillillia] #81298
07/17/06 17:13
07/17/06 17:13

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Quote:

Or try an uncompressed AVI. This frees up the use of codecs, but the file size gets much bigger. I have some samples you could try to see if it's the codec (free download). This is one of them (note: double-zipped AVI - unzip twice).

As to checking the DirectX debug thing, try running system information:

start > programs > accessories > system tools > system information

Try searching there or go to the tools menu to check the DirectX stuff.


As for DirectX Diagnostics, you can go to Start menu, click Run, and type in

Code:
dxdiag.exe



and press Enter to launch DirectX Diagnostics. This is just a shortcut for getting to DirectX Diagnostics quickier without opening up System Information.

Re: [A6.40SDK]unhandled exception: User breakpoint #81299
07/17/06 17:46
07/17/06 17:46
Joined: May 2005
Posts: 338
Brasil
Filipe Offline OP
Senior Member
Filipe  Offline OP
Senior Member

Joined: May 2005
Posts: 338
Brasil
Thanks.
I already ran the DirectX Diagnostics Tool, like i said in my second post.
All tests pass and all files are 'commercial'.

Filipe

Re: [A6.40SDK]unhandled exception: User breakpoint [Re: Filipe] #81300
07/18/06 11:18
07/18/06 11:18
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I admit that I have no further ideas. I only know user break exceptions from the DirectX Debug mode. If someone else ever encountered a similar problem, please report here.

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1