Register

Search found 141 matches

Return to advanced search

gbl08ma
Sat Nov 30, 2013 2:47 pm
 
Forum: Casio Prizm SDK
Topic: Problems with file copying function
Replies: 38
Views: 133320

Re: Problems with file copying function

The problem is definitely inside or after CreateFile, as making the add-in display debug messages had already revealed. I knew there were some problems with manipulating g3a files from inside an add-in (that's why the "add-in manager" function is so unstable, and after your explanation I m...
gbl08ma
Fri Nov 29, 2013 9:52 pm
 
Forum: Casio Prizm SDK
Topic: Problems with file copying function
Replies: 38
Views: 133320

Re: Problems with file copying function

Your SDK's linker should produce a map-file, where the information should be stored. The linker is GCC's LD, I'm not sure where that map-file goes or if it even exists. I do have the rules that tell the linker where each section of code goes, and I also have the crt0.S that is used on the add-in st...
gbl08ma
Fri Nov 29, 2013 2:58 pm
 
Forum: Casio Prizm SDK
Topic: Problems with file copying function
Replies: 38
Views: 133320

Re: Problems with file copying function

Do you use code in RAM? I do not intentionally run code from RAM, unless GCC is trying to optimize it for me by making certain things run from there without my request. What is the size of static RAM, which your add-in requires? I'm not sure how to check, is it the size taken by all the things I sp...
gbl08ma
Thu Nov 28, 2013 9:13 pm
 
Forum: Casio Prizm SDK
Topic: Problems with file copying function
Replies: 38
Views: 133320

Re: Problems with file copying function

Since you said that writing few bytes isn't a problem for WriteFile (and in fact, I recall that in the end we found out the problem was with writing a buffer located in flash and not in RAM), I simplified the code. I also reduced the scope of the copy buffer, and I'm now saving on the use of a memse...
gbl08ma
Sat Nov 16, 2013 3:04 pm
 
Forum: Casio Prizm SDK
Topic: Finding bitmaps to use with WriteGraph
Replies: 10
Views: 38846

Re: Finding bitmaps to use with WriteGraph

Everything appears to be working now! :)
Have a screenshot:
Image
gbl08ma
Sat Nov 16, 2013 1:43 pm
 
Forum: Casio Prizm SDK
Topic: Finding bitmaps to use with WriteGraph
Replies: 10
Views: 38846

Re: Finding bitmaps to use with WriteGraph

Oh well, I guess I was missing the part where one turns it into a (int). I will take that into account next time, thanks. Anyway, I'm now using this function instead: https://github.com/gbl08ma/utilities/blob/master/src/graphicsProvider.cpp#L226 It doesn't need as many parameters, and even supports ...
gbl08ma
Sat Nov 16, 2013 1:33 pm
 
Forum: Casio Prizm SDK
Topic: Finding bitmaps to use with WriteGraph
Replies: 10
Views: 38846

Re: Finding bitmaps to use with WriteGraph

Thanks! It seems to work fine, also, the filename doesn't need to be an actual file on the disk which is good for my purposes (since I can't use over 60 KB of RAM just to store icons for, say, a list with 200 files, I will just prefetch each icon and store it in an known memory location, then have m...
gbl08ma
Fri Nov 15, 2013 7:05 pm
 
Forum: Casio Prizm SDK
Topic: Finding bitmaps to use with WriteGraph
Replies: 10
Views: 38846

Re: Finding bitmaps to use with WriteGraph

Did you manage to discover any new information on the 0x0c2c syscall interface? I tried calling it with a few possible combos of parameters, but of course all I always got was a system error with 0x00000001 as the target.
gbl08ma
Thu Nov 14, 2013 9:33 pm
 
Forum: Casio Prizm SDK
Topic: Problems with file copying function
Replies: 38
Views: 133320

Re: Problems with file copying function

I fixed the problem with the possible MsgBox leak, but the problem still occurs. One of the files I can't manage to copy without resulting in an error, is the Amsterdam.g3p file included in the example pictures folder. However, because I suspect it has something to do with the position of the file i...
gbl08ma
Thu Nov 14, 2013 1:43 pm
 
Forum: Casio Prizm SDK
Topic: Problems with file copying function
Replies: 38
Views: 133320

Re: Problems with file copying function

Right now closeProgressMessage is just an alias for MsgBoxPop, but in the future it may be extended to do more things. While what you said represents a problem, that situation never runs because filePasteClipboard items is not called without items in the clipboard. Still, I'm going to fix it and see...
PreviousNext

Return to advanced search