Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
60 user(s) are online (35 user(s) are browsing Forums)

Members: 1
Guests: 59

kas1e, more...

Headlines

Forum Index


Board index » All Posts (mritter0)




Re: Disposing of objects
Just popping in
Just popping in


Good call! Thanks.

I was hoping it was something like that, and not something I was missing.

Is there a way to have it not cache some of the images? Some are very short term and is a "waste" to cache them.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Disposing of objects
Just popping in
Just popping in


I was using NULL.

I have a memory leak I can't track down. It is much smaller when I don't use images, so....testing all possible options.

Workbench Explorer - A better way to browse drawers
Go to top


Disposing of objects
Just popping in
Just popping in


Is there a preferred way to check if an object is allocated before disposing? I just don't think all of mine are being disposed of.

[allocate node]
LocalContentNode->DefaultImage=NULL;
--- OR ---
LocalContentNode->DefaultImage=ZERO;


VOID
FreeContentNode
(struct ContentNode *LocalContentNode)
{
    if (
LocalContentNode->DefaultImage != NULL)
    {
        
DisposeImage(LocalContentNode->DefaultImage);
        
LocalContentNode->DefaultImage=NULL;
    }
    if (
LocalContentNode->Text1Label != NULL)
    {
        
IIntuition->DisposeObject(LocalContentNode->Text1Label);
        
LocalContentNode->Text1Label=NULL;
    }
    if (
LocalContentNode->Text2Label != NULL)
    {
        
IIntuition->DisposeObject(LocalContentNode->Text2Label);
        
LocalContentNode->Text2Label=NULL;
    }
}

--- OR ---

VOID
FreeContentNode
(struct ContentNode *LocalContentNode)
{
    if (
LocalContentNode->DefaultImage != ZERO)
    {
        
DisposeImage(LocalContentNode->DefaultImage);
        
LocalContentNode->DefaultImage=ZERO;
    }
    if (
LocalContentNode->Text1Label != ZERO)
    {
        
IIntuition->DisposeObject(LocalContentNode->Text1Label);
        
LocalContentNode->Text1Label=ZERO;
    }
    if (
LocalContentNode->Text2Label != ZERO)
    {
        
IIntuition->DisposeObject(LocalContentNode->Text2Label);
        
LocalContentNode->Text2Label=ZERO;
    }
}


Go to top


Re: Annotate, Minor update and a problem [solved]
Just popping in
Just popping in


annMain.c:2749

I only have the original window open. Default variable not set properly at startup?

or try

SetProcWindow(FirstEditor->Next?(APTR)FirstEditor->Next->EdWindow:(APTR)getEdExWin());

Workbench Explorer - A better way to browse drawers
Go to top


Re: Annotate, Minor update and a problem [solved]
Just popping in
Just popping in


It has always done that. Even after a fresh install of OS.

Just tried the new one from above, same thing.

Stack Trace:
closeEdWindow()
closeAll()
main()

Workbench Explorer - A better way to browse drawers
Go to top


Re: Annotate, Minor update and a problem [solved]
Just popping in
Just popping in


WinUAE 4.1FE. Annotate 3.0.1

If I click the window close gadget, good.
Pick Quit from menu, crash.
RAmiga+Q, crash.

Has this been fixed?

Workbench Explorer - A better way to browse drawers
Go to top


Available for OS4?
Just popping in
Just popping in


Are these devices usable on OS4 NG systems? Classic systems?

RAD:
ZIP: ZipDrives
JAZ: JazDrives
PC0: CrossDOS PC Floppy
MAC: CrossDOS Mac Floppy

Go to top


EXT\03
Just popping in
Just popping in


In the SDK dos/dos.h id_DiskType, there is

#define ID_EXT2_DISK 0x45585402 /* EXT\2 - FuseExt2FileSystem */

Is there going to be one for EXT\03? Could it be checked for like this?

#define ID_EXT03_DISK (((uint32)'E'<<24) | ((uint32)'X'<<16) | ('T'<<8) | 0x03)

Go to top


Re: Insert/remove USB device
Just popping in
Just popping in


I totally overlooked what this option is for:

WinUAE->CD & Hard drives->Automount removable drives

It mounts my thumbdrive as RDH0: and I get IDCMP_DISKINSERTED. Exactly what I wanted.


Workbench Explorer - A better way to browse drawers
Go to top


Insert/remove USB device
Just popping in
Just popping in


I am using WinUAE, so I can't test this myself.

How do I have my program "listen" for USB devices being inserted/removed? ie, thumb drives, external harddrives.

If you have a complete working C example, that would be great since I can't test it myself.

Go to top


Re: xadmaster.library Delete
Just popping in
Just popping in


That's what I figured. Thanks.

Workbench Explorer - A better way to browse drawers
Go to top


xadmaster.library Delete
Just popping in
Just popping in


I just started to incorporate xadmaster.library into my project. I was looking through the includes, I don't see any mention of being able to delete a file in an archive. Is this not possible?

Go to top


Re: How find handler/filesystem name of a volume?
Just popping in
Just popping in


Exactly! We are hacking at this every time. Each person could be doing it slightly different, getting slightly different results, or just giving up in frustration. Let's fix the problem!

Take an ISO burner program, for example. Get a list of devices (DH0:, CD0: USB0:, RAM:, etc.) Run through a loop and check the type with a new DOS function:

result=IDOS->IdentifyDevice("CD0:");
Is it a CD/DVD drive? Yes, check it's properties:
IDOS->GetDeviceProperties("CD0:");
Is it a burner? Nope, skip.
result=IDOS->IdentifyDevice("CD1:");
Is it a CD/DVD drive? Yes, check it's properties:
IDOS->GetDeviceProperties("CD1:");
Is it a burner? Yes, success.


I have a device, WD0:, on my system. What kind of device is it? The world will never know.....

Workbench Explorer - A better way to browse drawers
Go to top


Re: How find handler/filesystem name of a volume?
Just popping in
Just popping in


Would it be possible to take everything that was posted here and make a complete system function(s) to help programmers with identifying devices?

IdentifyDevice("USB0:");

Which would return a number value for a list of IDs, or a string like "USB Device" or more specific "USB Thumb Drive".

Then another command like

GetDeviceProperties("USB0:");

Fill in a huge struct with manufacturer, serial #, read/write, filesystem, if is a CD what types it can burn, etc.

Identifying devices shouldn't be such a difficult task. The OS should know what each device specifically is and can tell you easily.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Network shares
Just popping in
Just popping in


Why use an image that isn't quite right? Is it FTP or a share?

For my use I am going to ask Mason to expand on netdisk.

Workbench Explorer - A better way to browse drawers
Go to top


Network shares
Just popping in
Just popping in


This topic was started in this thread
How to find handler/filesystem but I thought it needed it's own thread.

Now that a smbfs can reliably be identified, what name should we call them? Shared Drive/Disk, Shared Drawer, Network Share, something else.

What image would go with them? I already have had Mason make me a 16x16 png for netdisk and netdrawer.
netdisk.png
netdrawer

We don't have a def_networkXXX.info in ENVARC:Sys for any networking situations. I feel they should be made now. I know there is not much need for them, but ChrisH and I have a use for them now. And hopefully others will, too.

I am just looking for opinions on a name(s) and image(s) that are "generic" starting points so everyone keeps things somewhat consistant.

I don't know if you can really differentiate a shared disk from a drawer, so........

Go to top


Re: How find handler/filesystem name of a volume?
Just popping in
Just popping in


I already have had Mason make a network drive and drawer 16x16 pngs for me. Before I went any further with more images and names I was just trying to get a feel for what people think it should be.

I started a new thread.

Workbench Explorer - A better way to browse drawers
Go to top


Re: How find handler/filesystem name of a volume?
Just popping in
Just popping in


What kind of "generic" icon would be used? A harddisk or drawer with a network reference on it?

Workbench Explorer - A better way to browse drawers
Go to top


Re: How find handler/filesystem name of a volume?
Just popping in
Just popping in


Thanks for the code, salass00. Helped me a lot.

Now that we can check for smbfs shares reliably, what do we call them?

Shared Drives or Shared Drawers? Network Drive or Network Drawer? Other? Something generic in case SMBFS isn't the only type.

I ask just so there is some sort of "standard" name used.

Workbench Explorer - A better way to browse drawers
Go to top


Re: How find handler/filesystem name of a volume?
Just popping in
Just popping in


If you come up with a reliable way to check for SMBFS please post it here. Am in interested in it also.

Workbench Explorer - A better way to browse drawers
Go to top



TopTop
« 1 ... 7 8 9 (10) 11 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project